/t-stack:tstack-retrofrom t-stack
Use at a mission's end, after a correction you've had twice, or when a reviewer or the owner catches the same kind of mistake again: turn each lesson into structure (a guard test, a lint, a script, a skill line, a card template) rather than a note, prove the guard fails on the real past mistake, and add the lesson to the PM playbook doc with sfora put. Skip for a one-off slip with no pattern, and for writing up a mission for the owner (use tstack-brief).
Ships in t-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A note says "remember not to do this". The next agent never reads it. A guard test fails the build when someone does it, and the next agent can't miss that. The retro takes each lesson from a mission and moves it as far as it will go toward something that enforces itself.
Collect the lessons. Read the mission's cards: every CHANGES REQUESTED item, every BLOCKED paragraph, every surviving mutant, every stall and every correction from the PM or the owner. A lesson counts once it has happened twice, or once if it took production down.
For each lesson, name the mistake in one line and the incident that shows it ("the privacy page named a hosting region nobody had measured").
Pick the strongest fix that works, in this order (references/structure.md):
Build it, or file it as a card in Triage if it's more than an hour's work. A lesson with no fix and no card is lost.
Prove each guard on the real past mistake: put the mistake back in a scratch copy and see the guard fail with a message that says what to do.
Add the lesson to the PM playbook doc by round-trip. Update the existing doc with sfora put. Never run sfora doc again for it: that creates a second doc and the path stops reaching the old one.
sfora cat /projects/hq/docs/pm-playbook.md --bot claude-code > pm-playbook.md
sfora put /projects/hq/docs/pm-playbook.md pm-playbook.md --bot claude-code
sfora cat /projects/hq/docs/pm-playbook.md --bot claude-code
On the mission card, one line per lesson: what was encoded, where, and how it was proven (tstack-handoff shows the card round-trip).
tstack-decide), not into a guard.Each lesson with its incident, the level you chose and why a stronger one didn't work, where it lives now (file, test, skill, template), how you proved it, and the playbook doc's path.
Detail: references/structure.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wavyrai/sfora-skills --plugin t-stack28 skills in this plugin
/tstack-architectUse when a change is big enough that writing code first would fix the wrong shape: a new module, a new data model, a change to who owns some state, or a card whose design the owner must see. Sketch the caller's usage, the types and the signatures first, compare at least two shapes, put the chosen sketch on the card or a doc, then build against it and scrap it when it keeps fighting you. Skip for a one-file fix with an obvious shape (just build it, with tstack-tdd), and for comparing finished candidates (use tstack-arena)./tstack-arenaUse when one attempt at a non-trivial piece of work would fix the wrong shape: a contested design, an API, a tricky algorithm, a page of copy. Run two to four independent candidates on the same brief, have a separate judge score them against a written rubric, pick one as the base, graft the best parts of the others into it by hand, and verify the result. Covers the brief, the rubric, the judge and the synthesis note on the card. Skip for work with one obvious answer, and for splitting work into slices (use tstack-swarm)./tstack-benchmark-checklistUse before you report or act on a performance number you measured: a speedup or regression in a PR, a CI step's time, a job's duration, a choice between two libraries or settings. Seven questions to answer with evidence from runs: what limits it, was each side tuned, does it break physical limits, did it error, does it repeat, does it matter end to end, and did the work happen at all. Covers how to state the number on a card. Skip for numbers you didn't measure, and for finding the slow code in the first place (use tstack-how, then measure).