agentleFS
tonmoy007tonmoy007/forge-plugins/skills/forge-retro/SKILL.md

forge-retro

Skill2 starsChanged 5 months agoMITView on GitHub

Run a cycle-completion retrospective after Stage 12 (Release). Synthesizes

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting a new cycle, to lock in lessons and approve mined skills

    line 22
  2. Very specific:

    If pipeline/state.md is missing, tell the user the project is not Forge-managed and suggest /forge:init.

    line 32
  3. Distinctive:

    Read each of these in parallel — they all contribute to the retro:

    line 46
  4. Distinctive:

    Write 3–5 concrete bullets.

    line 67
  5. Distinctive:

    Write 3–5 concrete bullets.

    line 78
  6. Very specific:

    If lessons were promoted to ~/.forge/global-lessons.yaml by promote-lessons.py, note which ones and the projects that triggered promotion.

    line 89
  7. Distinctive:

    If there are none, write a single line: *"No skill proposals pending.

    line 103
  8. Very specific:

    Write the full retro to pipeline/12-release/retro.md (create the directory if absent).

    line 120
  9. Very specific:

    If pipeline/12-release/retro.md already exists (e.g., a prior cycle), append a # Retrospective — Cycle <N> block at the top rather than …

    line 156
  10. Distinctive:

    Every bullet in "What Went Well" / "What Didn't Go Well" cites a concrete source (task ID, stage number, file path, session timestamp)

    line 179
  11. Very specific:

    If the user disagrees with a bullet, treat the disagreement as a correction (prompt-submit.py will flag it) and add a lesson via the …

    line 190

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

forge-retro

Close out a release cycle. Synthesize the cycle's history, blockers, lessons, and mined skill proposals into a single retrospective document the user can review, share, and act on for the next cycle.

When to Use

  • User runs /forge:retro
  • Stage 12 (Release) gate has just passed
  • User says "retro", "retrospective", "post-mortem", "wrap up the cycle"
  • Before starting a new cycle, to lock in lessons and approve mined skills

Pre-flight

Confirm the project is at the right point:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py --cwd . read

If pipeline/state.md is missing, tell the user the project is not Forge-managed and suggest /forge:init. If current_stage < 12, warn that the cycle is not complete and ask whether to proceed early (acceptable for mid-cycle pulse checks).

Refresh the skill-mining results so the retro shows the latest proposals:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/skill_miner_bg.py --forge-dir .forge --cwd .

Steps

1. Collect cycle inputs

Read each of these in parallel — they all contribute to the retro:

  • pipeline/state.md — current stage, cycle, stage history, last reflection, blockers
  • tasks/todo.md — Archive section (completed tasks for this cycle)
  • tasks/lessons.md — lessons captured (filter to entries dated within this cycle)
  • .forge/sessions/*.md — session summaries written by session-end.py
  • Pending skill proposals:
    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/skill-approval.py --cwd . list

2. Identify what went well

From the inputs above, extract:

  • Stages whose gate passed on the first attempt (no rework loops in state history)
  • Tasks completed ahead of plan or with notably clean commits
  • Reflections containing positive markers ("clean", "shipped", "no rework", "tests green on first run")
  • Successful design decisions visible in build/05-implementation/decisions.md (or the project's equivalent)

Write 3–5 concrete bullets. Cite the source (task ID, stage, file) for each.

3. Identify what didn't go well

From the inputs above, extract:

  • Blockers that took > 1 session to clear (look at blockers: in state.md history)
  • Gate criteria that failed and required retries
  • Lessons added during this cycle — each lesson implies a prior mistake worth surfacing
  • Sessions whose session-end.py summary flagged corrections
  • Stages that took disproportionately long versus the plan

Write 3–5 concrete bullets. Cite the source for each.

4. Summarize lessons captured

From tasks/lessons.md, list every ### entry whose date falls within this cycle. Render as a table:

DateTitleTags
YYYY-MM-DDShort titletags

If lessons were promoted to ~/.forge/global-lessons.yaml by promote-lessons.py, note which ones and the projects that triggered promotion.

5. Surface skill proposals

From the JSON returned by skill-approval.py list, render each pending proposal:

- **<slug>** (signature `<sig>`, <N> occurrences)
    description: <description>
    Approve: python3 scripts/skill-approval.py approve --slug <slug>
    Reject:  python3 scripts/skill-approval.py reject  --slug <slug>

If there are none, write a single line: "No skill proposals pending. Patterns may not have reached the frequency threshold yet."

6. Action items for next cycle

Propose 2–4 concrete commitments the user should agree to before the next cycle. Examples: "Add CI step that runs check-gate.py --stage 7 automatically", "Promote lesson L-007 from cycle-local to project-wide", "Approve mined skill forge-X and reject forge-Y."

Each action item must have:

  • A specific verb (add, remove, configure, approve, document)
  • A target (file, command, decision)
  • A deadline or trigger (next cycle start, next Stage 6, etc.)

7. Write the retro file

Write the full retro to pipeline/12-release/retro.md (create the directory if absent). Use this structure exactly so future cycles' retros are comparable:

# Retrospective — Cycle <N>

**Project**: <project_type>
**Cycle**: <cycle> (started <start_date>, completed <end_date>)
**Stages completed**: <count>/12
**Tasks completed**: <count>
**Sessions**: <count>

## What Went Well

- ...

## What Didn't Go Well

- ...

## Lessons Captured

| Date | Title | Tags |
|------|-------|------|
| ... | ... | ... |

## Skill Proposals

- ...

## Action Items

- [ ] ...
- [ ] ...

If pipeline/12-release/retro.md already exists (e.g., a prior cycle), append a # Retrospective — Cycle <N> block at the top rather than overwriting.

8. Display summary

Print to the user:

📋 Retro written to pipeline/12-release/retro.md
   <bullets summarizing top item from each section>

Next steps:
  - Review the retro
  - Approve or reject pending skill proposals
  - Commit the retro before starting the next cycle

Verification

The skill worked correctly if:

  • pipeline/12-release/retro.md exists and contains all six section headers (What Went Well, What Didn't Go Well, Lessons Captured, Skill Proposals, Action Items, plus the header block with project/cycle/stage counts)
  • Every bullet in "What Went Well" / "What Didn't Go Well" cites a concrete source (task ID, stage number, file path, session timestamp)
  • "Lessons Captured" reflects the actual contents of tasks/lessons.md
  • "Skill Proposals" matches the output of skill-approval.py list
  • The user can take action — approve a proposal, file an issue, or schedule a decision — directly from the retro without re-discovering context

Notes

  • The retro is generated from inputs, not from your memory of the session. Always read the files in step 1 — do not paraphrase from conversation context.
  • If the user disagrees with a bullet, treat the disagreement as a correction (prompt-submit.py will flag it) and add a lesson via the standard flow rather than silently editing the retro.
  • This skill calls skill_miner_bg.py (the v0.3.5 semantic miner) and skill-approval.py list directly. If either is missing in the project's .claude-plugin/ install (older Forge version), surface that clearly rather than failing silently.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.