بنقرة واحدة
omx-setup
[OMX] Setup and configure oh-my-codex using current CLI behavior
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
[OMX] Setup and configure oh-my-codex using current CLI behavior
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
[OMX] Run an anti-slop cleanup/refactor/deslop workflow
[OMX] Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says 'analyze', 'investigate', 'why does', 'what's causing', or needs grounded cross-file explanation before any changes are proposed.
[OMX] Strict autonomous loop: $ralplan -> $ralph -> $code-review
[OMX] Run a comprehensive code review
[OMX] Socratic deep interview with mathematical ambiguity gating before execution
[OMX] Diagnose and fix oh-my-codex installation issues
| name | omx-setup |
| description | [OMX] Setup and configure oh-my-codex using current CLI behavior |
Use this skill when users want to install or refresh oh-my-codex for the current project plus user-level OMX directories.
omx setup [--force] [--merge-agents] [--dry-run] [--verbose] [--scope <user|project>] [--plugin|--legacy|--install-mode <legacy|plugin>]
If you only want lightweight AGENTS.md scaffolding for an existing repo or subtree, use omx agents-init [path] instead of full setup.
Supported setup flags (current implementation):
--force: overwrite/reinstall managed artifacts where applicable--merge-agents: when AGENTS.md already exists, preserve user-authored content and insert/refresh OMX-managed generated sections between explicit <!-- OMX:AGENTS:START --> / <!-- OMX:AGENTS:END --> markers--dry-run: print actions without mutating files--verbose: print per-file/per-step details--scope: choose install scope (user, project)--plugin: use Codex plugin delivery for bundled skills while archiving/removing legacy OMX-managed prompts/native agents and keeping setup-owned runtime hooks--legacy: use legacy setup delivery, overriding any persisted plugin install mode--install-mode: explicitly choose setup delivery mode (legacy or plugin); canonical form for scripted setupomx setup performs these steps:
--scope explicit value./.omx/setup-scope.json (with automatic migration of legacy values)omx setup first summarizes the recorded choices and asks whether to keep, review/change, or reset themuser)user (safe for CI/tests)user, resolve user skill delivery mode:
--plugin, --legacy, or --install-mode legacy|plugin, if present./.omx/setup-scope.json, if present and the TTY review decision is keep${CODEX_HOME:-~/.codex}/plugins/cache/**/.codex-plugin/plugin.json with name: oh-my-codex makes plugin the defaultlegacy by default, or plugin when a plugin cache is discovered)legacy unless a plugin cache is discovereddist/cli/team.js./.omx/hud-config.jsonomx setup prompts for scope when no scope is provided and stdin/stdout are TTY. If ./.omx/setup-scope.json already exists, setup now summarizes the saved choices first and asks whether to keep them, review/change them, or reset and behave like a fresh setup run.user scope, omx setup also prompts for skill delivery mode when no prior install mode is kept; installed plugin cache discovery makes plugin mode the default prompt/non-interactive choice../AGENTS.md (project root).AGENTS.md exists and neither --force nor --merge-agents is used, interactive TTY runs ask whether to overwrite. Non-interactive runs preserve the file.--merge-agents to keep existing project guidance while allowing setup to refresh OMX-managed AGENTS sections and the generated model capability table idempotently.user: user directories (~/.codex, ~/.codex/skills, ~/.omx/agents)project: local directories (./.codex, ./.codex/skills, ./.omx/agents)legacy: keep installing/updating OMX skills in the resolved user skill rootplugin: rely on Codex plugin discovery for bundled skills and archive/remove legacy OMX-managed prompts/skills/native agents; setup still installs native Codex hooks and codex_hooks = true because plugins do not carry hooks.user scope, if historical ~/.agents/skills still exists alongside ${CODEX_HOME:-~/.codex}/skills, current setup prints a cleanup hint. Why the paths differ: ${CODEX_HOME:-~/.codex}/skills/ is the path current Codex CLI natively loads as its skill root; ~/.agents/skills/ was the skill root in an older Codex CLI release before ~/.codex became the standard home directory. OMX writes only to the canonical ${CODEX_HOME:-~/.codex}/skills/ path. When both directories exist simultaneously, Codex discovers skills from both trees and may show duplicate entries in Enable/Disable Skills. Archive or remove ~/.agents/skills/ to resolve this.project, omx launch automatically uses CODEX_HOME=./.codex unless user explicitly overrides CODEX_HOME.developer_instructions defaults. If developer_instructions already exists, setup asks before overwriting it; non-interactive runs preserve it.--force or --merge-agents, AGENTS updates may still be skipped if an active OMX session is detected (safety guard).project-local) are automatically migrated to project with a one-time warning.Use this map when reconciling setup behavior or debugging a confusing install:
| Surface | Owner | Notes |
|---|---|---|
./.omx/setup-scope.json | omx setup | Persists setup scope and user-scope skill delivery mode. TTY reruns summarize it and offer keep/review/reset. |
~/.codex/config.toml / ./.codex/config.toml | omx setup generated blocks + user edits | Setup refreshes OMX-managed blocks while preserving supported manual content. |
~/.codex/hooks.json / ./.codex/hooks.json | omx setup shared ownership | Setup owns OMX native hook wrappers and preserves user-owned hooks. |
| prompts, skills, native agents | omx setup or Codex plugin delivery | Legacy mode installs local files; plugin mode relies on plugin discovery for bundled skills and archives/removes legacy OMX-managed prompt/native-agent copies. |
AGENTS.md | omx setup with overwrite safety | Generated defaults or managed refreshes are guarded by force/session checks. |
./.omx/hud-config.json | omx setup / $hud | Setup creates the focused default; $hud can adjust it later. |
| notification hooks | omx setup / $configure-notifications | Setup wires defaults outside plugin skill delivery; notification skill owns deeper provider configuration. |
$omx-setup is missing or staleThe source repo ships skills/omx-setup/SKILL.md and the catalog marks it active. If Codex does not show $omx-setup, treat it as an installation/discovery issue rather than a missing source skill:
omx setup --verbose in the intended scope.omx doctor and check the reported setup scope, Codex home, skill root, and hook/config status../.codex/skills/omx-setup/SKILL.md exists.${CODEX_HOME:-~/.codex}/skills/omx-setup/SKILL.md exists in legacy mode, or that the oh-my-codex plugin is installed/discovered in plugin mode.~/.agents/skills overlap and follow the cleanup hint printed by setup/doctor.omx setup --force --verbose
omx doctor
From omx doctor, expect:
.omx/state existsconfig.toml (~/.codex/config.toml or ./.codex/config.toml)npm run build
omx points to another install, run local entrypoint:node bin/omx.js setup --force --verbose
node bin/omx.js doctor
--force, stop active OMX session and rerun setup.--merge-agents, stop active OMX session and rerun setup.