check-docs is a small shell pre-commit check that stops a commit when CLAUDE.md, AGENTS.md or files they @import reference missing paths or deleted names.
It checks nested CLAUDE.md, CLAUDE.local.md and AGENTS.md files, follows @imports up to four hops, resolves imports relative to the importing file, and checks paths against the Git index. It also catches unstaged instruction-file edits.
MIT licensed. Tested on macOS and Ubuntu under sh, dash and bash.
Built with