AugmentClaude
Apache-2.0DocsDevOps

Repo Retrospective

Analyze completed work to identify repository friction and generate actionable follow-up tasks.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/repo-retrospective-intent-hq/ — the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.

    What this command does
    1. Makes a new, empty temporary folder.
    2. Downloads the skill's folder, .agents/skills/repo-retrospective, from github.com/intent-hq/intent (branch main), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep.
    3. Copies that folder to ~/.claude/skills/repo-retrospective-intent-hq/.
    4. Deletes the temporary folder.

    Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.

    How we check skills, and what we don't · Report this skill

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

Reflect on a completed workspace, identify evidence-backed repository friction, and turn accepted findings into deduplicated, enforceable follow-up work.

What this skill does

Repository Retrospective

When to run

Run this retrospective after the work has merged or shipped and before writing the final workspace status message. Also run it whenever a user explicitly requests a repository or workspace retrospective.

The reflection prompt

Think hard about what would have made this workspace easier to research, implement, and test. Treat the repository as one coherent system: a tower of linked abstractions (protocol docs → goldens → services → transport → FE). Ask what would have let you understand the situation accurately and control it with the least resource expenditure.

Use actual workspace evidence. Review each phase separately:

  • Research: What did you have to discover that a routing table, focused document, or invariant ledger should have told you? Where did linked abstractions disagree?
  • Implement: What convention did you learn only after correction, review feedback, or a failed attempt? What safer path should have been the obvious path?
  • Verify: What broke that an automated check should have caught? Which gate was slow, flaky, overly broad, or missing, and what evidence demonstrates that cost?
  • Ship: Which release, merge, queue, pin, or status step was ambiguous? What would have made the handoff and shipped-version check deterministic?

Discard observations without a concrete incident, cost, and actionable repository change. Combine observations that share one root cause into one finding.

Enforcement ladder

Each finding must target the strongest feasible rung:

  1. Make the mistake impossible: encode it in types, goldens, or a protocol contract.
  2. Catch it mechanically before merge: add a focused lint, CI check, or test.
  3. Make the right path discoverable: improve a routing table, Makefile target, or script that guides agents to the supported path.
  4. Add a prose rule: use AGENTS.md only as a last resort and cite the incident.

Name the proposed rung for every finding. Explain why each stronger rung is infeasible; for rung 1, state that it is already the strongest rung. Prefer upgrading or replacing an existing weaker rule over adding another instruction agents must remember.

Output template

Write for the person deciding whether to approve the work. Assume they have not read the conversation and do not know the implementation. Use a short title that describes the improvement, such as "Keep database upgrade tests reliable" instead of "Stabilize historical migration fixtures".

Start the task with two short paragraphs: the observed problem and why it matters, then the proposed change and what it will improve. Use everyday words before technical terms. For example, say "tests for upgrades from older databases" before "migration fixtures". The first few sentences must explain the value without paths, hashes, commands, or internal labels such as "Finding" and "Proposed rung".

The task appears in a plain text box. Use short paragraphs, simple labels, and a few bullets. Avoid Markdown heading markers and code fences. Aim for about 150 words; add only the detail needed for the new agent to work without the original transcript. Put essential technical facts at the end, one fact per bullet. Link to longer evidence instead of copying an investigation into the card.

Use this shape once per finding. Replace every placeholder:

<What is going wrong and its practical cost, in plain English.>

<What to improve, why it helps, and why it belongs in a separate workspace.>

What to do:
- <Concrete step in plain English.>
- <Concrete step in plain English.>

Implementation notes:
- <Essential code locations and linked evidence for the observed problem.>
- <Chosen enforcement rung and why stronger rungs are infeasible.>
- <Check to run and the expected result.>
- <Sibling workspaces, open issues, merged PRs, and recent commits checked, with results.>

For example, the opening for the database finding can be:

Tests for upgrades from older databases currently break when unrelated features add
new fields. This creates extra repair work before we can check whether upgrades work.

Give these tests a way to create an old database directly. They can then check the
upgrade itself and keep working as the app changes. This is separate test cleanup
that will make future database changes easier to check.

Where it goes

Before accepting a finding, deduplicate it with four checks: sibling workspaces (ws.crossWorkspace.listSiblings), open intent-hq/intent issues, recently merged PRs (gh pr list --repo <owner/repo> --state merged --search "<keywords>" on intent-hq/intent, plus intent-hq/intentd or intent-hq/cloudlands-fe when the finding names their files), and recent commits to the named files (git log --since=<incident date> -- <files> in the repo or submodule that owns them). If merged work already covers the finding, narrow it to the remaining gap or drop it. Record all four checks in the template, including related work that narrows or supersedes the proposal.

For each accepted, non-duplicate finding, a foreground top-level agent proposes one follow-up workspace with ws.workspace.proposeSibling({ title, initialPrompt }). Use a short outcome-oriented title and the readable task above as the self-contained initialPrompt. Keep the plain English reason in the opening of that task. The user must approve the proposal; do not claim the workspace exists.

Delegated or background agents must instead send the completed finding to their parent with ws.agent.reportToParent; the parent decides whether to propose it. Outside Intent, file an issue labeled agent-workflow and agent-filed instead. Never edit AGENTS.md inside the feature PR to land a retrospective finding.

Anti-patterns

  • Adding prose without a cited incident or without evaluating stronger rungs.
  • Adding a rule that duplicates an existing lint, CI check, test, or type constraint.
  • Putting coordinator-internal sequencing terminology into committed documentation.
  • Quoting the literal breaking-change footer token while merely discussing its hazard.
  • Bundling retrospective cleanup into the feature PR instead of proposing follow-up work.

Related skills