codex-sprint
Use when one milestone is too large for a single spec or plan and needs several brainstorm-and-plan rounds before it ships — a long, multistage effort spanning sessions where the coding should be handed off to codex while you stay the conductor. Triggers on "long multistage project", "many brainstorms and plans", "milestone with multiple stages", "resume where I left off", "delegate implementation to codex".
What this skill does
# codex-sprint ## Overview A milestone too big for one spec-and-plan is run as a **sprint**: a series of stages, each one `brainstorm a spec → write a plan → hand the coding to codex`. One living doc tracks the stages so you can stop and resume across sessions. **Core principle:** the main context stays a **lean conductor** — only the sprint doc, current stage, decisions, open questions. Every technical step (codex, review, verify, land) runs in a worktree via a subagent, so diffs and logs never reach it. **You are the foreman. Codex digs.** ## When to Use - A milestone needs **multiple** brainstorm/plan rounds, not one spec → done. - Long, multistage work **spanning sessions**; you resume "what stage am I on". - You delegate implementation to **codex** while steering design. **Not for:** a single-spec feature; one small task (`codex:rescue` directly). ## Capability Probes (run FIRST, every invocation) Probe; never assume. Adapt, and tell the user to install whatever's missing. | Capability | Probe | If absent | |---|---|---| | superpowers | `superpowers:brainstorming` in skills list? | bare brainstorm + plan; **recommend installing superpowers** | | codex | `codex:rescue` in skills list? | run a `general-purpose` subagent in the worktree; **recommend the codex plugin** | | codex SDD | `fd -t d subagent-driven-development ~/.codex/skills ~/.claude/plugins/marketplaces/openai-codex 2>/dev/null` | hand codex the whole plan | ## Starting a Sprint 1. `mkdir -p docs/plans`. 2. Create the integration branch and stay on it the whole sprint: `git switch -c feat/<sprint>`. 3. Brainstorm the **decomposition** with the user → ordered stages → write the sprint doc. Then run stages one at a time. ## The Sprint Doc Source of truth at `docs/plans/<sprint>-sprint.md`. Re-invoking the skill reads it and resumes at the first non-done stage. Slugs: **`<sprint>`** = milestone slug (e.g. `auth`); **`<NN>-<stage>`** = per-stage prefix (e.g. `01-schema`). ``` # <Milestone> — Sprint Integration: feat/<sprint> · Base: master Legend: todo · brainstorming · planned · executing · review · blocked · done ## Stages 1. [done] Schema — spec:01-schema-spec.md plan:01-schema-plan.md (merged @a1b2c3) 2. [executing] API — spec:02-api-spec.md plan:02-api-plan.md wt:.worktrees/02-api 3. [todo] UI ## Decisions log ## Open questions ``` Per-stage files: `docs/plans/<NN>-<stage>-spec.md` and `-plan.md` (superpowers convention). **Resuming:** read the doc → resume at the **first non-done stage** (at its current status). None left → sprint complete, report and stop. No doc → start a sprint. ## Per-Stage Lifecycle Steps **1–2 are interactive, in the main context**. Steps **3–7 run in a worktree via a subagent**. Step **8 is back in the main context**. **Before running steps 3–7, open `mechanics.md` (this skill directory) — it holds the exact commands and shell variables (`$WT`, `$BR`, `$S`).** 1. **Brainstorm** (main) → `superpowers:brainstorming` (or bare) → `docs/plans/<NN>-<stage>-spec.md`. 2. **Plan** (main) → `superpowers:writing-plans` (or bare) → `docs/plans/<NN>-<stage>-plan.md`. 3. **Isolate** → create the worktree off the integration branch. 4. **Execute** → codex implements the plan, write-enabled, **in the worktree**; effort by risk. If codex stalls/stops mid-plan, **resume the same thread** (`task --resume-last`, what `codex:rescue --resume` wraps) — never re-run fresh (mechanics §4). 5. **Review** → headless `/code-review --fix` **in the worktree**; loop unresolved items back to step 4. 6. **Verify** → repo test/build **in the worktree**; on failure, loop back to step 4. 7. **Commit & land** → commit the worktree changes (codex/review leave them uncommitted), merge the branch into the integration branch, remove the worktree. 8. **Update doc** (main) → stage → `done` + merge SHA; append decisions/questions; commit the doc; next stage. **Dispatch model:** per stage the conductor spawns **one** `general-purpose` stage-runner subagent that executes steps 3–7 from the repo root and returns a **terse** report: `landed @sha` / `blocked: <reason>` / files-touched count. The conductor runs only steps 1–2 and 8 — never the Mechanics commands. **No diffs or logs reach the conductor.** ## Common Mistakes | Mistake | Fix | |---|---| | codex or review run in the main repo, not a worktree | Always `--cwd "$WT"` / a `(cd "$WT" && …)` subshell; both mutate files. | | One giant spec/plan for the whole milestone | The anti-pattern this skill replaces. Decompose into stages. | | Merging/removing the worktree before committing | codex and `--fix` leave changes uncommitted — commit first (mechanics §7). | | Marking a stage `done` before it merged + passed verify | `done` = merged **and** green. | | codex stopped/stalled mid-stage → reported `blocked` or re-ran a fresh `task` | Resume the **same** thread first: `task --resume-last` (mechanics §4). Fresh loses codex's context and may clobber the partial edits. | ## Red Flags — STOP - About to read a full diff in the main context → dispatch a subagent instead. - About to start coding yourself → that's codex's job; delegate. - codex stopped before finishing and about to launch a fresh `task` (or report `blocked`) → resume the existing thread first (`--resume-last`, mechanics §4). - No sprint doc yet but already brainstorming a stage → create the branch + doc and decompose first.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.