agentleFS
intent-hqintent-hq/intent/.agents/skills/repo-retrospective/SKILL.md

repo-retrospective

Skill281 starsChanged 3 months agoApache-2.0View on GitHub

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

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this retrospective after the work has merged or shipped and before writing the final workspace status message.

    line 17
  2. Distinctive:

    Use actual workspace evidence.

    line 28
  3. Distinctive:

    Catch it mechanically before merge: add a focused lint, CI check, or test.

    line 47
  4. Distinctive:

    Add a prose rule: use AGENTS.md only as a last resort and cite the incident.

    line 50
  5. Very specific:

    Use this block once per finding.

    line 58
  6. Very specific:

    Before accepting a finding, deduplicate it against sibling workspaces with ws.crossWorkspace.listSiblings and open intent-hq/intent issues.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

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

Use this block once per finding. Replace every placeholder. It must stand alone as a workspace initialPrompt, without relying on the retrospective transcript.

# Finding: <short outcome-oriented title>

## Finding
<Observed repository friction and the desired outcome.>

## Evidence (file/PR/commit)
<Exact paths, PRs, commits, failures, or corrections that demonstrate the incident.>

## Cost (time or bug)
<Measured or bounded time, repeated work, escaped bug, flake, or release risk.>

## Proposed rung + concrete change
<Rung 1-4 and the exact repository change. Explain why every stronger rung is infeasible.>

## Verification steps
- <Command or scenario and its expected result.>

## Dedup check performed
<Sibling workspaces and open issues searched, including queries and any related results.>

Where it goes

Before accepting a finding, deduplicate it against sibling workspaces with ws.crossWorkspace.listSiblings and open intent-hq/intent issues. Record both 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 completed template verbatim as the self-contained initialPrompt. 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.

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.