Skip to content
Skillpedia
General coding15k · #10959

correct

What it does

Lets the assistant review recurring corrections and fix their causes in the codebase itself. It is for teams that keep correcting the same AI-made mistakes.

When to use it

  • ✓When the same mistakes keep coming up in AI-made changes.
  • ✓When you want to stop repeated corrections by changing the repo itself.
  • ✓When you ask the assistant to run the correct process.

Skill link

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/correct/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/correct/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Look through our recent reverts and review comments, find repeated AI mistakes, and make them hard to repeat.”

5 new skills a week. 1 minute to read.

How it works

The assistant groups recurring mistakes into classes, then fixes each at the highest level that works: architecture first, then types, lint rules with helpful messages, tests, and finally docs.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Correct

The operator keeps correcting agents in this repo for the same mistakes. Change the repo so the next agent can't make them.

Assume every contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Design the repo so a change that looks right from one file is right for the whole repo.

Find the mistake classes

First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice.

Fix each class at the highest level that works

  1. Eliminate it with architecture. Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
  2. Enforce it with types so the bad state can't be written. If bad code still compiles, add a lint or CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more.
  3. Test the behavior. Fix or delete any test that still passes when the behavior it checks breaks, or that fails when only the internals change.
  4. Write docs or agent rules last, only for judgment calls. Nothing fails when an agent skips them.

Fix and prove

Then fix the most frequent classes now, one commit each. Prove each new check fails on a real past mistake. Run the same command locally and in CI. Exceptions go on the offending line with a reason, an expiry date, and a human's approval.

Keep the rule table

Last, keep a table in the agent instruction file that pairs each rule with what enforces it. When the operator corrects you, fix the mistake and add the rule. If the rule was already there and nothing enforces it, that's a repeat, so fix it at the highest level in the same change. Drop a rule once its mistake can't happen.

Reply: each class with its evidence, the level you picked, and why a higher level didn't work.

FAQ

Why does it fix architecture first?

A design that removes a mistake entirely works better than checks or documentation that an agent might skip.

When does a mistake count as a class?

After it has happened twice, the skill treats it as a repeated class worth fixing.

Does it write docs first?

No. Documentation comes last, only for judgment calls, since nothing fails when an agent skips it.

Details

Original description by the author

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.

repo: cursor/plugins

Popularity

GitHub stars
15k
Ranking position
#10959
License
—
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills