Lesson 4 · Milestone: Hard check

The same mistake twice

A prompt can stop one agent, once. The next agent does not read that chat. When the same mistake shows up again, the fix belongs in the repo, where a command can fail.

The make-it-yours page starts smaller than a new plugin. Prompt plainly, watch where agents fail, and add a check when the same failure shows up twice. The command for the repo side of that is /correct.

Four rungs

ClassA mistake counted once it has happened twice. One weird session is an anecdote.
HoldHow well the fix survives the next agent. A comment holds the least.
/correctGroups those classes from the repo's history and fixes the frequent ones.
/reflectThe other half. It proposes skill changes from one session, and waits for you.

A comment does not fail

The page ranks the options by how well they hold. The order is the whole lesson:

  1. Make the mistake impossible, with architecture or a better data structure.
  2. Block it with types, or with a lint or CI check whose error names the fix.
  3. Catch it with a test.
  4. Write it down as a doc or an agent rule. This is last, because nothing fails when an agent skips a rule.

Human review is not on the list. A reviewer who must catch the same mistake on every pull request is the problem this command exists to fix.

The model breaks in one place. /correct is not /reflect. Reflect sends one transcript to reviewers and waits before any skill change. Approve a proposal only if it would change a future decision. Correct reads commits, reverts, review comments, and comments that explain workarounds, groups them into classes, and changes the repo. A class counts once it has happened twice. Each class is one commit, at the highest rung that works, and the new check has to fail on a real past mistake.

Higher holds better 1 · Make it impossible architecture, or a better data structure 2 · Block the call types, or a lint whose error names the fix 3 · Catch it a test 4 · Write it down · last a doc or a rule. nothing fails when an agent skips it
The accent is the rung people reach for first. The page puts it last. Human review is not drawn, because it is not an option on this list.

No motion scene on this page. The idea is a ranking, and one ladder shows it. There is no sequence to watch.

The command

This is the page's own example. You can also run /correct with no argument. It finds the classes from history on its own.

/correct agents keep calling the database client directly
instead of going through the repository layer
  1. Evidence. The reply lists each class, the rung it chose, and why a higher rung did not work.
  2. A table. It keeps a table in the agent instruction file that pairs each rule with what enforces it. A rule that nothing enforces shows up as a repeat.
  3. Not this command. A skill that must drive the app is still /create-verification-skill, from lesson 3. Correct does not replace that.

Practice

When does a mistake become a class?

Which fix is last on the list?

Which one is missing from the list?

The new check has to fail on what?

Sort the sentences

A fix that can come out wrong belongs in one bin. A sentence nothing can fail belongs in the other.

Linter that names the fix

One test catches this bug

A comment states the rule

Rules you skip still pass

Fill the rank

Cover the ladder above, then fill the two blanks. The boxes are the same width on purpose.

A class counts once it has happened .
A doc or a rule goes , because nothing fails when an agent skips it.

Go deeper

Primary source: Make it yours. Read "Fix the environment with /correct".

The practice above is the check for this page. When a step here is too short, the official guide is the source.