omx-setup
Setup and configure oh-my-codex using current CLI behavior
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- omx-setup
- description
- Setup and configure oh-my-codex using current CLI behavior
03 SKILL.md 正文
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>]
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--dry-run: print actions without mutating files--verbose: print per-file/per-step details--scope: choose install scope (user,project)
What this setup actually does
omx setup performs these steps:
- Resolve setup scope:
--scopeexplicit value- else persisted
./.omx/setup-scope.json(with automatic migration of legacy values) - else interactive prompt on TTY (default
user) - else default
user(safe for CI/tests)
- Create directories and persist effective scope
- Install prompts, native agent configs, skills, and merge config.toml (scope determines target directories)
- Verify Team CLI API interop markers exist in built
dist/cli/team.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). - If
AGENTS.mdexists and--forceis not used, interactive TTY runs ask whether to overwrite. Non-interactive runs preserve the file. - Scope targets:
user: user directories (~/.codex,~/.codex/skills,~/.omx/agents)project: local directories (./.codex,./.codex/skills,./.omx/agents)
- Migration hint: in
userscope, if historical~/.agents/skillsstill 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~/.codexbecame 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. - If persisted scope is
project,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). - Legacy persisted scope values (
project-local) are automatically migrated toprojectwith a one-time warning.
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)
- Skills installed (scope-dependent: user or project)
- 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.
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.