Skip to content
Back to skills

Correct

ASecurity

Turn a mistake the person corrected twice into a check that refuses it: structure, then hook or lint, then test, text last. Use for /ccm-stack:correct.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agents

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ciro-maciel/ccm-stack --skill correct --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Correct?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Correct
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ciro-maciel-correct/badge)](https://www.skillsdirectory.com/skills/ciro-maciel-correct)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: correct
description: Turn a mistake the person corrected twice into a check that refuses it: structure, then hook or lint, then test, text last. Use for /ccm-stack:correct.
---

# Turn corrections into checks

Assume every contributor is an agent that saw only the files it opened, copies the nearest example, and takes the shortest path that works. A rule written in a document fails silently whenever an agent skips it. A check does not.

## Find the classes

Read recent commits and reverts, review comments, the agent instruction files (`CLAUDE.md`, `AGENTS.md`), saved memories of corrections, and comments that explain workarounds. Group mistakes into classes. A class counts when it happened twice.

## Fix each class at the highest level that works

1. **Structure: make it impossible.** One owner per piece of state, one supported way per task. Hide internals so the wrong import fails. Replace lists kept in sync by hand with one source. Delete the old way an agent would copy.
2. **A check that refuses.** A hook, a lint rule or a script whose error message names the file, function or command to use instead. If the bad pattern is already common, fail only when a change adds one more.
3. **A test of the behavior.** Fix or delete any test that stays green when the behavior breaks.
4. **Text last**, only for judgment calls nothing can check. Text still needs proof: add an eval case (the `evals` skill) that fails without the new text and passes with it.

In CCM Stack, a new hook-enforced rule is three edits: an entry in `rules.json`, a function in `lib/checks.js`, and two test cases in `test/checks.test.js` (one it refuses, one it allows). For a rule that is only yours, use your config instead: add it to `forbiddenCommands` with the message that says what to do.

## Prove each check

Break the code on purpose, or replay a real past mistake, and watch the check fail. A check that has never failed has never been tested. Then put the code back and watch it pass.

## Keep the table

Keep a table in the agent instruction file that pairs each rule with what enforces it: a hook, a lint, a test, or "text only". When the person corrects something already marked "text only", it is a repeat: raise its level in the same piece of work. Remove a rule once its mistake can no longer happen.

**Reply:** each class with its evidence, the level you chose, and why a higher level did not work.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.