correct

Eliminate repeated mistakes by fixing architecture, types, lints, tests, and docs systematically.

15.8k|1.6k|Updated Jan 23, 2026
Ready to run
npx skills add https://github.com/cursor/plugins --skill correct-cursor
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: correct
Source: https://github.com/cursor/plugins/tree/main/harness/pstack/claude-code/skills/correct
Command: npx skills add https://github.com/cursor/plugins --skill correct-cursor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agents repeatedly introduce the same classes of mistakes into a repository. This Skill identifies those patterns and fixes the repository architecture, type system, and validation so the next agent cannot make them. ## Core Features & Use Cases - Mistake Classification: Analyze commits, reverts, and review comments to identify recurring error patterns grouped into classes. - Systematic Fixes: Apply fixes at the highest level: architecture changes first, then type enforcement, then lints and tests, finally documentation. - Proof of Fix: Verify each new check fails on a real past mistake and runs consistently in CI. - Use Case: A team repeatedly imports from internal modules in the wrong way. Instead of documenting the rule, restructure the codebase to hide internals, make the wrong import fail at compile time, add a lint rule that names the correct import path, write a test, then document the pattern. ## Quick Start Read recent commits and review comments to identify the top recurring mistake classes in your repository, then apply architecture-level fixes starting with the most frequent pattern.

Frequently Asked Questions about correct

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify which mistakes agents keep repeating?▼

Review recent commits, revert history, code review comments, and inline workaround explanations. Group similar errors into classes; a class counts once it appears twice. Focus on patterns that appear in multiple files or across multiple contributors.

What is the order of fixes from highest to lowest level?▼

Fix at the highest level that works: architecture first (ownership, state, imports), then types (compiler-enforced constraints), then lints (CI checks that name the correct pattern), then tests (verify behavior), then docs (judgment calls only).

How do I prove that a fix prevents the old mistake?▼

Run the same validation command locally and in CI against a past commit that contained the mistake. The check must fail on the old code and pass after the fix. Document exceptions on the offending line with reason and expiry date.

Why is documentation the last step, not the first?▼

Agents skip documentation. Architecture, types, and lints fail automatically. Tests fail when behavior breaks. Only after making mistakes impossible should you document the underlying judgment calls agents might still question.

What should I track in the rule table?▼

Maintain a table pairing each rule with what enforces it (architecture, type, lint, test, or doc). When an operator corrects you, add the rule. If a rule already existed but nothing enforces it, that is a repeat—fix it at the highest level in the same change.