agentleFS
NicegarrryNicegarrry/claude-skills/factory-retro/SKILL.md

factory-retro

Skill0 starsChanged 5 months agoMITView on GitHub

Turn a closed Helm sprint's scorecard into at most five evidence-backed lessons, label Jev's calls with real outcomes, and open skill PRs for lessons that change how agents work. Use after scorecard.export (budget close), when a supervisor finishes a sprint, or when Nick says "run the retro", "what did we learn".

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every lesson has at least one gh:pr/N ref.

    line 34
  2. Distinctive:

    Never edit an existing lesson's truth to fit a new story.

    line 60

≈ “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

factory-retro: scorecard to lessons

Input: a project slug and the sprint's budget id. Output: up to 5 lesson pages in project memory, labelled Jev calls, and skill PRs waiting on a tap.

1. Gather

  • scorecard_export {project, budgetId} (or the scorecard page it already wrote: memory_list {project, type: 'scorecard'}).
  • Retry reasons: worker_inspect on workers with retries or failures (events only, tail small).
  • REQUEST_CHANGES comments on merged PRs: gh pr list --state merged --search "<sprint window>" --json number then gh pr view N --comments. Read only the verdict comments.
  • disputed reviews (Jev disagreed with the stated verdict) from the scorecard.
  • Jev calls for the sprint, read-only: sqlite3 -readonly ~/.helm/helm.sqlite "select id,purpose,workerId,answers,confidence,label from jev_calls where project='<slug>' and at >= '<opened>'"

2. Write lessons (max 5)

Pick patterns that recur (2+ tickets) or cost a retry round. For each:

memory_write {
  scope: 'project', project: '<slug>', type: 'lesson',
  title: '<short name>',
  summary: '<one-line rule an agent can follow>',
  truth: '<evidence: what happened, how often, which fix worked>',
  refs: [{kind: 'gh', key: 'pr/<N>', title: '<pr title>', checked: '<today>'}]
}
  • Summary is an instruction, not a story ("Test conflict parsing against real git, not a fake grep"), under 120 chars.
  • Every lesson has at least one gh:pr/N ref. No ref, no lesson.
  • Team-wide lessons (not repo-specific) use scope: 'team'.
  • memory_log is for short dated notes on an existing page; never use it to create a lesson.

3. Label Jev

For each Jev call whose outcome is now known, jev_label {id, label}:

  • triage: correct / wrong:<actual> (e.g. wrong:answerable).
  • claims / verdict: agree / disagree.
  • issue / routing: the real band or split-needed if the ticket had to be split.

Skip calls you can't judge. Labels feed routing and selection; a wrong label is worse than none.

4. Skill PRs (lessons that change agent behaviour)

For each lesson that should change a skill (briefing rule, review checklist, supervisor loop):

  1. worker_spawn a Codex worker (codex/gpt-5.6-luna:medium) on the skills repo, objective = the lesson plus the exact skill file and section to edit; keep the edit under 15 lines.
  2. Claude review (Agent tool, opus): ONE comment, last line APPROVE: / REQUEST_CHANGES: ; then review_record.
  3. Merging a skill is tap-only (skill.merge): tap_request {project, kind: 'skill.merge', action: 'pr_merge <skills repo>#<N> <head sha>'}. When Nick sends tap <id> <code>, tap_confirm {id, code}; then pr_merge {number: <N>, project: <skills repo>, expectedHead: <head sha>} exactly once (keeps Helm's approving-review guard) and note the tap id in the PR comment. No tap, no merge.

Rules

  • Five lessons maximum; fewer good ones beat many weak ones.
  • Evidence comes from PRs, gates and events, not from memory of the session.
  • Never edit an existing lesson's truth to fit a new story; write a new lesson and reference the old one.

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.