retro
Turn a bug, outage or repeated mistake into a device that makes the whole class impossible.
Skill by rainmanjam
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/rainmanjam-retro-07c6f2
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, data, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/retro
What's inside
- Skill name
retro- Description
- Turn a bug, outage or repeated mistake into a device that makes the whole class impossible. Use when something already broke: "make sure this never happens again", "this is the third time", "postmortem", "how did this get through". Root-causes to the missing constraint, then sweeps every other site where the mistake is still available. For a pipeline use data, a deploy use ops, cross-tenant use authz, an AI feature use llm.
- License
- MIT
- Instructions
- 139 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Poka-Yoke Retro A defect got out. The fix for the defect is the easy part and is usually already done or obvious. This mode is about the harder and more valuable question: **what made the mistake available, and what device removes it for good?** Shingo's framing is the whole method here. Do not ask why the person erred, people err, that is a constant. Ask why the *process permitted* the error to become a defect, and what would have physically stopped it. ## 1. Separate the three things People conflate these, and conflating them is why incidents repeat. - **The defect**: what the user or system experienced. "Customers were charged twice." - **The mistake**: the specific human action that produced it. "The retry path called `charge()` again without an idempotency key." - **The hazard**: the property of the system that made that mistake possible and silent. "`charge()` accepts an optional idempotency key and succeeds without one." Fixing the defect ships today. Fixing the mistake helps one code path. **Only fixing the hazard prevents recurrence**, and the hazard is almost always a missing constraint, not a missing piece of knowledge. Write all three out explicitly before proposing anything. If you cannot state the hazard as a property of the system, you have not found it yet. ## 2. Ask why until you reach a constraint Run the whys, with one discipline: **an acceptable terminal answer is a missing constraint, never a missing human quality.** If a chain ends in "they forgot," "they didn't know," "they were rushing," or "it wasn't documented," you stopped one step early, keep going and ask why forgetting was possible, why the knowledge was needed at all, why the system accepted the result. > Double charge → retry called `charge()` twice → the retry path didn't pass an idempotency > key → **the key is an optional parameter** → *why is it optional?* → it was added later and > made optional to avoid breaking callers → **there is no compile-time or database-level > requirement that a charge be idempotent.** That last line is the hazard, and it is fixable: make the parameter required, or add a unique constraint on `(account_id, idempotency_key)`. Compare it to "the engineer should have passed the key," which is fixable only by hiring different humans. Also ask the escape question separately: **what should have caught this and didn't?** Usually there was a device: a test, a review, a type, and it was absent, disabled, or too weak. That gap is a second finding in its own right. ## 3. Sweep for the class. This is the step that gets skipped A poka-yoke that fixes one call site is not a poka-yoke. Before proposing anything, find **every other place the same mistake is still available.** This is almost always where the real value of a retro sits, and it is the step people omit under time pressure. Search by the shape of the hazard, not by the text of the bug: - Every other caller of the same function or endpoint. - Every other function with the same dangerous signature shape, other optional-when-it-should- be-required parameters, other same-type adjacent arguments, other unguarded bulk operations. - The same pattern in sibling services, other languages in the monorepo, scripts, jobs, and infrastructure code. - Run `python3 ../../scripts/detect_hazards.py --paths <repo> --id <hazard-id>`: the ID is the one printed with each finding, to catch instances you would not have thought to grep for. Report the count plainly: *"the same hazard exists at 6 other call sites"* changes the conversation about how much the fix is worth. ## 4. Choose the device by rung Now propose, using the ladder from the router skill. For an incident that already cost something real, push hard for **Control**: you have the strongest evidence you will ever have that this mistake happens. | Rung | For this incident, that would mean | |---|---| | **Control** | Required parameter · database unique constraint · type that cannot represent the bad state · CI check that cannot be merged past | | **Warning** | Lint rule · runtime assertion · alert at the moment of the action | | **Detection** | Regression test · monitor · reconciliation job | | **None** | "Added a note to the runbook" · "reminded the team" · "added a review checklist item" | A regression test is genuinely valuable and you should write one. It proves the fix and stops this exact path regressing. But be honest that it is rung 3: it catches the mistake after someone makes it, and only on the path you thought of. If the retro produces *only* a test, say so, and say what a Control-rung device would have required. Beware the fix that is really rung zero wearing a costume: more documentation, a new checklist item, a Slack reminder, a training session, an extra required reviewer. These feel like action and change nothing. If that is genuinely all that is possible, name it as an accepted risk rather than a resolution. ## 5. Write it up ```markdown # Retro · <short title> · <YYYY-MM-DD> **Defect**: <what was experienced, with blast radius: how many, how much, how long> **Mistake**: <the specific action taken> **Hazard**: <the system property that made it possible and quiet> ## Why it was possible <the chain, ending at a missing constraint> ## Why nothing caught it <the device that should have existed, was disabled, or was too weak> ## Class sweep <n other sites where this mistake is still available, list them> ## Devices | Device | Rung | Covers | Status | |---|---|---|---| | <change> | Control | all N sites | proposed | | <regression test> | Detection | the original path | done | ## Accepted risk <what remains possible, and why that is acceptable> ``` Save to `docs/poka-yoke/retro-YYYY-MM-DD-<slug>.md`, and put a `poka-yoke:` marker comment at each
From rainmanjam/poka-yoke, MIT.
More from rainmanjam/poka-yoke
- 0.607score
llm
rainmanjam
AI features you ship to users: structured output, tool schemas, prompt injection, evals.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
ops
rainmanjam
Deploys, schema migrations, rollback and infrastructure.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
poka-yoke
rainmanjam
Mistake-proofing for anything: code, config, a schema, a process, a runbook, a form.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
ux
rainmanjam
Forms, destructive actions and flows users get wrong.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
defensive
rainmanjam
Defensive programming for any code: validating inputs at every boundary, checking for null and absent values, supplying safe fallbacks, catching and logging…
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
clean-code
rainmanjam
Software quality review and design guidance for any code: naming, cohesion, coupling, duplication, function size, dependency direction, and testability.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
agent-guardrails
rainmanjam
Stop an AI agent damaging your repo: PreToolUse hooks, permission deny rules, protected paths, verification gates.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
audit
rainmanjam
Find footguns in code that already exists: swappable arguments, silent fallbacks, unguarded deletes, signatures that are easy to misuse.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
authz
rainmanjam
Multi-tenant isolation, IDOR and row-level security.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
data
rainmanjam
Pipelines, warehouses, dbt models and metrics, where failure is silently wrong numbers rather than a crash.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
design
rainmanjam
Design APIs, schemas, types and state machines so misuse cannot be expressed.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
guardrails
rainmanjam
Pre-commit hooks, CI gates, lint rules, database constraints and branch protection.
SkillBFreshness: B★ 24Claude Code +9
Signals
- Stars
- 24
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Aug 23, 2026 (2 months ago)
- Last release
- Aug 25, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/rainmanjam/poka-yoke
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from rainmanjam
- 0.607score
agent-guardrails
rainmanjam
Stop an AI agent damaging your repo: PreToolUse hooks, permission deny rules, protected paths, verification gates.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
authz
rainmanjam
Multi-tenant isolation, IDOR and row-level security.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
clean-code
rainmanjam
Software quality review and design guidance for any code: naming, cohesion, coupling, duplication, function size, dependency direction, and testability.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
defensive
rainmanjam
Defensive programming for any code: validating inputs at every boundary, checking for null and absent values, supplying safe fallbacks, catching and logging…
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
audit
rainmanjam
Find footguns in code that already exists: swappable arguments, silent fallbacks, unguarded deletes, signatures that are easy to misuse.
SkillBFreshness: B★ 24Claude Code +9 - 0.607score
data
rainmanjam
Pipelines, warehouses, dbt models and metrics, where failure is silently wrong numbers rather than a crash.
SkillBFreshness: B★ 24Claude Code +9
Cite this page
retro skill. Agent Mart. https://agentmart.dev/skills/rainmanjam-retro-07c6f2 (last updated 2026-10-24)