codex
Skill0 starsChanged 4 months agoMITView on GitHub
Set up or re-sync the current project to run in OpenAI Codex CLI. Checks Codex's LIVE docs first (mechanics drift — never build from remembered facts), runs Soloship's codex target, closes the bespoke-rule drift gap the installer misses, mirrors MCP servers into Codex's config, and reports manual settings steps. Use when asked "/codex", "set up codex", "sync codex", or "get this project working in Codex".
135 other projects use a version of this.
Adopted by
Most recently taken up by
- holylight1979/AtomicMemory-ClaudeCodetheir own version, first seen Nov 8, 2026
- mxrsv/agents-skillstheir own version, first seen Nov 8, 2026
- hemal08ce094/DesignSkillsSwiftUItheir own version, first seen Nov 8, 2026
- choughton/feature-design-prompt-templatestheir own version, first seen Nov 8, 2026
- hurleywgly/skillstheir own version, first seen Nov 8, 2026
- puck-muling/peer-agenttheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ios-sync, compare-screenshots and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 5 projects that use this
dzhngSkillimplement-spec-with-codex
Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.
Also in 4 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
john-data-chenSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 5 projects that use this
- +1 more from Saqlain-811
Other versions135 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 135
- NousResearch/hermes-agent★ 262ksame name
- garrytan/gstack★ 141ksame name
- dzhng/jevgrep★ 3.2ksame name
- ispc/ispc★ 3ksame name
- bergside/awesome-design-skills★ 2.9ksame name
- dataplat/dbatools★ 2.9ksame name
- Lilac-Labs/gini-agent★ 1.9ksame name
- Open-Curiosity/gini-agent★ 1.9ksame name
- dzhng/skills★ 1.5ksame name
- clice-io/clice★ 1.4ksame name
125 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- .cursor/rules/publish-version-bump.mdcCursor rule
- .cursor/rules/release-version-sync.mdcCursor rule
- antigravitySkill
- auditSkill
- autoplanSkill
- bootstrapSkill
- brainstormSkill
- browseSkill
- ceo-reviewSkill
- clarifySkill
- cleanupSkill
- code-reviewSkill
- component-inventorySkill
- context-restoreSkill
- context-saveSkill
- critiqueSkill
- cronSkill
- csoSkill
- cursorSkill
- debugSkill
- deepen-planSkill
- design-reviewSkill
- devex-reviewSkill
- document-reviewSkill
- eng-reviewSkill
- executing-plansSkill
- fableSkill
- finishSkill
- frontend-designSkill
- grill-meSkill
- grokSkill
- implementSkill
- learnSkill
- office-hoursSkill
- onboardSkill
- plan-design-reviewSkill
- planSkill
- polishSkill
- qaSkill
- reviewSkill
- shipfastSkill
- shipthoroughSkill
- simplifySkill
- specSkill
- statusSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- ui-auditSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 111 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 88
Installer first: run init/upgrade --agent codex, then npx soloship doctor — the codex items must be green.
- Very specific: line 103
Project without Soloship: create .codex/rules/ and copy all .claude/rules/*.md into it verbatim.
- Very specific: line 122
If .mcp.json exists: list servers by name, ask the user which to make available in Codex (multi-select).
- Very specific: line 132
Write the manifest to .ai/sync-state/codex.json.
- Very specific: line 133
Commit generated .codex/ files per project conventions (worktree rules apply).
“Common” is measured: kept by at least 6 in 10 of the 111 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/codex — Project Environment Sync for Codex CLI
Make this project's governance fully available to Codex, from whatever state it's in now. Idempotent: first run sets everything up; later runs sync only what changed and report what's new.
Gates (binding in every posture — violating any is a failed run)
- Docs before build. The live docs check (Phase 3) runs BEFORE any sync work. Codex's mechanics drift between runs — verified example: its docs host moved (developers.openai.com → learn.chatgpt.com, 308) and a Hooks section appeared after Soloship's target marked hooks "not shipped". Building from remembered facts and checking docs afterward is the failure class this ordering prevents. The report records the docs-check date.
- Sources are read-only.
AGENTS.mdis the primary source (project instructions plus the seven safety-gate rules, in its## Safety gatessection — since 2026-08-27 those no longer live as separate files in.claude/rules/); Codex reads it natively, so this is also the target, not just an input to mirror.CLAUDE.mdis derived from it (@AGENTS.mdimport plus a Claude-only appendix)..claude/rules/(project-specific rules a human added by hand),.claude/settings.json,.mcp.jsonare also inputs. Never edit or trim any of them to fit the target. - Prefer the installer over hand-rolling. Soloship HAS a codex
target:
npx soloship init --agent codex/npx soloship upgrade --agent codex— as of 2026-08-27 this includes.codex/hooks.json(the shared gate scripts every hook-capable host uses) and[features] hooks = truein.codex/config.toml, not just rules and AGENTS.md guidance. Run the installer — don't reimplement it. This skill's own work is the docs check, the delta check, the drift gap the installer misses, and MCP. - Real copies, never symlinks — for rule directories only. A
symlinked rules dir routes other tools' installers into
.claude/rules/(verified failure, 2026-08-15). Per-skill symlinks are fine — Claude Code documents symlinked skill directories as supported and dedupes them. - Syncing config does not certify the tool. The final report must
say so and point to the workspace's certification battery if one
exists (default location:
docs/testing/model-certification/SOP.md).
Phase 1 — Discover the source surface
Inventory: CLAUDE.md, AGENTS.md, every .claude/rules/*.md,
.claude/settings.json hooks, .mcp.json, existing .codex/ config,
and Soloship presence (.soloship/version). Run npx soloship doctor
and record the codex lines.
Phase 2 — What's new since last run
State lives at .ai/sync-state/codex.json:
{ "syncedAt": ISO-8601, "files": { "<source path>": "<sha256>" } }.
Hash every source (shasum -a 256), diff against the manifest: new /
changed / removed / unchanged. No manifest = first run, say so.
Removed sources: remove their .codex/rules/ counterparts after
verifying the file really derives from the removed source.
Phase 3 — Live docs check (BEFORE any sync work)
Fetch Codex's current docs — start at https://learn.chatgpt.com/docs
(the old developers.openai.com/codex URLs 308-redirect there as of
2026-08): Config Basics/Reference, agent-configuration/rules,
agent-configuration/agents-md, extend/mcp, and hooks. If URLs
moved again, search.
Confirm before acting: rules location/format the installer writes is
still what Codex reads; AGENTS.md semantics unchanged; MCP config shape
and location (config.toml, project vs ~/.codex/); and whether the
Hooks docs describe real lifecycle hooks now. This phase outputs the
verified mapping Phase 4 executes, plus a numbered manual-steps list
written for a non-coder for app-level settings (approval modes,
sandboxing, model selection) — exact command or menu path, exact value,
one line on why.
Phase 4 — Sync (per Phase 3's verified mapping)
- Installer first: run
init/upgrade --agent codex, thennpx soloship doctor— the codex items must be green. Doctor output is the evidence; paste the relevant lines in the report. If Phase 3 found the installer's output no longer matches what Codex reads, stop and surface that as a Soloship bug instead of patching around it. - Close the drift gap the installer misses: rules hand-written
straight into
.claude/rules/that never entered Soloship's template don't reach.codex/rules/(found in the wild 2026-08-15: four rules missing for months). Diff the two directories by filename AND content hash; copy any.claude/rules/*.mdabsent or stale in.codex/rules/, byte-identical. List every file this step moved — that list is the drift report, and each one is a candidate to fold intosrc/rules.ts(suggest it; the change itself belongs to the Soloship repo). - Project without Soloship: create
.codex/rules/and copy all.claude/rules/*.mdinto it verbatim. Confirm rootAGENTS.mdexists (Codex reads it natively); if absent, report the gap, don't invent one. - Hooks: as of 2026-08-27,
npx soloship init/upgrade --agent codexinstalls real hooks —.codex/hooks.jsonpointing at the samescripts/soloship-hooks/*.cjsgate files Claude Code uses (command-safety, billing-confirmation, recurrence, deploy-freshness, deploy-discipline, plan-truth, plan-merge, plan-namespace), plus[features] hooks = truein.codex/config.toml(off by default otherwise). Step 1's installer run already did this — verify it vianpx soloship doctor's.codex/hooks.jsonline, don't re-propose it. If Phase 3's docs check found the hook contract changed since 2026-08-27 (event names, payload shape, config format), surface that as a Soloship bug instead of patching around it here.session-register/deploy-lock/stop-checksare NOT yet ported to Codex (Claude-only for now) — list those as protection absent in Codex.
Phase 5 — MCP servers
If .mcp.json exists: list servers by name, ask the user which to make
available in Codex (multi-select). Write them per the shape and
location verified in Phase 3. Secrets: placeholder plus a manual step
unless the target file is confirmed gitignored / outside the repo.
Phase 6 — Verify, record, commit
npx soloship doctorgreen on codex items, file counts match the delta, every copied rule content-identical to source (shasumboth sides).- Write the manifest to
.ai/sync-state/codex.json. - Commit generated
.codex/files per project conventions (worktree rules apply).
Phase 7 — Report (always, in this order)
- Docs-check date + anything that changed in Codex's mechanics since the last run.
- Delta since last run (or "first run — full setup").
- Synced: what Codex now gets (doctor lines + drift-gap list).
- Protections absent in Codex: the gates not yet ported (session-register, deploy-lock, stop-checks — see Phase 4 step 4), named, with what each guards.
- Manual steps: the numbered list from Phase 3.
- MCP: mirrored / skipped / placeholders.
- Certification reminder: config synced ≠ tool trusted — run the battery SOP before granting write access; until then, proposal-only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

