skills/reflect/SKILL.md
# Retrospective Protocol ## When this skill activates Activate at the start of the **Reflect sub-phase** of Operation, after the Verify sub-phase is complete and the human has signed off on smoke tests. This skill generates the full retrospective for the completed feature cycle — from Inception through Ship. Before starting, gather all required inputs: - The active episode file: `docs/pdlc/memory/episodes/[episode-id].md` - The episode index: `docs/pdlc/memory/episodes/index.md` - The PRD: `d
npx skillsauth add pdlc-os/pdlc skills/reflectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Activate at the start of the Reflect sub-phase of Operation, after the Verify sub-phase is complete and the human has signed off on smoke tests. This skill generates the full retrospective for the completed feature cycle — from Inception through Ship.
Before starting, gather all required inputs:
docs/pdlc/memory/episodes/[episode-id].mddocs/pdlc/memory/episodes/index.mddocs/pdlc/prds/PRD_[feature-name]_[YYYY-MM-DD].mddocs/pdlc/reviews/REVIEW_[task-id]_[YYYY-MM-DD].mddocs/pdlc/memory/STATE.md — for guardrail event log and loop-breaker escalation countdocs/pdlc/memory/DECISIONS.md — for any tech debt deferred this cycleList every agent that participated in this feature cycle. For each agent, record:
Pull this information from: the review files, the episode file, STATE.md history, and the Beads task records (bd show [task-id] for each completed task).
Agents to check: Neo, Echo, Phantom, Jarvis (always-on), plus any auto-selected agents (Bolt, Friday, Muse, Atlas, Pulse) that participated based on task labels.
docs/pdlc/memory/episodes/index.md.Display format: "Shipping streak: X consecutive features delivered"
Collect the following metrics from the episode file, review files, and STATE.md:
Test pass rate by layer: Read from the Test Summary in the episode file. For each layer, record: passed / total. Compute pass rate percentage.
Cycle time:
Review rounds: Count the number of times the Review sub-phase was run for this feature (i.e. how many times a review file was written or regenerated). Read from the review files — check multiple files for the same task-id if they exist.
Guardrail Log triggers:
Read docs/pdlc/memory/STATE.md's Guardrail Log section. Count the following event types separately:
/override events: deploy-gate bypasses via /override (recorded as ADR in DECISIONS.md)/pdlc * command flowLoop-breaker escalations: Count the number of times the 3-attempt auto-fix limit was hit and the human was asked to intervene. Read from STATE.md and the episode file.
Write 3–5 bullet points drawn from the episode's actual history. Be specific — reference actual events, not generic platitudes.
Inputs to draw from:
Write 3–5 bullet points. Be specific and honest. Reference actual incidents from the episode.
Inputs to draw from:
/override events or accepted Critical findings → what triggered them and how they were resolvedWrite 2–3 actionable improvement suggestions. These must be concrete and implementable in the next cycle.
Each suggestion should follow the format:
Examples of the kind of specificity required:
Read docs/pdlc/memory/DECISIONS.md for any decisions recorded during this cycle (matching the current feature name). Also check review files for findings marked "Defer to tech debt."
For each tech debt item:
For any new tech debt discovered during the retrospective (e.g., patterns noticed during Steps 4–6 that weren't captured during Review):
Record each as a decision in the Decision Registry using the full protocol in skills/decide/SKILL.md. Set:
PDLC flowOperationReflectJarvisThis triggers a Decision Review Party (Step 2 of the decision skill) where all agents assess cross-cutting impacts — including whether the tech debt affects roadmap sequencing, requires additional tests, or changes the architecture. The user reviews the MOM and approves changes before recording.
If multiple tech debt items are discovered, batch them into a single Decision Review Party.
If no tech debt was introduced this cycle, state that explicitly: "No tech debt introduced this cycle."
Append the retrospective to the active episode file at docs/pdlc/memory/episodes/[episode-id].md under a "Reflect Notes" section.
The section must contain all seven elements from Steps 1–7:
Read docs/pdlc/memory/OVERVIEW.md. This is the aggregated view of all functionality delivered across every iteration.
Add an entry for this feature cycle:
Do not overwrite previous entries. Append only.
Present the human with:
docs/pdlc/memory/episodes/[episode-id].mddocs/pdlc/memory/OVERVIEW.mdState: "Retrospective complete. Please review the episode file and OVERVIEW.md. Approve to close the episode and commit the final state."
Wait for human approval. Do not commit until the human approves.
After human approval:
git add docs/pdlc/memory/episodes/[episode-id].md
git add docs/pdlc/memory/OVERVIEW.md
git commit -m "reflect: [feature-name] episode [episode-id] retrospective"
Push to main.
Update docs/pdlc/memory/STATE.md:
/brainstorm)Report to human: "Episode [episode-id] closed. Ready for the next feature. Run /brainstorm to begin."
docs/pdlc/memory/episodes/[episode-id].md covering all seven elements.docs/pdlc/memory/OVERVIEW.md updated with a new entry for this feature cycle.docs/pdlc/memory/STATE.md updated: phase reset to Initialization, active feature cleared./brainstorm.data-ai
Run a feature autonomously from approved-PRD to shipped, evaluated by a per-turn Sentinel hook. Requires bypass-permissions mode and Agent Teams mode.
development
# Variant Convergence **Topic slug:** `variant-convergence` **Triggers:** - **Inception path — Brainstorm Design Step 10.7:** after Step 10.6 (Design-Laws Audit) completes, before Step 11 (PRD design-doc link updates) and the Step 12 design approval gate. Variants are HTML mockups Muse generates. - **Construction path — Build Review Step 12.5:** after Party Review (Step 12) writes its review file and Muse appends the *As-Built Audit* section to `ux-review.md`, before the Step 13 Review approval
data-ai
Force-release a stuck roadmap-level feature claim (admin command)
devops
Bypass the deploy-before-Operation guardrails block with a single confirmation