Omarchy: AI 代理的系统管理护栏 - Openclaw 技能
作者:互联网
2026-03-26
什么是 Omarchy?
Omarchy 是 Linux 系统的智能操作层,专门设计用于引导 AI 代理执行原生工作流。该 Openclaw 技能集成优先使用包含 160 多个专门脚本的目录,而不是依赖可能绕过系统状态管理的通用 Linux 命令。它确保诸如主题切换、软件包管理和服务重启等任务通过官方包装器处理,从而维护系统完整性并避免临时执行命令的常见陷阱。
通过将该技能视为一种操作模式而非仅仅是命令列表,它强制执行最佳实践,例如只读检查和高影响操作的确认。这种方法使 Omarchy 成为管理复杂桌面环境和系统级配置最可靠的 Openclaw 技能之一。
下载入口:https://github.com/openclaw/skills/tree/main/skills/achals-iglu/omarchy
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install omarchy
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 omarchy。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Omarchy 应用场景
- 在不破坏会话状态的情况下重启 Waybar 或 Hyprland 等桌面组件。
- 使用验证依赖关系的原生包装器安装或删除系统软件包。
- 在 VS Code、浏览器和 Obsidian 等多个应用程序中同步主题。
- 使用针对性的重启脚本排查 Wi-Fi、蓝牙和音频等硬件问题。
- 通过静态检查发现安全的系统命令,而不是进行风险较大的试错执行。
- 识别需要操作的特定系统组件,如 UI、网络或软件包管理器。
- 在 Openclaw 技能脚本目录中定位合适的命令族。
- 对脚本头进行静态检查,以了解预期目的并避免参数错误。
- 在进行更改之前,首先执行只读或状态命令以验证当前系统状态。
- 使用针对性的刷新或重启包装器,而不是通用的进程终止命令,以保留环境变量。
- 向用户建议高影响的操作,并在执行修改系统的脚本之前等待确认。
Omarchy 配置指南
要启用这些 Openclaw 技能,请确保您的代理环境可以访问 Omarchy 二进制目录。
# 确保 Omarchy bin 目录在您的 PATH 中
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
# 验证安装并检查当前版本
omarchy-version
Omarchy 数据架构与分类体系
该技能使用可执行脚本的结构化目录运行。每个脚本都包含用于引导代理的文档头。
| 功能分类 | 脚本前缀 | 用途 |
|---|---|---|
| UI 管理 | omarchy-refresh-* | 安全更新 Waybar 或 Hyprland 等 UI 组件 |
| 软件包控制 | omarchy-pkg-* | 处理具有状态感知的安装和卸载 |
| 服务恢复 | omarchy-restart-* | 重启 pipewire 或蓝牙等服务而不产生附带损害 |
| 主题流水线 | omarchy-theme-* | 跨多个应用程序同步视觉风格 |
| 更新工作流 | omarchy-update-* | 管理分阶段的系统和固件更新 |
name: omarchy
description: "Omarchy operating guardrails for day-to-day system work: assume the host is Omarchy by default, choose Omarchy-native workflows first, map user intent to the correct omarchy-* wrapper/script family, and avoid generic Linux commands that conflict with Omarchy behavior. Use whenever handling local system tasks on this host unless the user explicitly says it is not Omarchy; prioritize safe Omarchy commands, prevent non-Omarchy shortcuts (e.g., ad-hoc process killing/relaunch patterns), troubleshoot desktop behavior, and validate the right script before execution."
Omarchy Skill
Treat this skill as an Omarchy operating mode, not just a command catalog. When working on an Omarchy system, prefer Omarchy-native wrappers and workflows over generic Linux one-liners that may bypass expected state handling. Use local script docs and names to choose the correct path. Each script has documentation at the top describing its purpose. DO NOT RUN A SCRIPT UNTIL YOU ARE SURE OF ITS PURPOSE.
Operating rules
- Start with command name matching and in-file comments under
/home/achals/.local/share/omarchy/bin. - Prefer read-only/status commands first (
*list*,*status*,*current*,*available*,*version*). - Ask before broad or high-impact actions (
*install*,*remove*,*reinstall*,*update*,*pkg*,*setup*,*set*). - Avoid bulk discovery execution. Do static inspection first.
- Never assume
omarchy-*scripts support standard CLI flags or parameters (including--help). Treat each script as custom; inspect its file/header comments first.
Worked examples (good vs bad)
Use these patterns whenever you operate on Omarchy. The goal is not "run an omarchy command at all costs"; the goal is to avoid bypassing Omarchy’s intended state-management flows.
1) Restarting Waybar
User intent: "Waybar is broken, restart it."
- Bad (generic shortcut):
pkill waybar && waybar
- Good (Omarchy-native):
omarchy-restart-waybar
- Why: Omarchy wrappers usually handle environment/session assumptions better than raw kill-and-relaunch one-liners.
2) Applying config/UI refresh after edits
User intent: "I changed config, apply it."
- Bad:
- restarting random processes manually until things look fixed
- Good:
- use targeted refresh script first, e.g.
omarchy-refresh-waybar,omarchy-refresh-hyprland,omarchy-refresh-config(pick by component)
- use targeted refresh script first, e.g.
- Why: refresh scripts are explicit and reversible; manual shotgun restarts are noisy and risky.
3) Package management task
User intent: "Install/remove package X."
- Bad:
- using raw
pacman/yayfirst without checking Omarchy wrappers
- using raw
- Good:
- inspect and prefer
omarchy-pkg-*flow (...-present,...-missing, then...-install/...-remove)
- inspect and prefer
- Why: wrapper flow keeps behavior consistent with Omarchy expectations.
4) Theme change request
User intent: "Switch theme / sync theme to apps."
- Bad:
- editing dotfiles manually first and restarting random apps
- Good:
omarchy-theme-list->omarchy-theme-set-> app-specific follow-ups if needed (omarchy-theme-set-vscode,...-browser,...-obsidian)
- Why: Omarchy theme pipeline may include extra integration steps beyond plain config edits.
5) Audio/Bluetooth/Wi?Fi issue
User intent: "Audio/Bluetooth/Wi?Fi stopped behaving."
- Bad:
- broad process killing (
killall pipewire, random daemon restarts)
- broad process killing (
- Good:
- use targeted wrapper restarts such as
omarchy-restart-pipewire,omarchy-restart-bluetooth,omarchy-restart-wifi
- use targeted wrapper restarts such as
- Why: targeted wrappers reduce collateral damage and match Omarchy’s service model.
6) "What command should I run?" discovery flow
User intent: ambiguous request like "fix my display stack".
- Bad:
- execute many commands to discover options (
for c in omarchy-*; do $c --help; done)
- execute many commands to discover options (
- Good:
- Statically inspect names in
/home/achals/.local/share/omarchy/bin - Read top-of-file script comments for likely candidates
- Start with read-only/status scripts
- Propose 1-3 likely commands and ask before high-impact actions
- Statically inspect names in
- Why: static inspection is safer, faster, and follows no-bulk-probing policy.
7) Update workflow
User intent: "Update system."
- Bad:
- directly running full update steps without checking availability/state
- Good:
- check first:
omarchy-update-available(and related status) - then execute appropriate Omarchy update path with confirmation for impactful steps
- check first:
- Why: staged update flow reduces surprise breakage.
Decision template (apply every time)
For any Omarchy task, follow this mini-checklist:
- Identify component (UI, package, theme, network, update, device, etc.)
- Find matching
omarchy-*family by name and script header comments - Prefer read-only/status command first
- Use targeted
omarchy-refresh-*/omarchy-restart-*over raw kill/relaunch - Ask before high-impact actions (
install/remove/reinstall/update/setup/set)
Omarchy command catalog (static, local)
Total commands: 161
battery (2)
omarchy-battery-monitoromarchy-battery-remaining
branch (1)
omarchy-branch-set
channel (1)
omarchy-channel-set
cmd (12)
omarchy-cmd-apple-display-brightnessomarchy-cmd-audio-switchomarchy-cmd-first-runomarchy-cmd-missingomarchy-cmd-presentomarchy-cmd-rebootomarchy-cmd-screenrecordomarchy-cmd-screensaveromarchy-cmd-screenshotomarchy-cmd-shareomarchy-cmd-shutdownomarchy-cmd-terminal-cwd
debug (1)
omarchy-debug
dev (1)
omarchy-dev-add-migration
drive (3)
omarchy-drive-infoomarchy-drive-selectomarchy-drive-set-password
font (3)
omarchy-font-currentomarchy-font-listomarchy-font-set
hibernation (3)
omarchy-hibernation-availableomarchy-hibernation-removeomarchy-hibernation-setup
hook (1)
omarchy-hook
hyprland (3)
omarchy-hyprland-window-close-allomarchy-hyprland-window-popomarchy-hyprland-workspace-toggle-gaps
install (9)
omarchy-install-chromium-google-accountomarchy-install-dev-envomarchy-install-docker-dbsomarchy-install-dropboxomarchy-install-steamomarchy-install-tailscaleomarchy-install-terminalomarchy-install-vscodeomarchy-install-xbox-controllers
launch (14)
omarchy-launch-aboutomarchy-launch-audioomarchy-launch-bluetoothomarchy-launch-browseromarchy-launch-editoromarchy-launch-floating-terminal-with-presentationomarchy-launch-or-focusomarchy-launch-or-focus-tuiomarchy-launch-or-focus-webappomarchy-launch-screensaveromarchy-launch-tuiomarchy-launch-walkeromarchy-launch-webappomarchy-launch-wifi
lock (1)
omarchy-lock-screen
menu (2)
omarchy-menuomarchy-menu-keybindings
migrate (1)
omarchy-migrate
notification (1)
omarchy-notification-dismiss
pkg (9)
omarchy-pkg-addomarchy-pkg-aur-accessibleomarchy-pkg-aur-addomarchy-pkg-aur-installomarchy-pkg-dropomarchy-pkg-installomarchy-pkg-missingomarchy-pkg-presentomarchy-pkg-remove
powerprofiles (1)
omarchy-powerprofiles-list
refresh (14)
omarchy-refresh-applicationsomarchy-refresh-chromiumomarchy-refresh-configomarchy-refresh-fastfetchomarchy-refresh-hypridleomarchy-refresh-hyprlandomarchy-refresh-hyprlockomarchy-refresh-hyprsunsetomarchy-refresh-limineomarchy-refresh-pacmanomarchy-refresh-plymouthomarchy-refresh-swayosdomarchy-refresh-walkeromarchy-refresh-waybar
reinstall (4)
omarchy-reinstallomarchy-reinstall-configsomarchy-reinstall-gitomarchy-reinstall-pkgs
remove (1)
omarchy-remove-dev-env
reset (1)
omarchy-reset-sudo
restart (15)
omarchy-restart-appomarchy-restart-bluetoothomarchy-restart-btopomarchy-restart-hyprctlomarchy-restart-hypridleomarchy-restart-hyprsunsetomarchy-restart-makoomarchy-restart-opencodeomarchy-restart-pipewireomarchy-restart-swayosdomarchy-restart-terminalomarchy-restart-walkeromarchy-restart-waybaromarchy-restart-wifiomarchy-restart-xcompose
setup (3)
omarchy-setup-dnsomarchy-setup-fido2omarchy-setup-fingerprint
show (2)
omarchy-show-doneomarchy-show-logo
snapshot (1)
omarchy-snapshot
state (1)
omarchy-state
theme (13)
omarchy-theme-bg-installomarchy-theme-bg-nextomarchy-theme-currentomarchy-theme-installomarchy-theme-listomarchy-theme-removeomarchy-theme-setomarchy-theme-set-browseromarchy-theme-set-gnomeomarchy-theme-set-obsidianomarchy-theme-set-templatesomarchy-theme-set-vscodeomarchy-theme-update
toggle (5)
omarchy-toggle-idleomarchy-toggle-nightlightomarchy-toggle-screensaveromarchy-toggle-suspendomarchy-toggle-waybar
tui (2)
omarchy-tui-installomarchy-tui-remove
tz (1)
omarchy-tz-select
update (14)
omarchy-updateomarchy-update-analyze-logsomarchy-update-availableomarchy-update-available-resetomarchy-update-branchomarchy-update-confirmomarchy-update-firmwareomarchy-update-gitomarchy-update-keyringomarchy-update-performomarchy-update-restartomarchy-update-system-pkgsomarchy-update-timeomarchy-update-without-idle
upload (1)
omarchy-upload-log
version (4)
omarchy-versionomarchy-version-branchomarchy-version-channelomarchy-version-pkgs
voxtype (5)
omarchy-voxtype-configomarchy-voxtype-installomarchy-voxtype-modelomarchy-voxtype-removeomarchy-voxtype-status
webapp (4)
omarchy-webapp-handler-heyomarchy-webapp-handler-zoomomarchy-webapp-installomarchy-webapp-remove
windows (1)
omarchy-windows-vm
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
信号管道:自动化营销情报工具 - Openclaw Skills
技能收益追踪器:监控 Openclaw 技能并实现变现
AI 合规准备就绪度:评估与治理工具 - Openclaw Skills
FOSMVVM ServerRequest 测试生成器:自动化 API 测试 - Openclaw Skills
酒店搜索器:AI 赋能的住宿与位置情报 - Openclaw Skills
Dub 链接 API:程序化链接管理 - Openclaw Skills
IntercomSwap:P2P BTC 与 USDT 跨链兑换 - Openclaw Skills
spotplay:macOS 原生 Spotify 播放控制 - Openclaw Skills
DeepSeek OCR:AI驱动的图像文本识别 - Openclaw Skills
Web Navigator:自动化网页研究与浏览 - Openclaw Skills
AI精选
