Agent skills for dynamic software delivery. Each skill works standalone in Claude Code or Codex; together they cover the path from rough idea to merged PR.
Rough idea → writing-specs → execute-dynamic-workflow → PR with green CI → babysit-pr
↑ |
| User approves spec |
+------------------ feedback ----------------+
- writing-specs — Collaborate with the user on a design spec with EARS requirements, then run an adversarial spec review (Codex, clean context) before writing the artifact. This is the human checkpoint.
- execute-dynamic-workflow — Deliver the spec with one repo-wide implementation owner by default. Use worktrees and parallel subagents only for independent, coherent units. Run repository checks directly, then use one clean-context adversarial reviewer from a different model provider when possible. After fixes, push the candidate and run CI plus independent EARS verification concurrently. The verifier proves every requirement with a lasting test or a disposable one-off check. The final phase also recommends
audit-testsfor lasting-test quality andbabysit-prfor CI and review monitoring. Local findings return to the implementation owner. Structural failures return to the top-level orchestrator for a repo-wide fix. - babysit-pr — Monitor the PR (or a whole stack — Graphite and GitHub
gh stackboth supported) in a long-running loop: snapshot status with a deterministic script, fix CI bottom-up, answer review comments (🤖-prefixed), push once per iteration, with stale-CI and give-up guards so the loop can't spin.
Standalone utilities:
- codex-mcp — The verified recipe for driving the Codex MCP: tool parameters, model names, sandbox/approval flags (including the
.gitwritable_rootstrick that makes commits work underworkspace-write), effort ladder, relay template for workflow scripts, and failure signatures. Other skills reference it instead of hardcoding Codex details. - audit-tests — Audit an existing test suite for low-value, brittle, duplicative, or AI-generated tests and produce a precise cleanup plan. Its test-quality doctrine is also enforced at review time by the adversarial reviewer.
| Skill | Description |
|---|---|
writing-specs |
Design specs with EARS requirements, clarification markers, brownfield gap analysis, and adversarial spec review |
execute-dynamic-workflow |
Spec → verified change with single-owner implementation, selective worktree parallelism, and cross-model adversarial review |
babysit-pr |
Long-running PR/stack monitor: fix CI, respond to reviews, push verified fixes — Graphite, gh-stack, or standalone |
codex-mcp |
Verified known-good configuration for the Codex MCP (models, sandbox, approvals, worktree cwd rules) |
audit-tests |
Test-suite audit: keep/delete/merge/upgrade grading with a behavior-value rubric |
Clean-context review contract used by the delivery and specification skills:
| Agent | Description |
|---|---|
adversarial-reviewer |
Clean-context attack on requirement coverage, baseline compatibility, cross-module seams, embedded logic, and test honesty |
- Spec-minimal frontmatter (
name+descriptiononly) so every skill loads in Claude Code, Codex, and anything else that reads the Agent Skills spec. - Direct deterministic checks: Git state and repository commands are verified by the orchestrator. Judgment stays in implementation and review agents.
- Stable ownership before fresh context: one owner keeps the complete implementation model. A fresh reviewer supplies independent challenge.
- Selective worktree isolation: parallel implementers get separate checkouts only when their changes are independently valid and useful.
- Flags over questions: after the last human gate, autonomous runs surface judgment calls at the end instead of stopping.
claude plugin marketplace add xmtplabs/code-factory
claude plugin install code-factory@code-factoryOr from a local clone:
git clone https://github.com/xmtplabs/code-factory.git
claude plugin marketplace add /path/to/code-factory
claude plugin install code-factory@code-factoryCodex discovers skills in ~/.agents/skills:
git clone https://github.com/xmtplabs/code-factory.git
mkdir -p ~/.agents/skills
for s in /path/to/code-factory/skills/*/; do
ln -s "$s" ~/.agents/skills/"$(basename "$s")"
doneThe same workflow shape works in Claude Code and Codex. Use the available native subagent and worktree tools directly.
git clone https://github.com/xmtplabs/code-factory.gitAdd to your opencode.json:
{
"plugins": [
{
"name": "code-factory",
"path": "/path/to/code-factory"
}
]
}