correctlisted
Install: claude install-skill SeanoChang/seanock
# correct
A correction that the user types two times is a rule that nothing holds up.
A sentence in `CLAUDE.md` is the weakest way to hold it. This skill finds
such corrections, and gives each one an enforcer: code that fails when the
rule is broken.
The rules of a project are in one table, `.claude/rules.json`, under git.
The script `rules.py` checks that table and writes the copy that a person
reads, `.claude/rules.md`.
Each command below runs as its own command, with no pipe. Read the exit code
and the last line together:
| Exit | Last line | Meaning |
| --- | --- | --- |
| 0 | `rules: clean` | Nothing found. |
| 1 | `rules: summary ...` | Candidates or gaps, one on each line above. |
| 2 | `rules: error ...` | It could not finish. This says nothing about the rules. |
Anything else is not a result. One command has a last line of its own:
`table` ends with `rules: wrote .claude/rules.md` and exit 0.
## 1. Find the candidates
```bash
python3 ~/.claude/skills/correct/scripts/rules.py mine --repo <project root>
```
By default the script reads the prompt history of Claude Code for this
project. Add `--project <folder>` for each other folder where the user
worked on this project, such as a worktree beside the repo. `--no-history`
leaves the history out, and `--history <file>` names another file.
The script prints one JSON object for each candidate:
| `kind` | What it is |
| --- | --- |
| `revert` | A commit that reverts another. Something went in that should not have.