Correct correct
Find the mistakes agents keep repeating in this repo and make each impossible at the highest enforcing level — lint rule, type guard, runtime check, script, then text — with every enforcement proven to fire.
Works in Claude, ChatGPT, Codex and more
- Our test
- 8/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 41k
- yeachan-heo/oh-my-claudecode
- Added by
- 0
- members
- Updated
- Dec 6
- commit a1ae209
- Content
- 1 file
- no scripts · 3 KB
- License
- MIT
- free to use
What our test found
The skill provides a clear, evidence-based workflow for turning recurring coding mistakes into tested enforcement, though its OMC-specific recordkeeping may not fit every repository.
Request we tested it on“Our agents keep importing generated API types from the wrong path. Review the recurring issue and make it difficult to repeat.”
Limits spotted
- Assumes access to repository history, notes, and a verification ledger that may not exist.
- The state-root discovery details add complexity for projects that do not use OMC.
- Deliberately reproducing a mistake should be isolated to a safe test or temporary change.
name: correct
description: "Find the mistakes agents keep repeating in this repo and make each impossible at the highest enforcing level — lint rule, type guard, runtime check, script, then text — with every enforcement proven to fire."
aliases: []
metadata:
credits:
mistake-elimination: pstack
author: Lauren Tan
url: "https://github.com/cursor/plugins/tree/main/pstack"
port: pstack-claude
port-author: Michael Denyer
port-url: "https://github.com/michael-denyer/pstack-claude"Correct
Text instructions decay; structure reruns. This skill converts a repeated agent mistake into an enforcement the mistake cannot survive.
When to use
- the same class of error appears twice or more (wrong import path, missed codegen step, broken invariant, slop pattern)
- retrospective findings in
.omc/notepads/or review history name recurring friction
Workflow
- Collect. Mine the evidence — resolve OMC's state root first (the checkout's
.omc/by default;OMC_STATE_DIRor a parent.omc-workspacemoves it, and a package-subdirectory launch must not read a stray checkout-local.omc): the notepads under<state-root>/notepads/*/problems.md, the verification ledger at<state-root>/state/verification-ledger.tsv, review comments, recent fix commits, and the user's feedback notes in the memory directory (${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/<project>/memory/, notes withtype: feedback): a note'scountfield, when present, counts how many times in total the user stated that correction, the first time included. Group by root cause, not by symptom. - Rank. Frequency × cost. Take the top mistakes; one at a time. A feedback note with
count3 or more means the user has stated the same correction at least three times, that is, repeated it at least twice (countcounts every statement, the first included: 1 = stated once, 2 = repeated once); read the count as the frequency and rank such a note first. A note withoutcountcounts as 1. - Pick the highest enforcement level that works:
- linter rule / compiler error — the mistake stops compiling
- type-level guard — the mistake stops type-checking
- runtime check or assertion — the mistake fails loudly at the boundary
- script or codemod — the correct action is one command
- project skill text — the last resort; note why every higher level failed
- Implement the enforcement with its exception path documented (how a legitimate case opts out).
- Prove it fires. Reproduce the mistake deliberately and show the enforcement catching it, with real output. An enforcement you have not seen fire is a hypothesis (an external benchmark-checklist discipline applies).
- Record honestly: the ledger verdict matches what the repro actually exercised — a lint rule or type guard firing is
enforcement-verified, a runtime check exercised by a test isunit-test-verified, a proof isformally-verified. Never record a stronger verdict than the evidence.
Rules
- Never weaken an enforcement to make a test pass; the enforcement is the requirement now.
- Record what was encoded in the state-root ledger (
<state-root>/state/verification-ledger.tsvper the collection step) with the verdict the repro actually exercised (see workflow step 6) and the repro command as evidence. - Text added at level 5 references this skill, so the next occurrence tries to climb the ladder again.