
Correct
Turns repeated agent mistakes in a repo into architecture, type, lint or test guards
Correct is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Correct
This skill guides an agent through a review of a repository's recent commits, reverts, review comments and workaround notes to group repeated mistakes into classes. Each class is then addressed at the highest level that works: first by removing the cause through architecture, then by making the bad state fail to compile or pass lint, then by tightening tests, and only last by writing documentation or agent rules for judgment calls.
The workflow asks the agent to fix the most frequent classes one commit at a time, prove each new check would have caught a real past mistake, and run the same command locally and in CI. Exceptions are meant to sit on the offending line with a reason, an expiry date and a named approver. It also maintains a rule table in the agent instruction file that pairs each rule with the check enforcing it.
The skill is a single SKILL.md with no scripts. It expects a git repository with history and review data to analyse, and it is written for coding work in that repo rather than for a specific language or toolchain.
When your agent uses it
Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last. Prove each check fails on a real past mistake. Repeat this each time the operator corrects you. Use for /correct.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeOr copy only this skill to ~/.claude/skills/correct:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/correct &&
cp -R "$tmp/plugins/pstack/skills/correct" ~/.claude/skills/correct &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/correct inside it instead.
Copy the skill folder to ~/.agents/skills/correct to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/correct &&
cp -R "$tmp/plugins/pstack/skills/correct" ~/.agents/skills/correct &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/correct inside it instead.
Copy the skill folder to ~/.cursor/skills/correct to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/correct &&
cp -R "$tmp/plugins/pstack/skills/correct" ~/.cursor/skills/correct &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/correct inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/correctOr copy the folder to ~/.gemini/skills/correct yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/correct:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/correct &&
cp -R "$tmp/plugins/pstack/skills/correct" ~/.copilot/skills/correct &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/correct inside it instead.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen copy pstack-claude/plugins/pstack/skills/correct into your agent's skills folder as correct. Agents that support SKILL.md read one folder per skill.
What it does
- Mistake class discovery
- Groups recurring agent errors from commits, reverts, reviews and workaround comments.
- Layered fix hierarchy
- Prefers architecture, then types, then lint, then tests, with docs as the last resort.
- Lint errors that name the fix
- Guides checks whose failure message points the agent to the correct file, type or function.
- Proof against past mistakes
- Requires each new check to fail on a real earlier mistake before it is accepted.
- Rule table maintenance
- Keeps a table in the agent instruction file linking each rule to the check that enforces it.
- Governed exceptions
- Allows lint exceptions only with a reason, expiry date and human approval on the line.
Good for
- Find the mistakes agents keep repeating in this repo and stop them
- Turn a recurring code review comment into a lint rule that names the fix
- Make an internal module unimportable from the wrong place
- Replace a hand-maintained list with a single source of truth
- Add a regression test for a behavior agents keep breaking
Correct FAQ
How is the skill triggered?
It is invoked with /correct, and the description says to repeat it each time the operator corrects the agent.
What does Correct change in the repo?
It asks the agent to make commits that add architecture changes, types, lint or CI checks, tests and, last, docs or agent rules, and to keep a rule table in the agent instruction file.
Does Correct need any scripts or extra tools?
The skill ships as one SKILL.md with no scripts and no tool restrictions set; it works from the repository's own history and commands.
How are exceptions to a check handled?
Exceptions go on the offending line with a reason, an expiry date and a human's approval.
How do I install Correct in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/correct to use it in all your projects, or to .claude/skills/correct in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.
Does Correct run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Correct?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Correct?
The closest alternatives to Correct are Principle encode lessons in structure, Project review, Principle fix root causes, Agent architecture audit and Ci.
Where this comes from
- Description: from the skill's own SKILL.md.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

Runs parallel candidate attempts at a task, then merges the best parts into one artifact
- Open source
- 5.1K GitHub stars
- Developer tools

Drafts a personal working-style skill from your past agent conversations
- Open source
- 5.1K GitHub stars
- Developer tools



