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".
In this repository16 other files it gives its agents.
- 100-sourcesSkill
- brainstormingSkill
- building-eve-agentsSkill
- climatepulseSkill
- daily-interest-briefSkill
- deck-to-issuesSkill
- delivery-deckSkill
- factory-planSkill
- feedback-addressingSkill
- generate-imageSkill
- helmSkill
- proofing-roomSkill
- ptSkill
- session-handoffSkill
- slide-presenterSkill
- video-ingestSkill
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
- Very specific: line 34
Every lesson has at least one gh:pr/N ref.
- Distinctive: line 60
Never edit an existing lesson's truth to fit a new story.
≈ “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.
Files
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_inspecton workers with retries or failures (events only,tailsmall). - REQUEST_CHANGES comments on merged PRs:
gh pr list --state merged --search "<sprint window>" --json numberthengh pr view N --comments. Read only the verdict comments. disputedreviews (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/Nref. No ref, no lesson. - Team-wide lessons (not repo-specific) use
scope: 'team'. memory_logis 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-neededif 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):
worker_spawna 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.- Claude review (Agent tool, opus): ONE comment, last line
APPROVE:/REQUEST_CHANGES:; thenreview_record. - Merging a skill is tap-only (
skill.merge):tap_request {project, kind: 'skill.merge', action: 'pr_merge <skills repo>#<N> <head sha>'}. When Nick sendstap <id> <code>,tap_confirm {id, code}; thenpr_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.
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
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.

