Project lifecycle
Use when kicking off a new project, planning a new milestone, or executing per-phase work that needs traceable spec→plan→execute→journal→milestone-done discipline. Triggers include fresh project setup, "new milestone" requests, multi-task features, and decisions that warrant research before choosing. Also fronts every request with an intent-gate that turns a fuzzy or hard-to-articulate ask ("this is wrong, fix it") into a precise prompt — root-cause hypothesis + explicit expectation + named oracle — before any code.From its SKILL.md
npx -y skills add Siltpoke/project-life-cycle --skill project-lifecycleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
116.1 KB, as published. Nobody here has run it
Project Life Cycle
End-to-end coordinator for traceable, multi-phase project execution. Wraps the existing superpowers:* skills with the conventions surfaced during the initial pilot (see references/origin.md).
This skill IS an agent harness
Borrowing Tejas Kumar's framing ("Harnesses in AI: A Deep Dive", IBM, 2026): an agent harness is everything around the model that grounds it in reality. The model is a black box; the harness is the deterministic scaffolding that makes the model's output reliable enough to ship.
This skill is exactly that — applied to multi-phase software development. Its parts map cleanly onto the harness primitives Tejas describes:
| Harness primitive | Realized in this skill as |
|---|---|
| Tool registry | The set of subagents the orchestrator dispatches: researcher, story-writer, spec-writer, backend-builder, frontend-builder, acceptance-verifier, validator, reviewer, journal-writer (per references/cadence.md + references/builder-split.md + references/reviewer-brief.md) |
| Guardrails | Mandatory Conventions + Red Flags below; folder-map scoping; cadence step caps; CHANGELOG / PR label / Conventional Commits enforcement |
| Context management | Mandatory /clear between phases; journal entry + RESUME.md as canonical session-boundary contract; cost-aware behaviors (offset+limit reads, subagent investigation, compact output flags) |
| Agent loop | Per-phase workflow (10 steps) + per-task cadence (6 steps); orchestrated by /ship for single vertical slices |
| Verify step | Acceptance verifier (cadence step 1.5) + Validator (cadence step 2) + dual-track smoke (references/smoke-tracks.md) + verify-loop pattern (references/verify-loop.md) — all designed so the AI doesn't self-grade |
| Deterministic pre-step handlers | Pattern doc at references/deterministic-handlers.md for project-specific auth / secret / pre-flight / safety injection |
| Lie detection | Validator explicitly checks builder claims against the diff + acceptance verifier report (references/cadence.md §step-2) |
If you're new to the skill, the practical implication of the harness framing is: the AI alone is not enough; the harness IS the contract. Don't ask "can the model do this" — the model can do most things. Ask "is the harness wired correctly for the model to do this safely + verifiably + repeatably."
Native platform primitives. Several harness concepts above are now realized by first-class Claude Code features rather than prose the model must remember — skill-frontmatter hooks (this skill ships a self-enforcing hooks: block: --no-verify / push-to-main guard + throttled close-gate nudge), SessionStart:resume RESUME injection, dynamic Workflows for deterministic cadence fan-out, run_in_background parallel reviewers, worktree-isolated builders, AskUserQuestion for opt-in checkpoints, and plan mode for sign-off gates. The verified map (which primitive strengthens which node + how to wire it, with verification provenance) is references/harness-primitives.md. Each one moves a rule from "model self-discipline" toward "platform enforcement" — the same direction Definition of Done + the close gate already point.
User Cheatsheet (AI: surface this verbatim in chat the first time this skill is invoked per session)
4 habits to save tokens + keep continuity (translate to user's preferred language when surfacing):
-
End of every phase → journal entry →
/clear- After finishing a phase, have AI write the journal entry (no standalone handoff file — findings/gotchas fold into the journal's FACT schema) + update RESUME.md + commit, then
/clearbefore starting the next phase - Skipping
/clearbetween phases = context accumulates linearly; every subsequent turn gets more expensive
- After finishing a phase, have AI write the journal entry (no standalone handoff file — findings/gotchas fold into the journal's FACT schema) + update RESUME.md + commit, then
-
Don't invoke this skill's workflow for trivial tasks
- Typo / single-file polish / one-off bug fix / single config tweak → just say "fix this, skip the workflow"
- The full workflow (brainstorm → plan → 6-step cadence → journal → PR) burns 100-300K tokens per phase
- Use the skill for: fresh project / new milestone / multi-task feature / decisions needing research
-
Big lookups go to a subagent, not main context
- "Where is X / investigate Y / list all Z / map this directory" → say "use an Explore subagent"
- Running grep/find/Read chains in main context = context bloat that taxes every later turn
- Subagent returns a synthesis; main context stays light
-
Session continuity: the save is automatic — but real decisions still need
/handoff- Two layers. Mechanical (automatic): once
/init-harnesswires it, aStophook auto-saves a mechanical recap of every session (messages / files / tools) to~/.claude/plc-session-data/— no typing. At a context limit, just/clear; next session, run/recallto read that recap back (scoped to the current repo, read-only). - Curated (manual): the auto-recap captures what you did, not why / what-not-to-retry / the next concrete step. When a session made a real decision or hit a real lesson, run
/handoffBEFORE/clear— it writes the curatedRESUME.md, which theSessionStart:resumehook auto-injects next time. - Rule of thumb: trivial pause →
/clear; real state worth keeping →/handoff, then/clear. The mechanical save is a safety net, not a substitute for/handoff.
- Two layers. Mechanical (automatic): once
AI MUST surface this cheatsheet to the user the first time this skill loads in any session. Translate the cheatsheet into the user's preferred language (detect from CLAUDE.md language setting or recent user messages) before surfacing — the cheatsheet content is universal, but the user reads it in their own language. After surfacing once, enforce silently via the Mandatory Conventions + Red Flags below.
Core Principle
Every decision, deviation, and review finding must be traceable through git + dated artifacts. Plans always drift; the drift is the most valuable signal — surface it, don't bury it.
Definition of Done (enforced — read this BEFORE the step lists)
The #1 way this skill fails: the AI finishes the code (the interesting part), feels done, and silently skips the wrap-up — journal, tests-3×, handoff, CHANGELOG, PR-comment. Those are the LAST steps, furthest from attention once code works. Prose "MANDATORY" does not stop this. Two forcing functions do, and both are required every time:
-
Materialize the steps as an enumerated task list — FIRST action on every invocation, before any work. For the current entry that means: per-phase work → the 10 per-phase steps; a single cadence task → the 6 cadence steps. Enumerate every step as its own item — never collapse them into one "do the work" item, and never just announce the count in prose. The wrap-up items (journal / tests-3× / handoff / CHANGELOG / PR-comment / smoke) are non-optional, never dropped from the list. Visible unchecked items at done-time are the cheapest defense against silent skips. Mark each in-progress → completed as you go; never batch. ❌ Anti-pattern: saying "this is a 6-step process" and then running with no list emitted — or emitting a single "implement the feature" item. Both defeat the tracker; the wrap-up steps silently drop.
Two ways to satisfy it — the file is the contract, the host tool is the upgrade.
- Portable (always available): write
.claude/tasklist.md— one- [ ]line per step, wrap-up steps included, with the nonce line the guard prints in its block message as the first line. This works on every host, because writing a file is the one capability any agent that can edit code necessarily has. Add/.claude/tasklist.mdto the project's.gitignore— it is per-phase working state carrying a session nonce, and committing it puts a meaningless artifact in every adopter's history. Expect exactly one block per phase: the nonce is minted by that block, so the artifact cannot be pre-written to avoid it. - Host-native (better when present): a first-class task tool — Claude Code's
TaskCreate(one task per call,TaskUpdateto advance them), or the equivalent under another CLI (update_plan,write_todos,updateTodos,todo_write). Where one exists, prefer it: it renders as live UI rather than a static file.
In-progress marker (
- [/]) + a reader (/tasklist). The list is markdown checkboxes:- [ ]todo,- [x]done, and- [/]for the ONE task in progress right now — the[/]convention is the Obsidian-Tasks de-facto in-progress status (ASCII, stays in the checkbox family, so SKILL.md docs and the file itself stay pure-ASCII; the display glyph is a rendering-layer concern, never stored). Set- [/]on the leaf you are working so the reader can flag it← here. Since the host widget (TaskCreate/TodoWrite) is absent on some profiles and never portable across CLIs, PLC ships its own terminal reader for this contract:/tasklistprints a brief collapsed line (phase name, a progress bar +done/total, and a single▶ now: <group> · <current step>), and/tasklist --treeexpands the full overview (per-##group counts + each leaf glyphed✓/▶/○, the current- [/]flagged← here). Pure jq-free bash (scripts/tasklist-view.sh), on every CLI; any unknown checkbox char is treated as todo. The reader is read-only: it renders the contract, never writes.claude/tasklist.md.hooks/tasklist-first.shchecks the file, and accepts a host tool call as an alternative satisfier. It deliberately does not key on a tool name: a hook cannot enumerate the session's tools, and no two CLIs agree on the name or the call granularity — so a name-keyed guard is unsatisfiable on some hosts and reports enforcement it is not performing. When it cannot verify a list it saysUNVERIFIEDon every gated call rather than going silent; anUNVERIFIEDline in the transcript is not a pass, and closing a phase under one requires aSKIP: <reason>line in the journal like any other unperformed step. - Portable (always available): write
-
Run the close gate — and paste its output — before claiming done.
make task-doneafter each cadence task;make phase-done PHASE=X.Ybefore opening the PR. The gate is pure code: it exits non-zero if a required artifact is missing (journal header, fresh test-evidence, CHANGELOG touch, smoke files, ROADMAP touch). "It passed" without pasted gate output = unverified = not done. Full spec, portable script, manifest, and pre-push-hook wiring inreferences/close-gate.md. The un-bypassable layer is the active git pre-push hook (.githooks/pre-push+git config core.hooksPath .githooks) — it physically rejects pushing an incompletefeat/phase-*branch regardless of whether the model remembered to run the gate. Model-run discipline alone is the weakest layer and is exactly what lets wrap-up (especially the tests) get skipped. Before relying on the gate, confirm a pre-push gate is actually active — check BOTH wirings, not just one: eithergit config core.hooksPathprints a hooks dir that contains the gate (husky/lefthook style), OR the default.git/hooks/pre-pushexists and invokes the close gate (whatscripts/install-close-gate-hook.shinstalls). An emptycore.hooksPathis not proof the gate is absent — a repo can run its gate from the default.git/hooks/pre-pushwithcore.hooksPathunset. Only if NEITHER holds is the gate uninstalled — run/init-harness --refresh(orscripts/install-close-gate-hook.sh) to retrofit it.
A task/phase is "done" only when every wrap-up todo is checked AND the close gate exits 0 with output shown. A skip is legitimate only when written down as a SKIP: <reason> line (journal "Plan deviations") — the gate enforces this. No silent skips.
When to Use
- A fresh repository ("let's start a new project") → branch to "new-project" entry
- An existing repository with
RESUME.md(root ordocs/) /iteration-journal.md(docs/or root) → branch to "existing-project" entry — either anchor at either location counts - An existing codebase with substantial code but NO plc artifacts ("brownfield") → branch to "adoption entry": offer the archaeology pass per
references/archaeology.md - A milestone is about to start → invoke
superpowers:brainstorming - A milestone has a signed-off spec → invoke
superpowers:writing-plans - A phase plan is ready → run the per-task cadence below
- A milestone is closing → run the milestone-done gate
Don't use for one-off bug fixes, single-file polish, or trivial commits — those don't need the full machinery.
Entry Detection
digraph entry {
"RESUME.md exists?" [shape=diamond];
"iteration-journal.md exists?" [shape=diamond];
"substantial existing code?" [shape=diamond];
"new-project" [shape=box];
"existing-project: read RESUME.md, locate current phase" [shape=box];
"adoption entry: offer archaeology (per archaeology policy key)" [shape=box];
"RESUME.md exists?" -> "iteration-journal.md exists?" [label="no"];
"RESUME.md exists?" -> "existing-project: read RESUME.md, locate current phase" [label="yes"];
"iteration-journal.md exists?" -> "existing-project: read RESUME.md, locate current phase" [label="yes"];
"iteration-journal.md exists?" -> "substantial existing code?" [label="no"];
"substantial existing code?" -> "adoption entry: offer archaeology (per archaeology policy key)" [label="yes"];
"substantial existing code?" -> "new-project" [label="no"];
}
"Substantial existing code" = recognized manifest present OR ≥1 recognized source file outside the whitelist — deterministic contract, lists, ambiguous-case and monorepo rules in references/archaeology.md. Each anchor in the graph counts as present at either conventional location (RESUME.md at root or docs/RESUME.md; docs/iteration-journal.md or root) — see the detection contract. The adoption entry offers a one-time read-only archaeology pass deriving baseline drafts (inferred ROADMAP / glossary / backfilled ADRs / journal start line / RESUME / adoption-snapshot index), gated by the ask-once archaeology policy key.
Per-Phase Workflow
Front door (runs FIRST, on every fresh user request — milestone kickoff AND mid-phase ad-hoc instructions like "now fix this modal"): pass the request through the intent-gate (references/intent-gate.md) — classify → confirm intent → reframe+sharpen — before any code. Default assume (lay out assumptions for one-tap approve; ask one question only when a key ambiguity can't be assumed). The gate's size classification is also the machinery triage: trivial+clear → one-liner inline (skip the workflow); medium → per-task cadence; large → the brainstorm below. For large work the confirmed intent seeds step 1's brainstorm — never re-asked downstream. The gate also infers an Archetype (Builder default / Prototyper / Sweeper / Grower / Maintainer) — orthogonal to Size: Size picks how much ceremony, archetype picks what shape the chain takes (which cadence steps fire, default oracle, diff direction). Per-request + one-tap confirm (never frozen into a box); Sweeper's net-negative-LOC direction is the one deterministically gated delta. See references/intent-gate.md §"Archetype". Skip only on an already-precise prompt or a verbal "skip gate".
For each milestone:
- Brainstorm →
superpowers:brainstorming, seeded by the intent-gate's confirmed intent (continue from it, never re-ask). Runs the mandatory 7-step per-question protocol (frame → parallel research → 1st rec → blind 2nd-agent → compare → evidence-strength tag → surface): research is not optional per decision, every locked decision carries ≥1 citation, decisions are ordered dependency-first, and mode choice (A interactive / B batch) is asked at kickoff — the full loop, the two-statePROPOSED | LOCKEDentry, the blind agent's required structured fields, the language-first sub-pass, and the mandatory recording rules all live inreferences/brainstorm-research-protocol.md(do not re-derive here). Storage: append Q&A to the branch'sdocs/qa-log.d/<date>-<branch-slug>.mdfragment (fragment convention →references/retention.md) and produce the per-phase design spec underdocs/superpowers/specs/. User-story file is mandatory for any user-observable phase — write it BEFORE the spec, user signs off (numbered ACs + Out-of-Scope), THEN spec; it is ground truth for the acceptance verifier + validator (references/user-story.md; skip only for pure-refactor / dep-bump / docs / internal-tooling). Also fronting the brainstorm, each with its reference: glossary discovery before Q1 (references/context-md.md), optional PRD for non-engineer stakeholders (references/prd-template.md), an ADR offer for decisions passing the 3-criteria gate (references/adr.md), HTML-companion opt-in (references/output-format.md), non-technical repo-intake (references/repo-intake.md), and gated reference-share capture (references/references-log.md). - Research gate → for any decision matching the triggers in
references/research-gate.md, do online research first; cite sources in the spec. - Spec ↔ Q&A cross-check (agent A) → at brainstorm close, dispatch an independent read-only cross-check agent per
references/reviewer-brief.md§"Cross-check lens" sub-mode A: does the spec faithfully reflect every locked decision — any lock missing, contradicted, or silently widened? (NOT a design review — it may not re-litigate a locked choice.) This absorbs the former writer self-review: agent A also names ≥2 failure modes per major decision into each entry'sRisks (what could go wrong with this choice)field, taggedcross-check agent A— the spec's risks are no longer self-graded by its writer. Inputs: thedocs/qa-log.d/*.mdfragment +user-story.md(if any) + the-design.mdspec. - Plan →
superpowers:writing-plans. Output:docs/superpowers/plans/YYYY-MM-DD-phase-N-<slug>.md. Plan ↔ spec cross-check (agent B) → after the plan lands, dispatch the cross-check lens sub-mode B (references/reviewer-brief.md): bidirectional coverage — every plan step traces to a spec item AND every spec item is covered by a plan step (orphan steps and uncovered items are both findings). Independent read-only agent, same fresh-context dispatch as agent A. Spec finalization HTML re-opt-in — if user declined the HTML companion at step 1 but now wants to share locked spec with stakeholders, re-ask once: "Generate HTML stakeholder view of locked spec? (renders mockups + dataflow + evidence-strength tags)". Skip ifhtml-policyis set inCLAUDE.mdor if already accepted at step 1. - Branch + execute → cut a phase-scoped branch (
feat/phase-X.Y-<slug>, never push direct to main). Use the per-task cadence inreferences/cadence.md(6 steps: implementer [1] → background batch: acceptance verifier [1.5] ∥ code-quality review [3], validator [2] joining on the verifier report → fixup [4] → journal entry [5], perreferences/cadence.md§"Background-by-default"). One task = one commit; push immediately, no batching. Bug encountered during execution → invokereferences/diagnose-loop.md(8-phase, 0–7: consult lessons → feedback loop → reproduce → falsifiable ranked hypotheses → instrument → fix + regression test → cleanup → distill); Iron Law = no fix without root cause. Issue-tracker projects may insert Step 4b breakdown: split the plan into vertical-slice tracer-bullet issues w/ HITL/AFK labels perreferences/issue-breakdown.md; skip if phase is owned end-to-end by single agent. - Dual-track smoke → write Track A manual checklist + Track B Playwright (or equivalent) spec. Both required for any user-visible phase. See
references/smoke-tracks.md. - Phase delivery handoff → no standalone file. The one section that is not derivable — §7 findings / gotchas — goes into the journal fragment under the FACT schema (
references/journal-schema.md). The other seven sections are caches: the file index is in git, the tests are in the test run, the PR-body appendix is on GitHub. Findings tier S1/S2/S3 perreferences/findings-tier.mdstill applies — it just lands in the journal. (references/handoff-template.mdis retained for the §7 field definitions and the PR-description appendix; it no longer names an output file.) - PR + Track A smoke + CHANGELOG update → write the PR body: a mandatory plain-language TL;DR at the very top, ABOVE §1 (zero-jargon, four bullets — Problem / What we did / Why we did it / Result + honest boundary), then the mandatory 3-section format (§1 What was done — prose intro FIRST, then a
### Use casessubsection REQUIRED for any new user-facing surface, then file bullets; §2 Why this approach; §3 Requirements satisfied). The full body shape, the Use-cases rule, and the demo-console-output requirement (verbatimcmd 2>&1 | teefor console/CLI/log/REPL phases) are inreferences/handoff-template.md§"PR description appendix" + §"Demo — real console output". CHANGELOG[Unreleased]entry REQUIRED in the same PR for any user-visible change — one Keep-a-Changelog category + exactly one PR label from the taxonomy (fragment-adopting projects writechangelog.d/<date>-<branch-slug>.mdinstead); the label list, exemptions, and full discipline are inreferences/changelog.md. Smoke interaction mode (Mode A self-serve / Mode B guided) is asked once per phase unlesssmoke-modeoverrides — the modes + the ask are inreferences/output-format.md, the Track A checklist inreferences/smoke-tracks.md. - CI gate + review (try-first-then-fallback) → always attempt the default path first: push the branch, let the configured CI workflow run, then post
@copilot reviewonce CI is green. The sole review gate on every path is the independent general-purpose reviewer's computed verdict (references/review-record.md§"Termination contract"); Copilot is advisory and a Copilot object of any shape never produces a PASS. Default path: (a) CI runs all gates (type / lint / unit / integration / regression / e2e / coverage / security perreferences/ci-cd-gates.md); (b) Copilot inline review (advisory) perreferences/copilot-review-loop.md— fixup commit + per-finding inline reply with SHA + Fx-label + re-trigger until clean. Fallback path (Pattern E) is automatic when: either the CI workflow fails to start due to "GitHub Actions payments have failed / your spending limit needs to be increased" (account-level billing block) OR Copilot's review job aborts with the same billing error. When that triggers, switch the workflow toon: workflow_dispatchdormant (do NOT delete it), run the R5 3× gate locally, dispatch an independent general-purpose reviewer (briefed perreferences/reviewer-brief.md) as the review gate — Copilot being advisory, this is the actual reviewer on every path, not a substitute for one — and post the full R5 + reviewer evidence as a PR COMMENT (not buried in the PR body). Full Pattern E protocol + decision flow inreferences/ci-cd-gates.md§Pattern E +references/copilot-review-loop.md§Copilot stand-in. Skip the (advisory) Copilot loop freely when (i) docs-only PR, (ii) one-line trivial fix not touching security/state/DB, or (iii) the user says "skip Copilot" with a reason in the PR body — but never skip the independent reviewer, whose findings must derive to APPROVED-CLEAN (zero open CRITICAL/IMPORTANT — computed by the controller perreferences/review-record.md, never a reviewer-stated approval) before merge. - Milestone-done gate → run
make phase-done PHASE=X.Yand paste its output BEFORE opening/merging the PR — the close gate verifies user-story/spec/plan docs + a journal entry per task + CHANGELOG[Unreleased]touch + Track A/B smoke artifacts (user-visible phases) + ROADMAP touch + fresh test-evidence; non-zero exit = phase not done (references/close-gate.md). Then seereferences/milestone-done.md. Updatedocs/ROADMAP.md: flip the finished milestone to ✅, next to ▶, log scope changes under "Plan changes", and rotate the status-file ring in the same edit (active + 2 most recent closed; oldest moves verbatim to the archive with a pointer stub) — perreferences/roadmap.md. The milestone-close archival drain + distill (journal/monolith verbatim moves, 4× roll-over, warn-only hot-cap + coverage rows atphase-done, human one-tap promotions → CONTEXT.md/ADR) runs here perreferences/retention.md. Opt-in / non-technical seams fire here too, each with its reference and skipped underaudience: technical: an HTML milestone-summary opt-in (references/output-format.md), a GitHub re-offer (references/repo-intake.md), and — at the project's TERMINAL milestone only — a deploy offer (references/deploy.md).
Per-Task Cadence (6 steps)
See references/cadence.md for full detail. The verification tail (steps 1.5 → 2 ∥ 3) is background-by-default: acceptance verifier + code-quality review dispatch as background agents at implementer-return, the validator joins when the verifier report lands, and the controller blocks only at the fixup step (the first point that needs both reports) — never at dispatch. See references/cadence.md §"Background-by-default". Short version:
- Dispatch implementer subagent(s) with the task text + ACs this task closes + scene-setting context + the story's Contingencies section verbatim (pre-declared "when X → do Y" responses — builder follows the pre-decided action instead of escalating; only undeclared surprises go BLOCKED/NEEDS_CONTEXT). Cross-layer phases split into 1a backend-builder + 1b frontend-builder per
references/builder-split.md(folder-scoped tools, sequenced BE→FE, BE emits API-contract summary, FE consumes it; mismatch routes back to BE, never silently massaged client-side). Controller adds explicit "adapt to existing patterns" guidance + first-of-its-kind infra detection. Soft time budget in every implementer brief: task exceeding ~15 min of work → STOP, return SPLIT_PROPOSED (done-so-far kept UNCOMMITTED + proposed vertical slices) — report-back, not kill; and the controller pre-splits tasks whose plan text predicts >1 file-cluster before dispatch. Seereferences/cadence.md§Step 1. - Acceptance verifier (step 1.5) — independent read-only-on-
src/subagent writes one acceptance test per AC inuser-story.md, exercising the system from outside (HTTP / UI / observable side-effect). Reports per-AC pass/fail/untestable. Failed AC → routes to BE or FE builder; untestable AC → spec gap surfaced to user. Skip only whenuser-story.mdwas skipped (pure-refactor / docs / infra). - Validator (step 2) — independent read-only subagent compares diff against
user-story.md+ spec + Builder Summaries + Acceptance Verifier Report. Outputs Critical/Important/Minor with file:line. Never edits, never invents issues, never does code-quality (that's step 3). Lens: correctness-vs-promise + scope drift (over-build + under-build) + folder boundary + security gaps vs spec. - Code quality review (step 3) — independent subagent — design, security, a11y, perf, bloat-smell checklist, forward-looking impact on downstream tasks.
- Fixup commit (step 4) (separate from the original
feat(...)commit, never amend or squash). Triage findings viareferences/defer-vs-fix.md. Re-verification after the fixup is selective at task level — re-run only the verifier scopes the fixup diff touched (affected ACs / affected folder-map side);phase-donestill demands the full suite, which is the safety net. Seereferences/cadence.md§"Selective re-verification after fixup". - Journal entry (step 5) (separate
docs:commit) using the 6-section schema inreferences/journal-schema.md. Then runmake task-doneand paste its output — the close gate (references/close-gate.md) verifies the feat commit + journal "Plan deviations" header + fresh test-evidence + no orphan[DEBUG-logs exist. Gate exits non-zero = task not done; fix the missing artifact, do not proceed. Human-approval timing is governed by theclose-gatepolicy key (per-taskdefault |pr-boundary): projects that adopt a human-blocking close approval (Task Close Report awaiting the user's "ok") may move that blocking approval from every task close to once per PR/merge — an independent read-only reviewer subagent does the per-task read, reports are still written every task, the deterministic gate is unchanged, and the merge boundary MUST keep a human-written approval marker the AI cannot author. Seereferences/close-gate.md§"Approval timing".
Cadence compression — for trivial mechanical tasks (small diff, no new logic, no security/compliance surface), skip acceptance verifier + merge validator with code-quality review into one pass. Single implementer (no BE/FE split) on layer-pure work. See references/cadence.md.
Comprehension co-discovery (opt-in, phase-level) — when comprehension is lite/full in CLAUDE.md, run one anti-cognitive-offloading round once per phase after validation (a why-question on the validated diff; discovery framing, non-blocking, no scoreboard, <30s). Off by default. See references/comprehension-co-discovery.md + references/cadence.md §"Comprehension Co-Discovery".
Builder profile (opt-in, user-typed /builder-profile) — reads the user's own local Claude Code transcripts (~/.claude/projects) and writes one markdown report to ~/.claude/builder-profile.md: a point-in-time snapshot of how this user actually uses an AI coding agent. Purpose is self-understanding (the user sees their own patterns → can use the agent better) + shared passive context any agent can read on demand. 100% local (no network call). Gated pipeline (deterministic stats.json → evidence gate → self-blinded cold read → adversarial verify → independent verification: a tested builder_profile_verify.py hard-assertion gate + a fresh-context cold critic, so the generator doesn't grade itself); spine-first synthesis; descriptive by default (1-10 scores behind --scores), operating-modes-not-archetype, co-discovery-not-growth-edge, you-vs-you-not-leaderboard — same discovery-over-judgment discipline as comprehension co-discovery. The report is the product — no separate memory seed, no skill step wired to consume it. After it passes verification the command walks the user through it in plain language in-conversation (spine-first, honest about what couldn't be measured, co-discovery as real questions), not just a path drop. Output lives at the stable read-contract path ~/.claude/builder-profile.md (present → passive working-style context; absent → not yet profiled) — see references/builder-profile.md §"Read contract". See commands/builder-profile.md + references/builder-profile.md.
Mandatory Conventions
Commits & branching
- Atomic commits, push-immediate. One task = one commit (plus optional fixup + docs:journal). Push after each commit, no batching.
- Branch + PR for every phase. Never push direct to main, even for doc-only changes. Branch name:
feat/phase-X.Y-<slug>. - Fixup commits are independent commits. Never amend a published commit; never squash review history away.
- Pre-commit / formatter / linter must run locally before commit. CI catching formatting drift means a wasted push cycle. Never use
--no-verify; fix the hook complaint instead. - PR description MUST use 3-section format — §1 What was done (prose intro FIRST, then
### Use casessubsection for new user-facing features, then file bullets) / §2 Why this approach / §3 Requirements satisfied. Mirrors Task Close Report template. Full template + rationale inreferences/handoff-template.md§"PR description appendix". - Commit message + PR description in English. Chat / project Q&A can be in the user's preferred language; durable artifacts default to English so they're greppable across projects and reviewers.
Versioning, CHANGELOG, and release notes
CHANGELOG.mdat repo root, Keep a Changelog 1.1.0 format. Newest version at top;[Unreleased]section accumulates between tags; six categories (Added / Changed / Deprecated / Removed / Fixed / Security); ISO 8601 dates. Full discipline + anti-patterns inreferences/changelog.md.- Every PR with user-visible behavior change MUST update
[Unreleased]in the same PR. Reviewers reject otherwise. Internal refactors with zero user-visible delta are exempt (applychore-quiet/skip-release-noteslabels). - Every PR carries exactly one category label from the taxonomy in
references/changelog.md§"PR label taxonomy". Label drives auto-generated GitHub release notes via.github/release.yml. Uncategorized PRs land in "Other Changes" catch-all → fix before cutting a release. - PR title in Conventional Commits style (
feat:/fix:/feat!:for breaking /docs:/ etc.). This is what auto-release-notes displays. - SemVer bump per release: MAJOR if any
breakingPR in unreleased set; MINOR if anyfeature/new-reference/new-command; PATCH if onlyfix/docs/chore. Bump both.claude-plugin/marketplace.jsonand.claude-plugin/plugin.jsontogether; CI validator rejects mismatch. - Release flow is automated via
/release(slash command shipped incommands/release.md). Run/release(or/release minor/patch/majorto override the auto-inferred bump) → orchestrator validates preconditions → on fragment-adopting projects, compiles allchangelog.d/*.mdfragments into[Unreleased]first (byte-verified, thengit rm'd — same atomic commit as the rename) → computes bump from the effective[Unreleased]content → asks human to confirm version once → renames CHANGELOG section + bumps both manifests + commits + tags + pushes + watches the workflow + verifies the GitHub Release landed. Do NOT editCHANGELOG.md/.claude-plugin/*/ git tags by hand for releases — the discipline is exactly that/releaseis the single entry point. Manual fallback flow + retroactive-tag recovery inreferences/release-process.md; fragment-compile mechanics inreferences/changelog.md§"Releasing" +references/retention.md§"Fragment convention".
Documentation & traceability
docs/ROADMAP.mdis the whole-plan map — the single doc answering "what is the entire plan + where am I in it?" Created at kickoff (by/init-harnessor end of first brainstorm once milestones are known), updated at every milestone boundary in the same commit as the RESUME update (flip finished milestone to ✅, next to ▶). Distinct from RESUME (current-phase, churns + gets/clear-truncated) — ROADMAP is stable, milestone-granularity, and survives long projects so neither human nor AI loses the shape of the whole thing by milestone 9. Scope changes are amended in the table AND logged under a dated "Plan changes" section (drift is signal). Full structure + status legend (✅ done / ▶ current / ☐ planned / ⏸ paused / ✗ dropped) inreferences/roadmap.md.- Journal "Plan deviations" header is required even when the body is "none" — its presence forces an active drift check.
- Chat-decision-drift capture (in-the-moment) +
/reconcilenet — when a conversation produces a structural roadmap/status change (add/drop/reorder a station · done↔doing · vision/current edit · new backlog item · re-estimate weight/eta) or a Decisions-log-worthy decision, draft thedocs/ROADMAP.md+ the read-first status doc (RESUME.md by default; STATUS.md where present) edit inline and get approval before moving on — the same stage-then-approve muscle as the Task Close Report. Land it at the source; do not let the decision live only in the chat. Scope is structural + Decisions-log ONLY — not every chat commitment. Never auto-commit the SSOT; the human approves each edit; preserve emoji/table structure so/catchup's parser keeps working./reconcile(commands/reconcile.md) is the session-close net that catches whatever slipped — reconciling both chat-drift and git-drift (merged PRs never reflected in the docs) — and reports a drift-latency count. Full mechanics inreferences/reconcile.md. - Evidence-strength tags on locked design decisions — 🟢 industry pattern (≥3 refs agree) / 🟡 mixed industry / 🔴 AI inference. 🔴 is highest review priority.
- Mid-phase resume note — when a phase spans multiple sessions or
/clearevents, drop adocs/research/YYYY-MM-DD-mX.Y-resume-note.mdcapturing what's done, what's next, and the contracts the next session must honor. - Backlog discipline — any deferred decision lands in a backlog file with explicit Trigger + Exit criteria.
- TOC index on long-lived docs — any append-only file (brainstorming-qa-log, iteration-journal, RESUME, smoke-findings, mid-phase-questions) or any doc >300 lines carries a top-of-file index with anchor links to each section. Both H2 sections and H3 sub-questions are linked. The index is updated in the same commit as the section append — never leave the index stale. Fragment-aware: qa-log and journal fragments (
docs/qa-log.d/,docs/journal.d/) are short-lived hot files and carry NO TOC; the obligation lives on the compiled artifact instead — the hot monolithdocs/brainstorming-qa-log.mdfor qa-log, the compiled archivedocs/archive/journal/YYYY-MM.mdfor journal. Full convention + maintenance rules inreferences/document-indexing.md. - Record the conversation's resume id — at the phase delivery handoff step or when updating
RESUME.md, run the Trigger A command inreferences/agent-chats-registry.mdso this chat is recoverable later via<cli> --resume(Claude, Codex, and future families). Safe to always call (no-ops in subagents / when the id is empty).
Documents record moments, never states
Derivable from a live source (code / git / GitHub / tests / a generated tracker) → do not write it down. It becomes a cache, the cache rots, and then it lies — with nothing failing. Not derivable (why this was chosen, what was rejected and why, the situation on the day) → write it down permanently, in the past tense, under the FACT schema.
No PLC document answers "where are we now." That is read from the live source. Documents answer how we got here, and why.
Parallel work & multi-session discipline
- WIP=1: one active code track per project. Anything running the per-task cadence (and ending in commits) is a code track. The gate chain serializes on the human — parallel code tracks multiply gate load + merge risk without adding speed. See
references/parallel-work.md. - Sidecar exception — doc-only research/investigation may run parallel to the active code track: no gate chain, zero code changes, writes only research docs (e.g.
docs/research/), never the status/roadmap file. A sidecar that wants to touch code or the status file is a second code track — stop it. - Single-writer rule — when multiple sessions share a worktree, exactly one session holds the pen for the status/roadmap file (STATUS/ROADMAP/RESUME). Sidecar findings enter through the pen-holding session; pen handover is explicit, never assumed.
Reviews
- Three review categories — spec compliance, code quality, forward-looking (works now but downstream task will be hurt). All three are valid reviewer outputs.
- The writer never reviews its own work — and never edits its reviewer's words. Reviews come from fresh-context, read-only subagents under the dispatch constraints in
references/review-record.md(explicit tier ≥ implementer's, refute-first with verdict-field LAST,file:lineevidence gate, controller-computed verdict — never a reviewer-stated "approved"). The review goes on the PR as a bidirectional record: reviewer report verbatim (writer must not condense it) + builder per-finding response (agree/disagree + why, re-graded severity, what changed / deliberately didn't). - Between finding and fix: mechanically verifiable findings → fix (one review-fix = one commit); judgment calls → "Reviewer asks" for the human; reviewer-suggested fix code is untrusted input (adopt the finding, re-derive the fix, add a test); review-fixes are unreviewed code → final-pass reviewer before close. Coverage window: commits after the last review SHA are unreviewed. See
references/review-record.md. @copilot reviewis advisory, not a merge gate — the sole review gate is the independent general-purpose reviewer (references/review-record.md§"Termination contract"); a Copilot object of any shape never produces a PASS. When Copilot IS available, run its loop as an extra signal, triggered after CI goes green. Every inline finding must receive an in-thread reply with the fix SHA + Fx-row label (or a deferred-with-reason reply). Re-trigger@copilot reviewafter the fixup commit lands; loop until Copilot returns "no actionable issues", the user signs off on remaining items, or the hard cap of 3 re-triggered rounds is hit (the loop does not self-converge; after the cap, fix any remaining CRITICAL/IMPORTANT without re-triggering and reply-defer minors — seereferences/copilot-review-loop.md§Looping rule). On personal repos the comment mention silently does nothing — request the reviewer via API instead (command inreferences/copilot-review-loop.md§Tool / API reference). Its silence or absence never blocks the merge and never counts as a pass — only the independent reviewer's computed verdict does. Stacked PRs follow the same loop on the head-vs-base diff. Full protocol +gh apicommand reference inreferences/copilot-review-loop.md.- Blind 2nd-agent revision on locked design decisions — every major locked decision passes an independent reviewer who does NOT see which option was chosen, to catch self-confirmation bias. Full protocol in
references/brainstorm-research-protocol.md§step-4 (fresh agent / options + research only / no recommendation visibility / side-by-side compare / disagreement is surfaced to user, never silently overridden). - Research-first per brainstorm question — never present options to the user without dispatching research first. Tier 1 advanced + Tier 2 novice (project-specific lists live in
CLAUDE.md) must both be surveyed for UX questions; single-tier is allowed for BE-only / data-shape questions but ≥2 reference products / sources is the floor. Seereferences/brainstorm-research-protocol.mdfor the dispatch template and banned patterns.
Smoke & delivery
- Dual-track smoke is required for user-visible phases — Track A manual + Track B Playwright (or equivalent). See
references/smoke-tracks.md. - Phase delivery handoff is derived, not filed — no standalone
docs/handoff/*.md. §7 findings/gotchas land in the journal FACT entry (references/journal-schema.md); the rest is read from git / the test run / GitHub.references/handoff-template.mdis retained for the §7 field definitions and the PR-description appendix shape only. - Findings tier S1/S2/S3 — see
references/findings-tier.md. S1 blocks merge; S2 ships with follow-up issue; S3 captured for later phase. - One-shot test runner — every project should have a
make phase-checks PHASE=X.Y(or equivalent) target. Output is pasted verbatim as the raw test-evidence block in the journal entry / PR-comment audit narrative — it is not filed anywhere else. - PR comment 9-layer audit narrative is MANDATORY on every non-trivial PR — separate from PR body (3-section template) and separate from raw test evidence (folded
<details>). The 9 layers (golden-path demo / negative-path demo / before-after / cost transparency / performance vs targets / findings tier / close-gate output / reviewer asks / what's next) give reviewers + future-auditors the why-this-matters narrative the diff alone can't carry. Draft both PR body + PR comment as.mdfiles in the session scratchpad, NOT in the repo BEFORE invokinggh pr create/gh pr comment(the user previews before anything is posted — that function is preserved; the draft dies with the session, GitHub is the live source, and a retained copy is a cache by construction). UI / SSR / dashboard phases require a dedicatedtests/e2e/<phase>-screenshots.spec.tscapturing 3-5 full-page PNGs intodocs/pr-drafts/screenshots/— those PNGs are load-bearing and stay (embedded in live PR comments viaraw.githubusercontent.com; deleting them breaks images in every historical PR — numbered by user flow, committed for audit, embedded via GitHub raw URLs in Layer 1/2). Full template + per-layer rules + visual-capture pattern + draft-first workflow + N/A skip protocol inreferences/pr-comment-template.md. Raw test evidence (tsc/ unit×3 / integration×3 / regression×3) is the companion folded layer at the bottom, perreferences/ci-cd-gates.md§"Posting test evidence".
Output format & smoke interaction
- MD is canonical for audit / AI-consumed / diff-critical artifacts — qa-log, iteration-journal, RESUME, mid-phase resume note, plan, PR description, backlog. Never replace with HTML. HTML diffs are noisy and break traceability; subagents read these N times so token cost compounds. Fragment-aware for qa-log: the compiled hot monolith (
docs/brainstorming-qa-log.md) and the archive are the MD-canonical artifacts; the transientdocs/qa-log.d/fragments are equally MD (never HTML) but exist only until the next milestone-close compile. - HTML companion is opt-in, and
references/output-format.mdis the only place its artifacts and asking moments are listed or counted — they are two different axes that give different numbers, so never collapse them and never restate either here. MD stays source of truth; HTML is a generated view co-committed alongside, and thedocs/qa-log.d/fragment stays force-MD in every case. - Project-level overrides via
CLAUDE.md—html-policy: ask | always-md | always-html(default:ask),smoke-mode: ask | self | guided(default:ask, recommendedguided),comprehension: off | lite | full(default:off— anti-cognitive-offloading co-discovery round, seereferences/comprehension-co-discovery.md),close-gate: per-task | pr-boundary(default:per-task— where the human-blocking close approval sits, seereferences/close-gate.md§"Approval timing"),archaeology: done YYYY-MM-DD | skipped(default: unset = offer once at the adoption entry — one-time brownfield archaeology pass, seereferences/archaeology.md),archetype: auto | <name> | off(default:auto— intent-gate infers the work's archetype per request to reshape the chain Size routed into, seereferences/intent-gate.md§"Archetype"),audience: adaptive | plain | technical(default:adaptive— conversational plain-language layer for non-technical users, seereferences/audience-tone.md),second-agent-family: auto | same-family | foreign:codex | foreign:<name> | off(default:auto= same-family blind 2nd agent, byte-identical to un-armed; armed-optional cross-family lineage diversity, never a hard dependency, seereferences/cross-family-review.md), andretention: {hot-caps, archive-dir, distill: on|off}(default: unset = skill defaults;hot-caps: {<doc>: none}is the only exemption; seereferences/retention.md). When set, skill skips the opt-in question for that node. Seereferences/output-format.md. - PR description is markdown-only — GitHub PR body does not render HTML. Any "richer" PR companion ships as an HTML artifact uploaded to S3 (or similar) with a link in the PR body, not inline HTML.
CI / CD discipline
- Three layers — local pre-commit (every commit) + PR-time CI (full test/lint/type/coverage/schema-drift) + merge protection on
main. Seereferences/ci-cd-gates.mdfor the gate list, decision tree, and example configs. - Never
--no-verifyon commit or push. Fix the hook complaint instead. - CI must include: format, lint, type check, unit + integration + regression tests (regression = Track B e2e / Playwright catching breakage in existing behavior, not just new-feature coverage), coverage floor, schema drift check, migration round-trip (if applicable), security scan.
- Branch protection on
mainrequires CI green, no force-push, no direct push. PR is the only path. - Try-CI-first, fallback only on confirmed billing block — default path: push, let CI run, post
@copilot reviewonce CI is green. Switch to Pattern E (workflow dormant + local R5 + a general-purpose reviewer stand-in briefed perreferences/reviewer-brief.md) ONLY when CI or Copilot actually fails with the account-level "GitHub Actions payments have failed / spending limit needs to be increased" error. Never pre-emptively skip CI because it was blocked in a prior phase — re-verify each phase. Full decision tree + Pattern E mechanics inreferences/ci-cd-gates.md§Pattern E. - All test results land in a GitHub PR COMMENT (not just buried in the PR body) — both paths (default CI + Pattern E). Body = narrative summary; comment = audit artifact (timestamped, attributable, re-postable per fixup). Required PR-comment fields, same shape both paths: raw type-check + 3× unit + 3× integration + 3× regression/e2e output blocks; Track A smoke summary table (if user-visible phase); S1/S2/S3 findings tally with Trigger/Exit for any deferred S3; Copilot or stand-in review status with SHAs; merge-readiness statement. Default path additionally links to the CI run page; Pattern E pastes local output verbatim. See
references/ci-cd-gates.md§"Posting test evidence" for the exact format. - Full gate includes the regression/e2e layer even on BE-only phases — gate proves the whole project still works after this phase's diff, not just the tests touching this phase's code. Skipping the e2e 3× because "I didn't touch UI" is exactly the silent regression the gate catches.
Self-update (when the user asks to evolve THIS skill)
- The repo is the single source of truth. The skill is consumed as a versioned plugin (installed from the marketplace into the plugin cache); released changes reach sessions only via version bump + release + plugin update.
- Default flow when user says "update the workflow / add this rule": edit the repo on a feature branch →
validate.py→ PR per CONTRIBUTING.md → done. No version bump, no tag, no release. - Try unreleased changes via
claude --plugin-dir <repo-path>— the working tree shadows the installed version for that session. Per-session flag; confirm what's loaded via/pluginsfirst. SKILL/reference text is live immediately;hooks/+commands/need/reload-plugins. - Release flow (explicit only, when user says "release vX.Y.Z" or equivalent intent to ship): run
/release— bumps both.claude-plugin/{marketplace,plugin}.json, commits, tags, pushes.release.ymlcreates the GitHub Release. - Scope check first: cross-project rules go in this skill; stack / domain / business / audience rules go in the project's
CLAUDE.md. Default to project's CLAUDE.md when ambiguous; promote to skill only after ≥2 projects use the rule or the user explicitly says "make it universal." - Dependency boundary (the other half of the scope check): PLC depends on nothing external. No PLC step may require an external product/host/tool to function — that silently re-narrows "works anywhere" to "works only if you also run X." Integrate with sibling tools only through open, documented, versioned file-format contracts (any tool/human can produce or consume them), preferring PULL (a consumer reads a PLC artifact; PLC knows nothing) over EMIT (armed-optional push). Full rule in
references/dependency-boundary.md. - Never cut a skill RELEASE mid-phase if it changes the current phase's exit criteria (merging to main is fine — sessions keep their released version until they update).
- See
references/self-update-flow.mdfor the full decision tree and anti-patterns.
Cost-aware behaviors
- Read with offset + limit by default for files > 200 lines; grep / Explore before Read; never re-read the same file in a session.
- Compact output flags by default —
pytest -q,vitest --reporter=line, pipe verbose commands throughtail/head. - One-sentence updates between tool calls — no preamble, no closing pleasantries, no re-summarizing diffs.
- MANDATORY
/clearbetween phases — at every phase boundary, write the journal entry (no standalone handoff file — findings fold into the FACT schema) + update RESUME.md + commit, then/clearbefore starting next phase. Long-running sessions (>1 phase) accumulate context linearly and slow every subsequent turn. - Skill scope triage BEFORE invoking project-lifecycle — invoke ONLY for: fresh project setup, new milestone, multi-task feature, decisions needing research. Do NOT invoke for: one-off bug fix, single-file polish, trivial commit, docs typo, single config tweak. For those, do the work inline (no brainstorm, no plan, no cadence). The full workflow costs 100-300K tokens per phase; trivial work doesn't earn it.
- Cadence compression for mechanical tasks — when task is small diff + no new logic + no security/compliance surface, merge spec + code review into one pass (saves ~15-30K tokens per task). See
references/cadence.md. - Brainstorm Mode B (batch) when ≥3 questions — Mode A dispatches research subagents per Q. Mode B shares dispatch overhead across all Qs. Saves 50-100K tokens on multi-Q brainstorm phases.
- Investigation work goes to subagent, not main context — for "where is X / how does Y work / list all Z" lookups, dispatch
Exploreorgeneral-purposesubagent and consume its synthesis. Don't run grep/find/Read chains in main context. - Model selection per subagent — Haiku 4.5 for high-frequency lightweight subagents (implementer for trivial tasks, brainstorm research Tier 2, journal entry generator). Sonnet 4.6 for general coding (implementer for typical tasks, spec/code reviewer). Opus 4.7 reserved for architectural decisions and the orchestrator/controller context.
- Full discipline + tool-adopt list (RTK / token-savior / context-mode / code-review-graph) in
references/cost-aware-behaviors.md. - Proactive app best-practices for non-technical users — distinct from the agent-token-discipline above: during dev, surface high-value frontend/backend improvements (loading, images, caching, pagination, indexes) inline + offer to apply, guarded by anti-nag rules; gated by
audience:(skip undertechnical). Seereferences/proactive-tips.md.
Quick Reference
| Situation | Action |
|---|---|
| Fresh user request arrives (milestone OR mid-phase ad-hoc) | Run the intent-gate front door (references/intent-gate.md): classify → confirm intent (assume + one-tap approve) → reframe+sharpen into a precise prompt w/ a named oracle (specified>differential/golden>metamorphic>implicit). Size triage: trivial→one-liner inline / medium→cadence / large→seed brainstorm (no re-ask) |
| Deciding what kind of work this is (new spike / production build / delete-simplify / PMF tune / mature-system upkeep) | Intent-gate infers the Archetype (Builder default / Prototyper / Sweeper / Grower / Maintainer) + one-tap confirm; it reshapes the chain Size routed into (which cadence steps fire, default oracle, diff direction). Sweeper's net-negative-LOC diff direction is the one deterministically enforced delta (references/close-gate.md §"Sweeper diff-direction"). Per-request, never frozen. references/intent-gate.md §"Archetype" |
| New decision, non-trivial | Research first; cite in spec; cross-check agent A names ≥2 failure modes at brainstorm close |
| Request is fuzzy / "this is wrong, fix it" / can't articulate precisely | The intent-gate's job — Stage 2 step-back (bug/missing-capability/design-choice/scope-undefined) + restate + assume; Stage 3 emits root-cause hypothesis + wrong-if + named oracle. references/intent-gate.md |
| Small mechanical task | Compress cadence (merge reviewers) |
| Plan snippet conflicts with existing code | Tell implementer to adapt; document in journal "Plan deviations" |
| First task touching a new tooling category | Insert bootstrap step or augment implementer prompt |
| Reviewer finds Important issue | Apply defer-vs-fix triage |
| Fixup landed, deciding what to re-verify | Task level: selective — only scopes the fixup diff touched (affected ACs / folder-map side). Phase level: always full suite (phase-done unchanged). See references/cadence.md §"Selective re-verification after fixup" |
| Foreseeable failure path spotted during story/spec | Add a when <observable> → <action> line to the story's Contingencies section; cadence step 1 injects it into the builder prompt verbatim |
| Codegen artifact change | Regen lands in same commit as source change |
| Research/investigation wanted while a code track is mid-flight | Run it as a sidecar: doc-only, no gate chain, writes only docs/research/, never the status/roadmap file (per references/parallel-work.md) |
| Two sessions share one worktree | Single-writer rule: one session holds the pen for the status/roadmap file; the other hands findings over for integration (per references/parallel-work.md) |
| Milestone closing | Run milestone-done gate + update docs/ROADMAP.md (✅/▶ flip, log scope changes) per references/roadmap.md |
| Lost the shape of the whole project / "what's the plan again?" | Read / update docs/ROADMAP.md — the whole-plan map (one-sentence goal + milestone table + status). Create it if missing (per references/roadmap.md) |
| Bug appears mid-phase | Invoke references/diagnose-loop.md — consult docs/lessons.md first (Phase 0), then build feedback loop, then ranked hypotheses, then fix. Iron Law applies. Verified root cause passing the distill gate (general + verified + non-obvious) → distill into docs/lessons.md (Phase 7) |
| User-message term is fuzzy / overloaded / missing from CONTEXT.md | Sharpen language first (per references/context-md.md), update glossary inline, then proceed |
| Hard-to-reverse decision locked w/ surprising rationale | Offer ADR (per references/adr.md) — 3-criteria gate, lazy creation |
| User-facing phase w/ non-eng stakeholders | Produce PRD alongside spec doc (per references/prd-template.md); skip for engineer-only phases |
| Issue-tracker project + multi-contributor phase | Insert Step 4b breakdown into vertical-slice tracer-bullet issues (per references/issue-breakdown.md) |
| User-observable phase (new endpoint / UI / CLI flag / user-triggered job) | Write user-story.md w/ numbered ACs BEFORE spec; user signs off; ACs flow downstream to acceptance verifier + validator (per references/user-story.md) |
| Phase spans backend + frontend | Split implementer into BE-builder + FE-builder with folder-scoped tools; BE first, emits API-contract summary, FE consumes (per references/builder-split.md) |
| Want single-prompt orchestration of a vertical slice | Use /ship <feature> command (chains researcher → story → spec → BE → FE → acceptance verifier → validator → fix loop → PR w/ 3 human checkpoints) |
| PR ready, change is user-visible | Add a one-line bullet to CHANGELOG.md [Unreleased] under Added/Changed/Fixed/etc. AND apply one PR category label per references/changelog.md |
About to gh pr create / gh pr comment | STOP — first draft body + comment as .md files in the session scratchpad, NOT in the repo (the user previews before anything is posted — that function is preserved). PR comment uses the 9-layer audit narrative. Then gh pr create --body-file <scratch> && gh pr comment <PR#> --body-file <scratch>. The draft dies with the session: GitHub is the live source, and a retained copy is a cache by construction. A retained draft claiming it was posted can silently differ from what actually went up — or never have been posted at all. UI / SSR phases still commit tests/e2e/<phase>-screenshots.spec.ts + 3-5 PNGs to docs/pr-drafts/screenshots/ — those PNGs are load-bearing (embedded in live PR comments via raw.githubusercontent.com) and are never archived, never counted, never removed. |
| Time to cut a release | Run /release (optional major / minor / patch; default auto infers from [Unreleased] content). Automates: rename [Unreleased] → [X.Y.Z], bump both manifests, commit, tag, push, verify GitHub Release. One human checkpoint (confirm version). Full spec: references/release-process.md |
| Fresh project / existing project adopting this skill for the first time | Run /init-harness. Detects stack + folder layout + tooling → generates CLAUDE.md / folder-map / policy keys / project-shared .claude/commands/ / deterministic handler scaffolds / CHANGELOG seed. Idempotent (merges into existing files; never overwrites without explicit confirm). 4 human checkpoints. Full spec in references/init-harness.md. Brownfield (code present, no plc artifacts) → the offer to run the archaeology pass fires at CHECKPOINT 1 (once, per archaeology policy key); manual trigger /init-harness --archaeology (per references/archaeology.md). After bootstrap → /ship your first feature |
| New person (or AI agent) joining this project | Day 1 = codebase Q&A ONLY (no edits / no PRs). Read CLAUDE.md / CONTEXT.md / RESUME.md / iteration-journal + ls docs/superpowers/ + .claude/commands/. Day 2+ = small /ship. Full protocol in references/onboarding.md |
| Subagent needs to check its own work (test / screenshot / curl) | Wire a verify loop into the dispatch per references/verify-loop.md. Three canonical loops: test (Loop A), visual (Loop B), runtime (Loop C). Cap iterations; on BLOCKED, surface to controller. Without a verify step, the LLM self-grades and lies |
| Failure mode has one right answer (auth / secrets / lint / migration safety / tenant isolation) | Write a deterministic handler per references/deterministic-handlers.md. Pure code, runs every loop iteration before LLM, exits early when N/A, injects [HARNESS] message when it acts. NEVER let the LLM "figure out" auth or secrets |
| Request qualifies for unattended execution (machine-checkable oracle + scope fence + no irreversible ops + no design judgment) | Intent-gate AFK axis OFFERS a loop contract — never auto-starts. The contract has exactly 4 fields, all mandatory: Goal (machine-checkable, fence-scoped at ratification) / Stop / Budget (rounds + hours are a mandatory floor — a blank Budget or "run and see" is not a contract) / Report. Loop terminus = pushed loop/ branch + exit report; PR ceremony runs in the next interactive session; merge is human-only. This skill defines the contract; it does not ship a runtime to execute it. The two are deliberately separate: a skill sits inside the agent's loop (markdown that changes how the agent thinks), while a runtime spawns the agent as a worker — inverted topology, so they do not belong under one name. Point the AFK axis at whatever runtime the project has; if it has none, the gate still answers honestly ("this qualifies, and you'd need one"). |
| An unattended run ended | Next interactive session auto-surfaces the exit report. COMPLETE is not believed on its word — re-run the goal check once; failure demotes it to COMPLETE_UNCONFIRMED. Compile the run's iteration log into the PR-comment "AFK Run Narrative" layer. End states, death codes and the exit-report schema live with the runtime. |
| AI keeps using wrong tool / wrong convention | Type # + the rule → auto-appends to CLAUDE.md. Over weeks, CLAUDE.md becomes a record of every surprising assumption. See references/ergonomics.md for the full ergonomics list |
Red Flags — STOP
- User request taken straight into code or brainstorm without passing the intent-gate front door → stop; run
references/intent-gate.mdfirst (classify → confirm intent → reframe+sharpen). Fuzzy-in → drift-out, and self-graded "MATCHES" against the AI's own memory, are the failures this front door exists to prevent. Skip only on an already-precise prompt or a verbal "skip gate". - Brainstorming re-asks intent the intent-gate already confirmed → the gate's confirmed intent is the brainstorm SEED; continue from it, don't restart. Re-interrogating wastes the user's time. Gate = first 10s of a big job; brainstorm continues its output.
- Reframe surfaced without a named oracle (just "diff against the spec") → name WHICH oracle type from the ladder (specified>differential/golden>metamorphic>implicit) and pick the strongest available; if none, take the no-oracle branch (manufacture golden / flag low-confidence / reclassify as missing-Phase). A fabricated confident-but-wrong oracle or root cause is worse than admitting there is none. See
references/intent-gate.md. - Skill invoked without materializing the step list first → stop; emit the enumerated list before any work —
.claude/tasklist.mdwith one- [ ]per step, or one host-task-tool call per step where such a tool exists. Announcing a step count in prose ("this is a 6-step process") without emitting one item per step is itself a skip. No enumerated tracker = wrap-up steps silently dropped. See "Definition of Done". - A phase closed while the guard was reporting
UNVERIFIED→ that is not a pass; it is the guard saying it could not check. Either write the list, or logSKIP: <reason>in the journal's "Plan deviations" like any other unperformed step. Treating anUNVERIFIEDtranscript line as a green is exactly the failure this guard exists to catch — a guard that reports enforcement it is not performing is worse than no guard, because the transcript then carries a green nobody re-checks. - Task/phase claimed "done" without running the close gate and pasting its output → not done. Run
make task-done(per cadence task) /make phase-done PHASE=X.Y(per phase); paste output. "It passed" without shown output = unverified. Seereferences/close-gate.md. - Tests slip through the hooked gates (
.claude/.last-test-runnever written even though commits/pushes happen) → the gate the pre-push hook runs is nowtask-done, and bothtask-doneandphase-donecheck fresh test-evidence, so tests are forced on every pushed task, not only at phase close (this closed the old gap wheretask-donehad no hook andphase-donehistorically omitted the check). Confirm the task/phase gate lists atest-evidenceline in its output; if absent, the gate script is out of date — re-sync fromreferences/close-gate.md. Seereferences/close-gate.md§"What the gate checks". - Gate scripts present but no pre-push gate actually runs → the un-bypassable layer is absent; only model-discipline remains. Confirm a gate fires on push via EITHER wiring —
git config core.hooksPathset to a hooks dir that contains the gate (husky/lefthook), OR the default.git/hooks/pre-pushpresent and invoking the close gate (an emptycore.hooksPathalone does NOT mean the gate is missing — a repo can run its gate from the default hook path). The gate is absent only when NEITHER holds. Retrofit with/init-harness --refreshorscripts/install-close-gate-hook.sh, thenmake test-gate PHASE=X.Yto confirm every check flips. Seereferences/close-gate.md§Wiring. - A wrap-up step (journal / tests-3× / handoff / CHANGELOG / smoke / PR-comment) skipped without a logged
SKIP: <reason>→ blocked; either do it or write the one-line reason in the journal "Plan deviations" section. Silent skips are the failure this skill exists to prevent. - A sidecar session edits code or the status/roadmap file → not a sidecar anymore; it's a second code track violating WIP=1 + the single-writer rule. Stop it; route the change through the active track / the pen-holding session. See
references/parallel-work.md. - Plan author skips brainstorming because "the spec is obvious" → don't.
- Brainstorm question presented to user without dispatched research first → stop, demote any "answered" Qs to tentative, re-run the 7-step protocol per
references/brainstorm-research-protocol.md. - Brainstorm question asked of user when codebase exploration could answer it → stop, dispatch
Exploresubagent first. If exploration resolves the Q, drop it from the user-facing list (log finding in spec). If exploration narrows the Q, present grounded options not open-ended. Asking the user whatgrepcan answer wastes their time. - Multiple brainstorm questions asked in one message → stop, ask only the next one.
- Blind 2nd-agent step skipped because "the answer is obvious" → obvious answers are where confirmation bias hides; run the step, it's cheap.
- 1st & 2nd agent disagreed but controller silently picked one → blocked; surface the disagreement to the user, let them break the tie.
- Recommendation without citations → "opinion alone is not enough"; must cite ≥1 reference product or industry source.
- Brainstorm kickoff without asking mode (A interactive vs B batch) → ask first; default-guessing wastes user time.
- Q&A entry omits verbatim user message or verbatim agent reasoning → log loses audit value; recording is non-negotiable in either mode.
- Mode B pings "ready for review" against a missing / stubbed / partial sheet → blocked; the batch is not delivered until every Q carries every field the authoritative PROPOSED column requires (
references/brainstorm-research-protocol.md§"Documenting the Q&A" → "The two states" — that table is the single list; do not re-enumerate it here or anywhere else). The ping delivers the sheet itself, so an incomplete batch is not a broken link the user discovers on opening a file — it is a half-filled sheet handed over as if it were reviewable, which spends their attention and returns nothing while reading in the transcript as if the batch shipped. - 2nd agent's prose recorded but its pick discarded → the blind-review step was paid for and thrown away; its independent choice is the whole deliverable. Fill
2nd-agent independent pick+2nd-agent's own suggestion(noneis a valid, required value) — never leave them to be inferred from the reasoning paragraph. - Long-lived doc appended without updating the TOC index → index drifts; readers can't find new sections. Update index in the same commit as the append.
- Implementer copies plan code verbatim without checking for codebase conventions → controller failed; re-dispatch.
- Reviewer says "approved" with open Important findings → apply defer-vs-fix; don't approve until triaged.
- Journal entry omits "Plan deviations" → blocked; cannot close task.
feat(...)commit amended after review → blocked; create a fixup commit instead.- Pre-commit ran only at PR time → fix locally before next commit.
- PR opened without §7 findings/gotchas recorded in the journal → blocked; there is no standalone handoff file anymore — record findings in the journal FACT entry first (
references/journal-schema.md), then open the PR with its derived body. - Workflow file deleted when CI is billing-paused → revert. Pattern E (
workflow_dispatchdormant) is canonical. Spec stays at the conventional location; restoration = 4-lineon:edit. Seereferences/ci-cd-gates.md§Pattern E. - Pretending an Actions-billing-blocked PR can merge without review because Copilot 2nd-pass is silently failing → the independent general-purpose reviewer (briefed per
references/reviewer-brief.md) is the actual review gate, not a Copilot substitute — Copilot was always advisory, so a silently-failing Copilot never blocked and never passed. Dispatch the independent reviewer and treat its computed verdict as the merge gate. Seereferences/copilot-review-loop.md§Copilot stand-in +references/review-record.md§"Termination contract". - PR merged without the independent reviewer's computed pass on a non-trivial phase → blocked. The independent general-purpose reviewer is the sole review gate (
references/review-record.md§"Termination contract");@copilot reviewis advisory — its loop is optional and never a PASS. If Copilot IS run, fix-and-reply per finding and re-trigger until clean, but its silence, failure, or absence never blocks the merge and never passes it — only the independent reviewer's computed verdict does. Skip the (optional) Copilot loop freely; never skip the independent reviewer. Seereferences/copilot-review-loop.md+references/review-record.md. - Copilot finding marked "fixed" without an in-thread reply pointing at the SHA + Fx label → next Copilot review will re-flag it; reviewer can't tell what changed. Reply per-finding inline, never via a top-level summary comment.
- Test evidence only in PR body, not as a PR comment → blocked; post via
gh pr comment <PR#>with rawtsc+ 3× unit + 3× integration + 3× regression/e2e output blocks + Track A summary + findings tally + Copilot/stand-in status. Applies to BOTH paths (default CI + Pattern E). Body summary OK; audit artifact lives in the thread. Seereferences/ci-cd-gates.md§"Posting test evidence". - PR comment posted as raw test logs only, without the 9-layer audit narrative → blocked; the raw evidence is the FOLDED layer at the bottom, not the whole comment. Wrap it with: Layer 1 golden-path demo (real stdout per surface, NOT mock fixture), Layer 2 negative-path demo (errors are features), Layer 3 before/after value table, Layer 4 cost transparency (skip if no paid API), Layer 5 performance vs go/no-go targets, Layer 6 findings tier S1/S2/S3, Layer 7 close-gate output paste, Layer 8 reviewer asks (specific file:line questions, 3-5 max), Layer 9 what's next (LOCKED follow-ups only). Skips allowed only when written
(N/A — <reason>). Seereferences/pr-comment-template.md. gh pr create/gh pr commentinvoked without first drafting body + comment as.mdfiles in the session scratchpad → reviewer can't preview, no chance to catch a bad post before it's live. Draft-first, but the draft lives outside the repo and dies with the session — GitHub is the live source, a retained copy is a cache by construction. Edit later viagh pr comment --edit-last --body-file <updated draft>so the disk + live thread stay in sync. (Screenshots underdocs/pr-drafts/screenshots/are the one exception that IS committed — see the next Red Flag.)- UI / SSR / dashboard phase merged without a dedicated
tests/e2e/<phase>-screenshots.spec.ts+ 3-5 PNGs committed underdocs/pr-drafts/screenshots/→ reviewer sees code but no visual proof of what changed.screenshot: 'only-on-failure'config does NOT count — the spec must callpage.screenshot({path, fullPage: true})per scenario and run on every green build. Embed via GitHub raw URLs in PR comment Layer 1/2. - e2e/regression 3× skipped on BE-only phase → not done. The gate proves the whole project still works after this phase's diff. Existing UI tests can regress on a BE-only change (e.g. response-shape, error code, schema field). Run
bun run e2e(or equivalent) 3× even when no UI was touched. - Pre-emptively switching to Pattern E without verifying CI is blocked for THIS PR → not done. Try the default path first (push, watch CI, trigger Copilot). Switch to Pattern E only when CI or Copilot actually fails with the account-level billing error. Billing state can change between phases.
- Phase claims "done" without dual-track smoke artifacts → not done; ship checklist + e2e first.
- Console/CLI/log-surface phase merged without the real run output pasted on the PR → reviewer can't see what the change actually produces; capture verbatim (
cmd 2>&1 | tee) and post it as a PR comment with aChanged → Resultframing + a-vper-test behavior list. Retyped/summarized output ("13 passed") does NOT count. Seereferences/handoff-template.md§"Demo — real console output". - PR-body §1 reads like a changelog full of jargon → rewrite for product-owner audience (daily language, "I can now..." voice).
- Force-MD artifact rendered as HTML (qa-log / journal / RESUME / plan / PR description / backlog) → blocked; revert to MD. Audit/diff/token reasons are non-negotiable. Applies equally to qa-log fragments (
docs/qa-log.d/) and the compiled hot monolith + archive — fragment-aware, never a loophole to render fragments as HTML. Seereferences/output-format.md. - Smoke kickoff without asking interaction mode (when
smoke-modeisaskin CLAUDE.md or unset) → ask first; default-guessing wastes user time. - HTML companion generated without user opt-in at non-policy projects → revert; the time/token cost is the user's choice, not AI's.
- HTML companion generated without following the section pattern in
references/html-companion-template.md→ revert; the structural template + skeleton enforce mandatory sections (customer voice / stakeholder lens / side-by-side / mockup / state machine / disagreements / glossary / inline citations) and a shared CSS palette so every project's HTML companion looks consistent and stays readable for zero-domain-knowledge audiences. Free-form HTML loses that consistency. - PR opened without a
CHANGELOG.md[Unreleased]entry on a user-visible change → blocked; add the line under the right Keep-a-Changelog category before merge. Internal-refactor PRs with zero user-visible delta exempt (applychore-quiet/skip-release-noteslabel). Full rules inreferences/changelog.md. - PR opened without exactly one category label from the taxonomy → blocked. Label drives release-notes grouping; without it, the PR lands in "Other Changes" catch-all and the next release notes ship messy.
- Release cut without renaming
[Unreleased]→[X.Y.Z] — YYYY-MM-DDfirst → next contributor adds entries under the wrong section; rebase to fix or accept drift in the following release. - Version bumped in only one manifest (
marketplace.json≠plugin.json) → CI validator catches; never bypass. - Cutting a release by hand (editing CHANGELOG / manifests / tagging manually) when
/releaseis available → defeats the single-entry-point discipline; consistency drifts; next/releasemay misparse. Use/releaseand trust the validator. - CHANGELOG bullet written in commit-message tone ("refactor X for clarity") → rewrite in user-facing tone. Audience is upgraders, not git archaeologists; bullet must be greppable + name the artifact (file / endpoint / command / convention).
- Deprecation skipped (feature removed without prior
Deprecatedentry in an earlier release) → users discover via breakage. Always announce inDeprecatedfirst; remove in a later MAJOR. - HTML companion fails any one of the 4 anti-AI-slop hard rules (per
references/html-companion-template.md§Quality floor): (1) Latin-first font stack on CJK project, (2) non-8 px spacing values, (3) muted text under WCAG AA contrast, (4) fabricated example data ("Acme Corp" / "[email protected]" / lorem ipsum) → not shippable; regenerate with rule enforced in prompt, or hand-edit the failing section before publish. AI-default HTML drifts into low-contrast / generic-stock / made-up-data territory; the 4 rules are the bar that separates "designed" from "AI-slop". - Starting new phase without
/clear+ journal entry + RESUME from previous phase → context accumulates linearly; cost-per-turn grows. Write artifacts, commit,/clear, then start. - Invoking project-lifecycle for trivial work (typo fix / single-file polish / one-off bug / docs tweak) → skip the workflow entirely; do it inline. Skill scope triage is in the cost-aware bullets.
- Running multi-file investigation in main context (grep + find + Read chains) when an
Exploresubagent would do it and return a synthesis → dispatch the subagent; main context bloat hurts every subsequent turn. - Full 6-step cadence on mechanical task (small diff / no new logic / no security surface) → compress to spec+code merged review. See
references/cadence.md. - TDD writing all tests first then all impl (horizontal slicing) → stop. Horizontal slicing produces "crap tests" — they test the imagined shape, not real behavior, and pass when behavior breaks. Switch to vertical tracer-bullet: 1 test → minimal impl → next test → minimal impl. Each test responds to what the previous cycle taught you. Refactor only when GREEN, never while RED.
- Implementer asked to write tests for "everything" → stop. You can't test everything. Controller must confirm with user which behaviors matter most BEFORE the implementer writes tests. Critical paths + complex logic, not exhaustive edge-case enumeration.
- Implementer started writing code without emitting the pre-flight assumption block → blocked; revert / re-dispatch. Pre-flight is mandatory (assumptions + alternative interpretations + simpler-approach-considered) BEFORE first line of code. Wrong-assumption-then-run is the #1 LLM coding failure mode; surface-before-code is the counter. See
references/cadence.md§Step 1. - Implementer touched files / lines orthogonal to the task text (reformat / rename / "improved" comments / drive-by dead-code purge / changed comments they didn't author) → blocked; revert orthogonal diff. If a real issue was noticed → log it in journal "Findings" section as a backlog candidate, do NOT fix it in this commit. Every changed line must trace to a sentence in the task text. See
references/cadence.md§Step 1 surgical-scope clause. - Code review approved without running the bloat-smell checklist explicitly → blocked; re-dispatch reviewer w/ checklist enforced. Bloat smell is its own pass (line-count vs task complexity / single-use abstractions / unrequested config / impossible-case error handling / unspec'd features / "could this be half the lines?"). LLM default is over-built; reviewer is the catch, not the user. See
references/cadence.md§Step 3. - Bug "fix" proposed without reproducing the bug + ranked falsifiable hypotheses → stop. Iron Law: no fix without root cause. Invoke
references/diagnose-loop.mdPhase 1 first (build feedback loop), then Phase 3 (3-5 ranked hypotheses, each w/ falsifiable prediction). Hypothesis that can't state a prediction is a vibe — sharpen or discard. - 3rd fix attempt failed + still swinging → 3-Fix Rule: stop, reassess assumptions, expand the search. Likely the hypothesis space is wrong, not the implementation.
- Debug instrumentation left in code without
[DEBUG-xxxx]prefix → next phase can't grep them out cleanly; risk of logs leaking to prod. Tag every debug log w/ unique prefix; grep + remove before declaring done. - Unattended run started without a filled loop contract (or with a blank Budget / "run and see") → stop; fill all 4 fields (Goal / Stop / Budget / Report). Budget is never blank — rounds + hours are a mandatory floor. A wrong budget is strictly better than no budget: a wrong one bounds the worst case, a blank one does not bound anything.
- Loop agent flips registry
passesbooleans itself → laundered self-report, exactly the METR reward-hack path. Only the deterministic verify step writespasses; the agent writes status/notes. Treat a violating run's Done list as unverified. - Unattended loop opens a PR, merges, tags, or publishes → blocked. Egress policy: the loop's terminus is a pushed
loop/branch + a frozen exit report, and nothing further. PR ceremony belongs to the next interactive session; merge is human-only, always. This is the policy half of the contract and it stays in this skill even though the runtime lives elsewhere — the bound it enforces is a bad night costs a deleted branch, never a pollutedmain. - CONTEXT.md violations → see
references/context-md.md. Three failure modes, same fix (sharpen language inline, update glossary, keep it glossary-only): (a) brainstorm Q uses fuzzy/overloaded/undefined term, (b) AI replies stay verbose because no glossary anchor exists, (c) CONTEXT.md drifts into spec/scratch/impl notes. Symptom → revert to glossary-only discipline; create lazily if missing; adddomain-docs:pointer in CLAUDE.md. - ADR created for an easily-reversible decision → revert. 3-criteria gate (hard-to-reverse AND surprising AND real-trade-off) MUST all hold. Otherwise the ADR dir becomes noise + future readers stop reading.
- User-facing phase w/ non-engineer stakeholders + no PRD → produce one. PRD is opt-in (skip for solo / engineer-only phases) but mandatory when product owner / customer / non-eng reviewer needs to sign off. See
references/prd-template.md. - Issue-tracker phase split horizontally (one issue per layer) → revert. Vertical tracer-bullet slices only. Horizontal slices produce undemoable interim states. See
references/issue-breakdown.md. - Brainstorm Mode A used for 3+ questions → switch to Mode B batch; sharing research-agent dispatch overhead saves 50-100K tokens per phase.
- Opus 4.7 used for high-frequency lightweight subagent (trivial implementer, journal generator, brainstorm Tier 2 research) → dispatch with Haiku 4.5; Opus is the orchestrator's job, not every subagent's.
- User-observable phase started without a
user-story.md→ blocked; write the story w/ numbered ACs + Out-of-Scope first, get user sign-off, then proceed to spec. Skipping the story = acceptance verifier has nothing to test against + validator has nothing to compare against = "done" judged by vibes. - Spec written before user-story.md is signed off → defeats the checkpoint. Spec assumptions baked into a wrong story = expensive rewrite. Stop, ship the story for sign-off first.
- Cross-layer phase dispatched as single implementer (one subagent writes BE + FE in one turn) → blocked; split per
references/builder-split.md. Atomic-commit invariant + API-contract enforcement both require the split. - Frontend builder dispatched before backend builder summary exists → blocked. FE invents endpoints; mismatch surfaces in smoke or prod. Sequence: BE dispatch → BE summary → FE dispatch w/ summary as input.
- Frontend builder silently massages a bad BE shape ("I'll flatten this client-side") → blocked; report mismatch as feedback to controller, route back to BE for contract revision. Client-side workarounds hide the real bug.
- Builder edits files outside its folder scope (BE touches
src/components/*or FE touchessrc/db/*) → blocked; revert orthogonal diff. Folder scope = physical isolation per CLAUDE.mdfolder-map. folder-mapmissing from CLAUDE.md + builders dispatched anyway → blocked; elicit folder map from user first. Guessing boundaries leaks scope.- Acceptance verifier dispatched with Edit/Write on
src/→ blocked. Verifier writes acceptance tests intests/acceptance/*only; impl fixes route to the appropriate builder. Verifier editing src/ = lost audit trail + builder learns nothing. - Acceptance verifier writes a test against an internal function → that's a unit test, not an acceptance test. Re-dispatch; observable-from-outside is the bar.
- Acceptance verifier marks an AC "covered" without a passing test → blocked. Coverage = green test, not "looks right". If untestable, mark UNTESTABLE with reason; surface to user as spec gap.
- AC IDs renumbered mid-phase → breaks test names + journal links + validator references. Append, never renumber; leave gaps if ACs are dropped.
- Validator given Edit/Write permissions → reviewer who can edit, edits; findings vanish into the edit. Validator is read-only on entire repo, always.
- Validator skips the lie-detection pass (step 0 of step 2) → defeats the validator's primary purpose. LLM-default-lying is the #1 failure mode the validator exists to catch (per Tejas Kumar's harness demo). Builder claims "AC closed" → validator MUST verify by tracing claim → diff → acceptance verifier report. Untraceable claim = CRITICAL.
- Builder summary claims success that the acceptance verifier didn't confirm → lie; validator flags as CRITICAL; routes back to builder. "Logged in" without
[HARNESS] Logged infrom a deterministic handler OR a passing acceptance test = unverified claim = treat as failed. - Validator invents minor findings to look thorough → blocked. Clean run is a real outcome. "No findings, coverage 100%, ready for step 3" is the correct output when true.
- Validator skipped because code-quality review will catch it → different lens. Validator = correctness-vs-promise (AC coverage, scope drift, security vs spec). Code-quality = craftsmanship. Combining = critical findings buried under nits.
- Validator merged with code-quality review on non-mechanical task → blocked. Compression rule is only for tasks meeting all 3 mechanical conditions (small diff + no new logic + no security surface). Otherwise run both, separately.
- Writer condenses / paraphrases the reviewer's report for the PR → self-serving channel (a "verbatim" comment can silently drop most of the reviewer's reasoning). Post the report AS RETURNED; fold long sections in
<details>; the writer never edits its own auditor. Seereferences/review-record.md. - Reviewer's suggested fix snippet pasted into the code → untrusted input; a pasted snippet has already caused real silent data loss. Adopt the finding, re-derive the fix from the surrounding code, ship with a test.
- Commits landed after the last review round, merged without a final pass → unreviewed code inside a "reviewed" PR. Check the coverage window (
git log <last-review-SHA>..HEADempty, or dispatch a final-pass round). Review-fixes themselves are unreviewed code — same rule. - Reviewer-stated "APPROVED" treated as the gate → verdicts are computed by the controller from per-criterion fields + open-severity counts. A reviewer-declared boolean is exactly the self-certification pattern the close gate exists to block.
References
references/intent-gate.md— the workflow front door: classify → confirm intent → reframe+sharpen, run on every fresh user request (milestone kickoff + mid-phase ad-hoc) before brainstorm/cadence. Turns a fuzzy ask into a precise prompt with a named oracle (oracle ladder: specified>differential/golden>metamorphic>implicit + no-oracle branch). Defaultassume(lay out assumptions for one-tap approve). Doubles as machinery triage (trivial→inline / medium→cadence / large→brainstorm). Feeds brainstorming +user-story.md+ acceptance verifier downstream — it fronts them, doesn't replace them. Project keyintent-gate: ask|assume|off.references/init-harness.md—/init-harnessslash command spec. Detection signal table (language / framework / DB / queue / auth / multi-tenant markers / timezone-sensitive / layer split / CI), merge strategy per artifact (CLAUDE.md / CONTEXT.md / CHANGELOG.md /.claude/commands//.claude/handlers//.github/workflows/release.yml), handler scaffold templates per detected stack, generated.claude/commands/skeleton,--refresh+--dry-runmodes, idempotency guarantees. Realizes Tejas Kumar's "dynamic harnesses" vision in this skill's context.references/archaeology.md— brownfield adoption pass: deterministic detection contract (manifest + source-file floor, no numeric thresholds), entry surfaces (CHECKPOINT 1 auto-offer +--archaeologymanual re-trigger), Phase 1b read-only 3-agent fan-out w/ read budgets, 6-draft artifact set w/ provenance headers (ADRs: proposed/confidence/provenance/🔴, tree-visible-only), adoption-snapshot review index, dated ask-once policy key, idempotent re-run, seed framing.references/onboarding.md— Day 1 protocol for any new contributor (human or AI agent) joining a project that uses this skill: Q&A-only first day, anchor checklist (CLAUDE.md / CONTEXT.md / RESUME.md / iteration-journal /docs/superpowers//.claude/commands/), why edit-first fails, gradient to/shipon Day 2+. Includes the project-level shared.claude/commands/schema (team-shared slash commands checked into source control).references/verify-loop.md— verify-loop pattern (give the LLM a way to check its own work + iterate). Three canonical loops: test (Loop A), visual screenshot (Loop B), runtime curl (Loop C). Where each lives in this skill's cadence. Anti-patterns (no-verify dispatch = self-grading = lies).- Unattended runs — the runtime is NOT part of this skill (a runtime that used to live here was extracted into a separate project, full history preserved). Why the split: this skill is markdown fed to a coding agent — it sits inside that agent's loop and changes how it thinks. The runtime is code that spawns the agent as a worker. Same machine, inverted topology; keeping both under one name was the confusion. What stays here is the judgment: the intent-gate's 4-condition AFK-eligibility axis (
references/intent-gate.md), the HITL/AFK labels (references/issue-breakdown.md), the 4-field loop contract as a spec (Goal / Stop / Budget / Report — see the trigger table above), and the egress policy (loop terminus = pushedloop/branch + report; merge is human-only — see Red Flags). What left is the how: the 4-layer fence and its one real wall (the post-round out-of-fence diff check — aPreToolUsehook fails open and is telemetry, not a wall), the 7 end states with derived death codes, the dual-window budget breaker, the run-scoped registry wherepassesis writable only by the deterministic verify step, and the task-orchestrator layer on top. ⚠️ Any such runtime's guarantees are unverified until it has been smoke-tested against the real CLI, not only against a stub. references/ergonomics.md— Claude Code session ergonomics: 5 habits to internalize (#memory append,!bash mode,shift-tabauto-accept,escapesafe interrupt, drag-drop multimodal). Full reference for keybindings + session continuity + setup commands + SDK /claude -p+ multi-Claude parallelism rules.references/deterministic-handlers.md— harness-injected pre-step pattern (Tejas Kumar's "login handler" generalized). Pure code that runs every agent-loop iteration before the LLM acts; for failure modes with one right answer (auth, secrets, pre-flight lint, migration safety, tenant isolation, test-failure attribution). 6 canonical handler examples + discipline rules + wiring template.references/changelog.md—CHANGELOG.md(Keep a Changelog 1.1.0) discipline + PR label taxonomy + per-PR rules (must-update + must-label + must-3-section-body + Conventional Commits title) + SemVer bump rules + release flow + anti-patterns. Universal across every project this skill touches, including the skill's own repo.references/release-process.md— full release-cut spec consumed by the/releaseslash command: artifact inventory, SemVer bump table, per-release file updates (CHANGELOG rename + manifest bumps + compare link insertion), commit/tag conventions, workflow behavior on tag push, verification checklist, common failure modes + recovery, retroactive-tag flow, cadence guidance.references/user-story.md— mandatory user-story + numbered acceptance criteria file for user-observable phases. Source of truth for acceptance verifier (cadence step 1.5) + validator (cadence step 2). Sign-off checkpoint before spec. AC IDs are stable + appear in test names; Out-of-Scope + Open Questions sections required. Also hosts Contingencies (pre-declared "when X → do Y", injected into builder prompts at cadence step 1) + optional machine-checkable Invariants (each must ship a runnable check command; run at phase close).references/builder-split.md— backend-builder + frontend-builder folder-scoped split for cross-layer phases. CLAUDE.mdfolder-mapschema; per-builder prompt templates; Builder Summary format (Cross-layer contract section is what FE consumes). Sequencing: BE → BE summary → FE; mismatch routes back to BE, never silently massaged client-side.references/brainstorm-research-protocol.md— per-question 7-step loop (frame → parallel research → 1st rec → blind 2nd-agent → compare → tag → surface). Mandatory for every brainstorm question; banned patterns + anti-pattern recovery + Mode A vs B + recording-is-mandatory + language-first sub-pass. Also the two-state Q&A entry (Status: PROPOSED | LOCKED, flipped in place — the pre-lock shape Mode B hands the user for review), the 2nd agent's structured verdict fields (engine / independent pick / own suggestion), and the "no complete sheet, no ping" hard rule.references/context-md.md— ubiquitous-language glossary discipline. Single-context vs multi-context structure, lazy creation, format (terms + relationships + example dialogue + flagged ambiguities), glossary-only hard boundary, CLAUDE.md pointer convention.references/adr.md— Architectural Decision Record format + 3-criteria gate (hard-to-reverse AND surprising AND real-trade-off). Distinct from phase-scoped locked spec decisions; ADRs survive milestones.references/diagnose-loop.md— 8-phase (0–7) debug discipline for hard bugs / perf regressions. Iron Law (no fix without root cause), 3-Fix Rule, Phase 0 consult (docs/lessons.md+ journal grep before re-deriving a known root cause), Phase 1 feedback-loop construction (10 methods), falsifiable ranked hypotheses,[DEBUG-xxxx]log tagging, Phase 7 distill (verified root cause → general rule indocs/lessons.md, gated by general + verified + non-obvious).references/prd-template.md— product-facing user-story synthesis for user-facing phases. Complements engineer-facing spec; published to issue tracker for stakeholder review.references/issue-breakdown.md— optional Step 4b: split plan into vertical-slice tracer-bullet issues w/ HITL/AFK labels. Issue body template. Use for multi-contributor / async-agent phases on projects that issue-track.references/document-indexing.md— TOC convention for long-lived / append-only docs (qa-log / iteration-journal / RESUME / smoke-findings / mid-phase-questions). Top-of-file index with H2 + H3 anchors; updated in same commit as the section append.references/close-gate.md— the deterministic forcing function for "done":task-done/phase-donegate spec (what it checks), portablescripts/close-gate.sh+.claude/close-gate.jsonmanifest, three wiring layers (pre-push hook = default un-bypassable / CI job / model-run discipline — the hook is NOT optional), the write-down-your-skips rule, anti-patterns, and theclose-gate: per-task | pr-boundarypolicy key (§"Approval timing" — where the human-blocking close approval sits, the self-certification attack surface, and the run-it-as-an-experiment protocol). The cure for silently-skipped wrap-up steps.references/harness-primitives.md— verified map of native Claude Code primitives (frontmatter hooks /SessionStart:resume/ dynamic Workflows /run_in_backgroundparallel reviewers / worktree isolation /AskUserQuestion/ plan mode //goal/context/branch) → the skill node each strengthens + how to wire it. Each moves a rule from model self-discipline toward platform enforcement. Includes verification provenance (checked 2026-06-08;/batch+invocationModechecked and NOT found — omitted). The skill's ownhooks:block (guard + close-gate-nudge) lives inhooks/, withhooks/test-hooks.shas the deterministic check to run before committing hook changes.references/cadence.md— full per-task workflow, including controller responsibilities and compression conditionsreferences/checkpoint-reflow.md— design-only adopter contract for reflowing prior in-phase/shipcheckpoint rejections into the spec-writer's dispatch, so a fresh-context spec-writer stops repeating a mistake a human already rejected. The load-bearing constraint is no tool-maintained failure scoreboard (the self-judgment / gamification red line): the controller re-derives forward, acceptance-preserving constraints from the already-existing checkpoint history and injects them as ephemeral dispatch input — nothing persisted, the requirements artifact never mutated. Ships a contract + conformance checklist, no runtime (this skill has no/shipself-run consumer; same split asverify-gate.md).references/journal-schema.md— 6-section journal entry template with examplesreferences/research-gate.md— when online research is required before deciding (trigger list)references/retention.md— hot/cold document retention: dual line+KB hot-doc caps w/ warn-onlyphase-donerows + consecutive-close escalation, coverage discovery for un-netted docs, the milestone-close archival drain (verbatim moves, pointer stubs, 4× roll-over, embeddedretention-drain.shspec), the conflict-free fragment convention across all three append-doc layers — journal (docs/journal.d/→ drains to zero, compiled into the archive), qa-log (docs/qa-log.d/→ compiled into the hot monolithdocs/brainstorming-qa-log.md), and CHANGELOG (changelog.d/→ compiled into[Unreleased]at/release), each named<date>-<branch-slug>.md— the distill protocol (human one-tap promotions/demotions w/ supersede chain), and theretention:policy keyreferences/defer-vs-fix.md— triage rule for review findingsreferences/milestone-done.md— closing-the-milestone checklistreferences/handoff-template.md— the standalone delivery doc is retired (§7 findings fold into the journal FACT schema); retained for the §7 field format + the mandatory PR body shapereferences/smoke-tracks.md— dual-track smoke contract (A manual + B Playwright)references/findings-tier.md— S1/S2/S3 triage for findings and known limitationsreferences/cost-aware-behaviors.md— per-token leverage rules + tool-adopt tiers (RTK / token-savior / etc.)references/ci-cd-gates.md— pre-commit / PR-time CI / merge protection gates every project should enforcereferences/pr-comment-template.md— the audit-narrative layer of the PR comment: 9 mandatory sections (golden-path demo / negative-path demo / before-after / cost transparency / performance vs targets / findings tier / close-gate output / reviewer asks / what's next) + folded raw evidence at the bottom. Draft-first workflow (.mdfiles in the session scratchpad, outside the repo, beforegh pr create/gh pr comment— the draft dies with the session) + visual capture pattern (dedicatedtests/e2e/<phase>-screenshots.spec.ts+ 3-5 PNGs committed todocs/pr-drafts/screenshots/, embedded via GitHub raw URLs — the one retained exception, load-bearing not cache) + N/A skip protocol. Complement to ci-cd-gates §"Posting test evidence" (which covers raw evidence only).references/copilot-review-loop.md— per-PR@copilot reviewloop: trigger format + per-finding inline-reply convention + fixup-commit pattern + when to skip + stacked-PR caveat +gh apicommand reference + anti-patternsreferences/reviewer-brief.md— the PLC-native review prompt dispatched to a general-purpose agent (the button behindcommands/review.md), replacing any by-name externalcode-reviewer/security-reviewerdependency. Operationalizesreview-record.md+cadence.mdinto a dispatchable brief: read-only dispatch preamble, lens selector (quality / security / correctness), a language-generic base checklist + PLC's bloat-smell + forward-looking, composable per-language appendices (TS/JS, Python) selected by changed-file extension, PLC's Critical/Important/Minor severity (with the external-scale normalization table), and refute-first / verdict-LAST / evidence-gated output with no self-declared verdict. Delegates the constraints — never forks them.references/cross-family-review.md— the armed-optional cross-family blind 2nd agent: thesecond-agent-familykey (defaultauto= same-family, byte-identical to un-armed), the built codex adapterscripts/cross-family-review.sh+ its 4-gate fail-safe flow (unsupported-family / not-installed / not-authed / spawn-failed / unparseable / timed-out, each degrading silently to the same-family subagent, always exit 0), D3 visibility (2nd-agent engine+statusstamped, never a claimed-but-unrun cross-family review), D4 privacy boundary (arm-time consent + synthesized packet not raw workspace,read-only≠ privacy isolation), D6 armed-but-absent guided-install offer (repo-intake mold, login = user's step), D7 never-overrides, the borrow-format-not-runtime mutual-independence note, and the DESIGN-ONLY adopter registry/manifest/metrics for a second family. Wired atbrainstorm-research-protocol.md§step-4.references/handoff-snapshot.md— the PLC-native mid-session continuity prompt (the button behindcommands/handoff.md): the 8-field snapshot schema (core = task+phase / next-action / staleness-anchor, refuse-if-missing; progressive = state-so-far / decisions / what-NOT-to-retry / blockers / gotchas, omit-if-empty), MOMENT-tense rule, generation-time self-validation (core-check → fabrication-guard → progressive-prune → staleness-stamp — enforcement at the write, no close-gate grep), the conditional journal FACT (append only on a real non-derivable decision/gotcha; reusesjournal-schema.md, never forks it), and commit-where-tracked / report-local-where-gitignored. Third "give the guts a button" command after/research+/review. Written what the SessionStart:resume hook already reads.references/output-format.md— MD-canonical force list + the HTML opt-in artifacts and asking moments (that file defines both axes and is the only place either is counted) + CLAUDE.md policy keys (html-policy,smoke-mode,comprehension,close-gate,audience,references-log— the last user-global) + smoke interaction modes (self vs guided)references/audience-tone.md— conversational plain-language layer for non-technical users: plain-by-default floor + passive escalation on demonstrated fluency + inline first-use term glossing + screenshot/example fallback. Governs user-facing chat ONLY (builder artifacts stay technical/force-MD). Project keyaudience: adaptive | plain | technical(defaultadaptive; seereferences/output-format.md).references/repo-intake.md— GitHub onboarding + repo-link intake for non-technical users at new-project kickoff: plain-language "do you have a GitHub link?" + explainer (what GitHub is / why) when absent + offer to create the repo for them via a prereq-gatedghladder (account sign-up +gh auth loginstay the user's own steps — never faked;gh repo create --private --source . --pushonce authed), degrading to GitHub's own create-a-repo guide at the bottom rung + ensures LOCAL git regardless ("checkpoints on your computer") + optional/never-block + re-offer at seams. Mirrorsreferences/deploy.md's prereq-gated shape. Gated byaudience:(skip undertechnical). Reusesreferences/audience-tone.mdvoice.references/deploy.md— deploy offer + plain-English options for non-technical users at project finish: "want help putting this online?" + stack-aware compare (recommend 1 + name 2-3 incl GitHub Pages, link each guide) + a prerequisite-gated run (detect CLI/login/repo; run when ready, else guide the one missing step or fall back to explain+link — interactive login is always the user's step). Fires at PROJECT finish, not per-milestone. Gated byaudience:(skip undertechnical). Reusesreferences/audience-tone.mdvoice.references/proactive-tips.md— proactive app best-practice surfacing for non-technical users: during dev, when a high-value improvement appears (frontend: images / lists / loading states / bundle; backend: pagination / caching / indexes / N+1), surface it inline in plain language + offer to apply it, guarded by anti-nag rules (high-value only, one tip, never re-surface a declined one). Distinct fromcost-aware-behaviors.md(that = agent token discipline; this = the user's app). Gated byaudience:(skip undertechnical). Reusesreferences/audience-tone.mdvoice.references/references-log.md— gated auto-capture of user-shared external references into the user's GLOBAL references-log (a separate git repo). During brainstorm/research, when the user shares an offer-worthy reference (repo/paper/blog/tool/video/talk/AI-chat-log/screenshot/note), PLC offers ("log this? y/n", never silent) to compose a schema-conformant entry — schema read live from the global log's header, never copied (no drift) — append newest-on-top, and commit onlyreferences-log.mdscoped, no push. Armed only by the user-globalreferences-log:key (default off; seeoutput-format.md). Reuses an existing confirm-flow as a pattern, not shared code. No/refcommand, no script.references/comprehension-co-discovery.md— anti-cognitive-offloading co-discovery round (opt-in viacomprehensionpolicy key): the mechanism (generation + retrieval), the COMPREHEND round, the two load-bearing constraints (discovery-not-judgment + no cumulative scoreboard), the <30s budget, why naive gamification backfires, the by-hand validation caveat.verify-loop.mdturned on the human.references/html-companion-template.md— full structural pattern for every HTML opt-in artifactoutput-format.mddefines: mandatory section list (§0 customer voice → §M+8 citations index), CSS token palette, badge taxonomy, "Why box" callout, Real-world scenario callout, inline citation discipline, mobile responsive rules, what NOT to includereferences/html-companion-skeleton.html— copy-paste starting skeleton for new spec/design HTML companions, with<!-- TODO -->markers per sectionreferences/self-update-flow.md— how the AI updates this skill itself + release/no-release decision + scope checkreferences/dependency-boundary.md— PLC depends on nothing external: no core step may require an external product/host/tool (that re-narrows "works anywhere" to "works only if you also run X"). Integrate with sibling tools only through open, documented, versioned file-format contracts, preferring PULL (a consumer reads a PLC artifact; PLC knows nothing) over EMIT (armed-optional push). Generalizes the self-sufficiency rule to "no external-product dependency in either direction"; data-flow direction ≠ dependency; residual coupling = shared schema only.references/roadmap.md—docs/ROADMAP.mdwhole-plan-map convention: when to create (kickoff / first brainstorm) + when to update (milestone boundary, scope change, milestone-done gate), required structure (one-sentence goal / shape-of-work blocks / milestone table / how-a-milestone-runs / what-done-looks-like / dated Plan-changes log), status legend, the ROADMAP-vs-RESUME split, and the status-file ring close protocol (active + 2 most recent closed entries; oldest moves verbatim to a dedicated archive file in the same edit; deliberately ungated). The cure for losing the whole-plan shape on long projects — and for the read-first status file growing past what a single Read can load.references/reconcile.md—/reconcilechat-decision-drift sweep: the write-twin of/catchupthat lands drifted roadmap/status decisions (chat-drift + git-drift) back intodocs/STATUS.md/docs/ROADMAP.md, staged + human-approved, never auto-committing the SSOT. Reports a drift-latency count against the in-the-moment capture rule. Structure-preserving + archive-never-delete; degrades cleanly when no STATUS/ROADMAP.references/review-record.md— making AI review trustworthy + auditable: the three-mechanism self-review-bias evidence (ownership / style familiarity / family taste — what a fresh-context same-family reviewer does and does not fix), the 8 reviewer dispatch constraints (fresh context, read-only, tier asymmetry, refute-first + verdict-last,file:lineevidence gate, computed verdict, unanchored-pass-before-seeded-suspicions, lenses-not-clones), the bidirectional review record (reviewer report verbatim + builder per-finding response as two PR comments), finding→fix rules (routing split / one-fix-one-commit / reviewer snippets are untrusted / mandatory final-pass), the last-review-SHA coverage-window check, and the catch-parity ledger for thepr-boundaryexperiment.references/parallel-work.md— parallel-work discipline: WIP=1 (one active code track per project — the gate chain serializes on the human), the sidecar exception (doc-only research parallel to the active track: no gate chain, zero code changes, writes only research docs), and the single-writer rule (one session holds the pen for the status/roadmap file; sidecar findings enter through the pen-holder; explicit pen handover).references/builder-profile.md—/builder-profilespec: the local-only working-style snapshot pipeline (deterministicstats.json→ evidence gate → self-blinded cold read → adversarial verify → independentbuilder_profile_verify.py+ cold critic), the stable read-contract path~/.claude/builder-profile.md(present → passive working-style context; absent → not yet profiled), descriptive-by-default framing (--scoresopt-in), and the in-conversation walkthrough.references/agent-chats-registry.md— machine-local, per-repo multi-family resume registry (Claude / Codex / future) mapping conversations to<cli> --resume <id>: JSONL record schema, family→resume-command derivation, Trigger A (skill-moment upsert) + Trigger B (SessionEnd hook, folded in), and why cost/tokens stay out (spend belongs in a dedicated analytics store joining onresume_id).references/origin.md— pilot history and the requirements doc that produced this skillreferences/cognition.md— cognition layer: intent capture + cold intent-log (Phase 1); distill + hot doc (Phase 2)
Underlying Skills (do NOT reimplement — call them)
superpowers:brainstorming— Q&A capturesuperpowers:writing-plans— implementation plan generationsuperpowers:subagent-driven-development— per-task execution loopsuperpowers:test-driven-development— tests-firstsuperpowers:verification-before-completion— pre-completion checkssuperpowers:requesting-code-review/receiving-code-review— review interaction (this skill ADDS the review-record discipline on top: verbatim report + builder response on the PR, untrusted fix snippets, final-pass rule —references/review-record.md)superpowers:finishing-a-development-branch— merge decisionssuperpowers:using-git-worktrees— isolation when needed