install-omp-agents
Install, refresh, or check crux's OMP (Oh My Pi) role agents in the personal or specified project directory. Preserve conflicting roles.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- install-omp-agents
- metadata
- { "tags": "omp, agents, installation, roles", "bundles": "crux-infrastructure, crux-docs", "triggers": "install omp agents | install crux agents for omp | refresh the omp agents", "risk_level": "medium", "requires_access": "write-host" }
- description
- Install, refresh, or check crux's OMP (Oh My Pi) role agents in the personal or specified project directory. Preserve conflicting roles.
- disable-model-invocation
- true
02 资源文件 1
- 脚本scripts/install.py4.4 KB
03 SKILL.md 正文
Install OMP Agents
<!-- BEGIN GENERATED: runtime-compat -->
Runtime compatibility
This skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.
- Before running a command that uses
CRUX_PLUGIN_ROOT, set it to the installed plugin root. In Claude Code, use the value ofCLAUDE_PLUGIN_ROOT. In Codex, OpenCode, and OMP, derive it from the absolute path of this selectedSKILL.md: the plugin root is the parent of itsskills/directory (in OMPbash,skill://<name>resolves to the skill directory). In a source checkout, use the checkoutcrux/directory. - For project-local skills, use
.claude/skillsin Claude Code,.agents/skillsin Codex,.opencode/skillsin OpenCode (which also reads the singular.opencode/skill), and.omp/skillsin OMP. SetCRUX_LOCAL_SKILLS_DIRto that path before following any command below that uses it. - Translate Claude Code tool labels such as
Agent,Read,Write,Bash,WebSearch, andWebFetchto the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase formssubagent,read,edit,shell,websearch, andwebfetch, whereeditcovers bothEditandWrite; OMP usestask,read,edit,write,bash,grep,glob,find,todo, andweb_search(wherereadalso handles URLs andskill://URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host. - Install the generated role agents before delegating:
install-codex-agentsin Codex,install-opencode-agentsin OpenCode,install-omp-agentsin OMP. Codex names themcrux_architect,crux_brainstormer,crux_commander,crux_dev_lead,crux_developer,crux_historian,crux_librarian,crux_night_gardener,crux_reviewer, andcrux_wayfinder; OpenCode and OMP use the bare role namesarchitect,brainstormer,commander,dev-lead,developer,historian,librarian,night-gardener,reviewer, andwayfinder(in OMP,scoutmay also be used for reconnaissance alongsidewayfinder). If a required role or capability is unavailable, report that truthfully instead of claiming it ran. - Argument placeholders such as
$adrand$bookbind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The "Fields OpenCode ignores" section ofOPENCODE_GUIDE.mdnames the invocation-control fields OpenCode ignores. <!-- END GENERATED: runtime-compat -->
Overview
OMP (Oh My Pi) discovers task subagents from ~/.omp/agent/agents/*.md (personal scope)
and <repo>/.omp/agents/*.md (project scope). When OMP loads crux/agents/*.md directly
from a Claude-dialect marketplace plugin, it strips the frontmatter model field and does
not parse Claude Code's Agent(role) tool syntax into spawns.
This skill projects the ten Crux roles into OMP's native agent Markdown format and installs
them into the active user's personal OMP agent directory (~/.omp/agent/agents/) by default:
architect, brainstormer, commander, dev-lead, developer,
historian, librarian, night-gardener, reviewer, and wayfinder.
Each generated <role>.md file sets model to ["@crux_<role_underscored>", "<resolved_openrouter_model>"]
(so OMP users can customize per-role models in ~/.omp/agent/config.yml modelRoles while
falling back to crux/catalog/models.yml), maps effort to thinking-level, sets
read-summarize: false on wayfinder and librarian, translates tool grants to OMP's
native tools (read, grep, glob, find, edit, write, bash, task, todo,
web_search) without redundant Skill/WebFetch/SendMessage wrappers, and projects
Agent(role) restrictions to spawns (allowing OMP's native scout alongside wayfinder).
Install
Let <skill-dir> be the directory containing this selected SKILL.md (in OMP, skill://install-omp-agents).
Install for the active user (targets ~/.omp/agent/agents/):
uv run <skill-dir>/scripts/install.py
Supply the current repository when you also want the health report to scan for
project-scoped .omp/agents/ files that shadow a personal Crux role:
uv run <skill-dir>/scripts/install.py --project-context "$PWD"
Use project scope when the user requests repository-local agents (targets <repo>/.omp/agents/):
uv run <skill-dir>/scripts/install.py --repo-root "$PWD"
--repo-root and --omp-home are mutually exclusive. --omp-home <path> sets the
personal target to <path>/agents (supporting isolated tests and named OMP profiles).
Check health without writing
uv run <skill-dir>/scripts/install.py --check --project-context "$PWD"
--check prints JSON and does not create the target. Its exit status is 0 when
drift.status and installed.status are clean and the shadow scan has no findings.
It returns 1 for managed drift, installed-state findings, or shadow findings. It
returns 2 for a configuration or environment error.
Refreshing modified roles
If an existing Crux-managed <role>.md differs from the generated projection, the
installer exits 1 without writing. Review the reported diff and rerun with --force:
uv run <skill-dir>/scripts/install.py --force
Verification
- [ ] Target directory (
~/.omp/agent/agents/or<repo>/.omp/agents/) contains the ten<role>.mdfiles. - [ ] Existing non-Crux agent files in the target directory remain untouched.
- [ ]
install.py --checkexits0withdrift.status: "clean"andinstalled.status: "clean". - [ ] OMP's
tasktool resolves and dispatches roles by their bare name (e.g.architect,reviewer,wayfinder).
Guardrails
- Do not hand-edit the generated
<role>.mdfiles. Editcrux/agents/*.mdin the Crux source, regenerate, and refresh with--force. - The installer only touches the ten managed role filenames from the catalog roster. Unrelated custom agents in
~/.omp/agent/agents/or.omp/agents/are left alone. - Refuses fail-closed if any managed agent leaf is a symlink or if the target directory resolves outside the selected scope root.
04 同仓库更多 Skills
whiteboarding
Explore an idea through docs-informed dialogue before committing to a design. Capture the exploration for later filing as a brief.
verify-code-docs
Check generated code documentation against source and report drift without regenerating it.
transition-observation
Apply a human disposition to an observation's lifecycle state without changing its claim or body.
transition-invariant
Ratify, reject, or retire an invariant on human direction. Update lifecycle metadata without changing the invariant's body.
transition-decision
Apply a human ratify, reject, or defer verdict to a recovered decision candidate; ratification creates a Proposed ADR or observation.
transition-brief
Publish or abandon a draft brief, updating lifecycle metadata and indexes without changing its body.