correct

correct is a skill for Claude Code from bengous/claude-code-plugins. It costs 119 tokens per session (1,460 once invoked), scanned A, original, MIT.

A skill for turning a past mistake into an automated check or a clear instruction. It starts from evidence of the mistake and chooses a control such as architecture, types, lint, tests or hooks.

In plain words
What is it for?
Use it after a bug, review finding or repeated mistake to find similar cases and add the earliest effective safeguard.
Why use it?
It prevents the same class of error from relying only on someone remembering a rule. The correction becomes something that can fail when the mistake returns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the code-quality plugin — 2 skills, 2 commands shipped together

Good fit Use it after a bug, review finding or repeated mistake to find similar cases and add the earliest effective safeguard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bengous/claude-code-plugins/correct
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bengous/claude-code-plugins --skill correct
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins

Made for: Claude Code.

Or install code-quality, the plugin that ships this one along with the rest of its 2 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for correct

README.md
[![agentmods](https://agentmods.dev/badge/skills/bengous/claude-code-plugins/correct/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/correct)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/correct"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/correct/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for correct

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/correct"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/correct.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.01460
Opus 5.5 $0.00048 $0.00584
Sonnet 5.5 $0.00024 $0.00292
Haiku 4.5 $0.00012 $0.00146

Measured 1mo ago against content hash 1de0303dad38, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

correct scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

code-quality/skills/correct/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Correct

The next agent sees only the files it opens, copies the nearest example, and takes the shortest path the checks accept. Move the correction into something that fails.

1. Name the class

  1. Pin the past error: the diff, commit, review comment or transcript line where it happened. With no past error there is nothing to prove a control on; ask for it.
  2. Widen it to its class: every place the same mistake can land. Search the tree for siblings, and the history for earlier occurrences (git log --oneline -S '<snippet>', git log --oneline --grep '<word>').
  3. Find the control that should have caught it: a lint rule turned off, a test that stayed green while the behaviour broke, a hook that let the call through, an instruction that already said it.

2. Take the first rung that holds

Repairing a control found in step 1 comes first. Otherwise try the rungs in order and stop at the first that makes the past error fail; each later one catches the mistake later, for fewer writers, or only when obeyed.

  1. Architecture. Leave the mistake nowhere to be written: one owner per fact, one supported way per task. Delete the duplicate an agent would copy, derive a hand-synced list from its source, keep internals unexported so the wrong import fails. A move beyond the instance's files is proposed before it is coded.
  2. Types. Make the bad state a value of no type: a discriminated union, a branded type, an exhaustive switch ending in never, under the repo's typecheck gate. The error points to the fix through the names it prints: name a brand or a union after what builds it (UserId, made by toUserId).
  3. Lint. For code that compiles yet is wrong in a way its syntax shows. A built-in rule only when its message names the fix (no-restricted-imports and no-restricted-globals take a custom message; bun x oxlint --rules lists the rest), else a rule in the repo's oxlint JS plugin (jsPlugins in oxlint.config.ts), enabled by name in rules, its message naming the file, type or function to use instead. When the tree already holds many instances, fix them in the same change or scope the rule to the files that must obey it: a rule left off holds nothing.
  4. Test. For an error only running the code shows. It fails when the behaviour breaks, never when only internals change, and its assertion message says what broke.
  5. Hook. For a mistake that is an action, not code: a tool call, a command, a commit, a push. A PreToolUse hook denies the call with a reason naming the right command; a git hook guards commit and push. A judgment a model can make from the event alone is a prompt or agent hook, a classifier, not prose.
  6. Instruction. Only for a judgment no code and no classifier can make: one or two lines, the rule and its why, in the narrowest file that loads with the work (a path-scoped .claude/rules/<topic>.md, not the root AGENTS.md). Nothing fails when it is skipped; say so. When the user asked for an instruction, propose the control found above and keep their choice.

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 89 lines · 119 tokens per session scan A 1de0303dad38

Subscribe to this mod's changes

correct is a skill published in the GitHub repository bengous/claude-code-plugins (6 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 1,460 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

correct compared with skills from other repositories

correct next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
correctbengous/claude-code-pluginsSkill6todayMITA119Claude Code
sentry-fix-issuesopenclaw/clawhubSkill9.6ktodayMITA58Claude Code
debugging-executionsn8n-io/n8nSkill213ktodaynoneA86Claude Code, Codex
n8n-docs-assistantn8n-io/n8nSkill213ktodaynoneA71Claude Code, Codex
auditfengshao1227/ccg-workflowSkill6.0k12d agoMITA54Claude Code
dorodangoathola/claude-night-marketSkill358todayMITA31Claude Code
sentry-sdk-upgradegetsentry/sentry-for-aiSkill2835d agoMITA48Claude Code