redundancy-check-before-shiplisted
Install: claude install-skill damson/hard-won-skills
# Redundancy check before ship
Prose rules duplicate silently: the author recalls writing the sentence, not that
the repo already states it elsewhere. This skill greps each added rule against the
docs a reader already has loaded and reports what is genuinely net-new.
## Procedure
1. **Extract the rules the diff adds.** One *claim* per line, not one bullet per
line. Split on every imperative verb and on `and` / `but` / `;` — a bullet
reading "start from the template, never free-hand, and tick nothing you did
not verify" is three rules, and each needs its own lookup.
2. **Grep for each rule's subject** across the files a reader might already have
loaded: sibling pages in the same directory, the repo's `CLAUDE.md` /
`AGENTS.md`, the PR template, `CONTRIBUTING.md`. Search the *subject*, not
your phrasing — you will have reworded it. Derive the subject mechanically:
take the 1–2 rarest content nouns in the rule (command names, file names,
flag names, feature nouns) and OR them. "Start from the PR template, never
free-hand" → `template|free.?hand`, not `always start from`.
```bash
grep -rniE '<subject>' --include='*.md' . | grep -v node_modules
```
3. **For each already-stated rule, pick exactly one home.** Either keep the
existing statement and drop the addition, or replace the existing one with a
pointer to the new home. Prefer the location closest to the moment of use.
The one exception is the entry-point/reference split — a ru