# Correct

> Correct is an open-source agent skill for developer tools. Turns repeated agent mistakes in a repo into architecture, type, lint or test guards. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/correct
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** correct
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/correct)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/correct)

## Features

- **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

## Install

### Claude Code

This skill ships in the `pstack` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

Or copy only this skill to `~/.claude/skills/correct`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/correct` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/correct` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/correct
```

Or copy the folder to `~/.gemini/skills/correct` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/correct`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git
```

Then 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.

## 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.

## Alternatives

- [Principle encode lessons in structure](https://ai-powered.com/skills/principle-encode-lessons-in-structure): Principle encode lessons in structure is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.
- [Bug fix](https://ai-powered.com/skills/bug-fix): Bug fix is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/correct
