build
Skill4 starsChanged 6 months agoMITView on GitHub
Turn an approved spec into a merged-ready PR with Codex doing the writing. Claude conducts; Codex writes the plan and the implementation; a Codex reviewer and a Claude reviewer independently attack each artifact; a fresh Codex agent reconciles them into one verdict (go / fix-go / fix-review). Use when the user runs /claudex:build, or asks to build/implement an existing spec with Codex as the builder and an adversarial review loop.
156 other projects use a version of this.
Adopted by
Most recently taken up by
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- lilly-builds/senior-engineer-modetheir own version, first seen Nov 8, 2026
- endqwerty/endstacktheir own version, first seen Nov 8, 2026
- DnsQueen/orcinus-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use backprop, finances 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.
JuliusBrusseeSkillbackprop
Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.
Also in 4 projects that use this
GerardoRdz96Skillfinances
Use when Gera talks about his money — logging an expense ("I spent X on Y"), checking where he stands this pay-period, closing a period, planning debt payoff, onboarding his financial picture, or asking for budgeting/finance opinions. Servy's financial brain. Triggers — "I spent", "log this expense", "where am I this period", "close the period", "how's my budget", "debt plan", "should I pay off", "finances onboard", "/finances".
Also in 3 projects that use this
cpiprintSkillfavicon
Generate favicons from a source image
Also in 3 projects that use this
madeehahassanSkillGo-Live
Pre-launch checklist. Use before making any app public, sharing a link externally, or announcing a product launch. Adapts to Claude Code, claude.ai, and Cowork.
Also in 3 projects that use this
JuliusBrusseeSkilldeepen
Optional design-improvement pass for when you have spare usage to drain. Finds the shallowest modules in the code the spec touches, researches a deeper design, and proposes refactors that shrink interfaces and hide decisions — behavior held constant, tests green before and after. Proposes §I/§V/§T edits, never silent rewrites. Triggers when the user says "deepen this", "improve the design", "this module feels shallow", "pull complexity down", "use spare budget on the codebase", or invokes /ck:deepen. Leans on the codebase-design skill's deep-module vocabulary when present.
Also in 3 projects that use this
synaptiaiSkillgate
Create a BDSK review_gate artifact. Defines a checkpoint that controls whether generated output may proceed toward acceptance. Use when defining quality, security, or scope gates for execution plans.
Also in 5 projects that use this
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- FalkorDB/FalkorDB★ 10ksame name
- microsoft/microsoft-ui-xaml★ 8.6ksame name
- NexaAI/nexa-sdk★ 8.5ksame name
- hathach/tinyusb★ 7.3ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- pytorch/TensorRT★ 3ksame name
- oxsecurity/megalinter★ 2.6ksame name
- iPlug2/iPlug2★ 2.4ksame name
146 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 repository5 other files it gives its agents.
- deep-researchSkill
- emailSkill
- setupSkill
- thinkSkill
- ultra-researchSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 143 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 22
Run everything inside an isolated git worktree (see Phase setup).
- Very specific: line 73
Only use --resume for fixes in a single-builder phase with no intervening Codex task (no parallel builders, no Codex-side review/reconcile …
- Distinctive: line 91
Run one Codex read-only review of the spec for actionability only — scope, ambiguity, acceptance criteria, risks, missing constraints.
- Distinctive: line 96
Blocking gaps?: Only non-semantic edits may be folded in automatically (typo / broken link / wrong path).
- Distinctive: line 102
Before leaving Phase 0, record a spec diff (what changed vs.
- Very specific: line 145
fix-gopost-fix check: After the builder applies a fix-go, inspect the resulting diff/scope. - Distinctive: line 160
Run the project's tests / build.
- Distinctive: line 167
After the user OKs the report, push the branch and open a PR.
- Very specific: line 178
No verdict means no decision.
- Distinctive: line 186
Verification before completion: never claim a phase passed without the reconciler's verdict.
“Common” is measured: kept by at least 6 in 10 of the 143 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
claudex:build — Codex-driven build orchestrator
You are the conductor. Codex does the writing — both the implementation plan and the real implementation. You sequence the phases, integrate parallel outputs, resolve conflicts, and decide verdict handling. You never hand-write the plan or the implementation yourself; you dispatch that to Codex and review its work.
Invoke this after a spec exists (e.g. from /claudex:think). The spec is an
input. The terminal state is an opened PR — never a direct push to
main.
Prerequisites
- An approved spec (path under
docs/superpowers/specs/, or the user points you at one). - The Codex plugin (the
codex-companionruntime +/codex:status//codex:result//codex:cancel) and superpowers. - Run everything inside an isolated git worktree (see Phase setup). This keeps the user's working copy clean during a long multi-phase run.
If Codex isn't available, see Tool failure below — core steps (builder, reconciler) hard-stop and ask the user; only a redundant review leg degrades.
Setup (once, before Phase 0)
- Confirm the spec path. If unsure, ask the user which spec to build.
- Enter an isolated worktree (
EnterWorktree, or theusing-git-worktreesskill /git worktreefallback). Do all work there. - Locate the Codex runtime once and reuse it:
COMPANION=$(ls -t ~/.claude/plugins/cache/openai-codex/codex/*/scripts/codex-companion.mjs 2>/dev/null | head -1)
How you talk to Codex
| Need | Mechanism | Mode |
| Build / fix (write the plan or implementation, or apply fixes) | node "$COMPANION" task --write --background "<builder prompt>" — run yourself, from the conductor session, inside the worktree | write-capable, tracked |
| Codex adversarial review of an implementation diff | node "$COMPANION" adversarial-review --wait --scope working-tree "<focus>" | read-only |
| Codex review of a plan doc (no diff yet) | node "$COMPANION" task --fresh --effort <e> "<adversarial plan-review prompt>" | read-only (no --write) |
| Reconcile two reviews → one verdict | node "$COMPANION" task --fresh --effort <e> "<reconcile prompt>" | read-only (no --write) |
Dispatch the builder yourself — do not route it through the codex:rescue
subagent. The companion buckets its job store by git rev-parse --show-toplevel
and filters /codex:status to the current CODEX_COMPANION_SESSION_ID. The
codex:rescue subagent (and the /codex:rescue command, which only wraps that
subagent) runs the companion from a different cwd and session, so the job
lands in another bucket and never appears in your /codex:status. Calling
node "$COMPANION" task ... directly from the conductor session keeps the job in
this worktree's bucket under this session — so it is trackable. --background
returns a job id immediately; poll it with /codex:status <job-id> (or
--wait), pull output with /codex:result <job-id>, and stop it with
/codex:cancel <job-id>.
Tracking caveat —
/codex:statusis worktree-scoped. Because jobs are bucketed by worktree toplevel,/codex:statusonly lists jobs created in the same worktree it is run from. Run it (and surface job ids to the user) from the build worktree. From elsewhere, query by explicit job id.
For parallel builders, fire several task --write --background calls in one
batch — each prints its own job id; track them with /codex:status <job-id>
(see dispatching-parallel-agents essence).
Routing fixes back to the builder — do not trust --resume. --resume
resolves to --resume-last (the latest tracked Codex thread), not a named
builder. After parallel builders, a review, or a reconcile, the latest thread is
almost certainly the wrong one. So:
- Only use
--resumefor fixes in a single-builder phase with no intervening Codex task (no parallel builders, no Codex-side review/reconcile in between). - Otherwise, start a fresh write task that re-supplies everything the fix
needs: the target files, a short summary of the original builder's context, and
the specific findings to address. Never
--resume-lastafter parallel builders.
Top-level flow
Phase 0 — Spec readiness gate
Phase 1 — Plan ── unified verdict loop, target = plan doc
Phase 2 — Build ── unified verdict loop, target = implementation diff
Phase 3 — Integrate → branch + PR (human merge gate)Phase 0 — Spec readiness gate
Run one Codex read-only review of the spec for actionability only —
scope, ambiguity, acceptance criteria, risks, missing constraints. (It is not a
redesign.) Use a task prompt that asks Codex to list blocking gaps that would
stop a plan from being written.
- Blocking gaps? Only non-semantic edits may be folded in automatically (typo / broken link / wrong path). Any semantic change — acceptance criteria, constraints, dependencies, user-visible behavior, security posture, or risk — is a material scope change and is user-gated.
- Material scope change proposed? PAUSE and ask the user. Do not edit the approved spec's meaning without approval.
- Before leaving Phase 0, record a spec diff (what changed vs. the approved spec) so the change is auditable.
- No blocking gaps? Proceed to Phase 1.
Phases 1 & 2 — the unified verdict loop
The same control flow runs for the plan (Phase 1) and the build (Phase 2).
Step 1 — BUILD (Codex writes the artifact).
- Plan phase: one Codex builder writes the implementation plan from the spec
(follow the essence of
writing-plans— staged tasks, acceptance criteria, test strategy). Save underdocs/superpowers/plans/. - Build phase: you decide per plan. Parallel background
task --writebuilders for genuinely independent units (you integrate the outputs and resolve conflicts); a single builder for tightly-coupled work — shared files, migrations, fragile test suites. No parallelism for coupled work.
Step 2 — DUAL ADVERSARIAL REVIEW (independent, in parallel).
- Codex side:
adversarial-reviewon the diff (build phase) or a read-onlytaskplan-review (plan phase). - Claude side (adaptive):
- plan phase → a Claude subagent prompted to attack the plan doc.
- build phase → the local
/code-reviewskill on the diff. - escalate to a stronger independent subagent for high-risk work (cross-cutting, security-sensitive, large, or ambiguous).
- Each reviewer must return the review contract:
- blocking findings (correctness / security / merge-blockers)
- requirement gaps (spec / acceptance criteria not met)
- test gaps
- a merge-readiness signal
Step 3 — RECONCILE (a fresh Codex agent → one verdict).
Hand both reviews (verbatim) to a new read-only Codex task. Ask it to
dedupe/weigh them and return exactly one verdict:
| Verdict | Meaning | Action |
| go | no fixes needed | phase complete |
| fix-go | low-risk/mechanical fixes only | original builder applies fixes; then a post-fix check (see below); phase complete |
| fix-review | consequential fixes | original builder applies fixes; loop back to Step 2 on the fixed artifact |
Report the reconciler's verdict + rationale back in the main session before acting.
fix-go post-fix check. After the builder applies a fix-go, inspect the
resulting diff/scope. If the change turns out non-mechanical (touches logic,
interfaces, behavior, or new files beyond the stated fix), upgrade it to
fix-review — re-review it and count it against the loop guard. fix-go only
ends a phase when its fixes were genuinely mechanical.
Step 4 — LOOP GUARD.
Count fix-review verdicts (including upgraded fix-gos and Phase 3 red-test
returns, below) per phase. The first triggers one re-review. If a re-review
returns fix-review again (the second attempt), STOP and ask the user —
do not loop further. A material scope change at any point also pauses for the
user.
Phase 3 — Integrate
- Run the project's tests / build. They must pass. A red result is treated
as blocking findings → loop back into the Phase 2 verdict loop (do not
integrate). A red-test return counts as a
fix-reviewattempt under the Phase 2 loop guard — a second one stops and asks the user rather than looping forever. - Emit a final report: per-phase verdicts, any degraded gates, any scope deltas, and a diff summary.
- After the user OKs the report, push the branch and open a PR. The PR is the
human merge gate. Never push to
maindirectly.
Cross-cutting policies
- Tool failure: retry the failing Codex call once, then apply the policy
by call type — degrading a core step would advance toward a PR with a
skipped gate, so core steps never degrade:
- Builder / fixer fails → hard stop, ask the user. There is no artifact
to ship without it; do not degrade regardless of
failClosed. - Reconciler fails / returns no clear verdict → hard stop, ask the user.
No verdict means no decision; never infer
gofrom a failed reconcile. - One review leg fails (Codex or Claude reviewer) → degrade only if the other leg succeeded, so the reconciler still has a real signal; log it and surface it in the final report. If both legs fail → hard stop.
failClosed: truein~/.claude/claudex/config.jsonturns even the single-leg degrade into a halt.
- Builder / fixer fails → hard stop, ask the user. There is no artifact
to ship without it; do not degrade regardless of
- Scope authority: material scope changes are user-only — pause for approval. Plain fixes flow automatically.
- Verification before completion: never claim a phase passed without the reconciler's verdict; never integrate without green tests/build.
- Config: reuse
~/.claude/claudex/config.json—effort,failClosed,timeoutMs.
Enforcement note
This skill is model-driven — there is no hook forcing the loop. The verdict
loop is the control structure; follow it as written. (Contrast /claudex:think,
which is hook-enforced.)
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.

