Install
npx skillscat add yeachan-heo/oh-my-codex/omx-setup Install via the SkillsCat registry.
This skill installs and configures oh-my-codex for the current project and user-level OMX directories by running the omx setup command with support for force, dry-run, verbose, and scope flags. It automates directory creation, prompt installation, native agent configuration, skill setup, and AGENTS.md generation while handling scope resolution through explicit flags, persisted settings, or interactive prompts. Developers should use it when setting up or refreshing oh-my-codex in a new or existing project environment.
OMX Setup
Use this skill when users want to install or refresh oh-my-codex for the current project plus user-level OMX directories.
Command
omx setup [--force] [--dry-run] [--verbose] [--scope <user|project-local|project>]Supported setup flags (current implementation):
--force: overwrite/reinstall managed artifacts where applicable--dry-run: print actions without mutating files--verbose: print per-file/per-step details--scope: choose install scope (user,project-local,project)
What this setup actually does
omx setup performs these steps:
- Resolve setup scope:
--scopeexplicit value- else persisted
./.omx/setup-scope.json - else interactive prompt on TTY (default
user) - else default
user(safe for CI/tests)
- Create project OMX directories (
./.omx/state,./.omx/plans,./.omx/logs) and persist effective scope - For
user/project-localscope:- install prompts
- remove legacy prompt shims
- install native agent configs
- install skills
- merge OMX config.toml
- For
projectscope: skip prompt/skill/config/native-agent installs with console messages - Verify required team MCP comm tool exports exist in built
dist/mcp/state-server.js - Generate project-root
./AGENTS.mdfromtemplates/AGENTS.md(or skip when existing and no force) - Configure notify hook references and write
./.omx/hud-config.json
Important behavior notes
omx setuponly prompts for scope when no scope is provided/persisted and stdin/stdout are TTY.- Local project orchestration file is
./AGENTS.md(project root). - Scope targets:
user: user directories (~/.codex,~/.agents/skills,~/.omx/agents)project-local: local directories (./.codex,./.agents/skills,./.omx/agents)project: project-only OMX setup (./.omx/*,AGENTS.md, HUD)
- If persisted scope is
project-local,omxlaunch automatically usesCODEX_HOME=./.codexunless user explicitly overridesCODEX_HOME. - With
--force, AGENTS overwrite may still be skipped if an active OMX session is detected (safety guard).
Recommended workflow
- Run setup:
omx setup --force --verbose- Verify installation:
omx doctor- Start Codex with OMX in the target project directory.
Expected verification indicators
From omx doctor, expect:
- Prompts installed (scope-dependent: user or project-local)
- Skills installed (scope-dependent: user or project-local)
- AGENTS.md found in project root
.omx/stateexists- OMX MCP servers configured in scope target
config.toml(~/.codex/config.tomlor./.codex/config.toml)
Troubleshooting
- If using local source changes, run build first:
npm run build- If your global
omxpoints to another install, run local entrypoint:
node bin/omx.js setup --force --verbose
node bin/omx.js doctor- If AGENTS.md was not overwritten during
--force, stop active OMX session and rerun setup.