Bring the repo's rules file, repo map, and pattern index back in line with the code. Use monthly, after a large refactor, or when the user says the rules feel stale or the agent keeps tripping on outdated docs.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Canon Upkeep?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/chocomyong-canon-upkeep)
---
name: canon-upkeep
description: Bring the repo's rules file, repo map, and pattern index back in line with the code. Use monthly, after a large refactor, or when the user says the rules feel stale or the agent keeps tripping on outdated docs.
---
# Keep the canon current
A rules file that drifts from the repo becomes noise, and a stale fact gets quoted as true.
## Steps
1. Find when the canon last changed: `git log -1 --format=%ad -- AGENTS.md docs/REPO_MAP.md`.
2. Survey what changed since then: `git log --since=<that date> --stat`, new or moved modules,
retired code.
3. Propose updates from measured facts only:
- `docs/REPO_MAP.md` rows, names, and runtime values, each re-measured with its command;
- rules that no longer match how the repo works;
- counts or versions that crept into docs - replace with the command that produces them.
4. Check the size budget: the always-loaded rules file stays under ~150 lines. Move facts to the
repo map, area knowledge to on-demand files, and enforceable rules to hooks.
5. Grep for each changed rule's key phrase across the repo. A rule stated in two files is edited
in both or replaced by a link.
6. Show the diff. Never weaken the top invariant, and never delete a rule only because you do not
understand it - ask.