Check Docs — Git skill for Claude Code
A 39-line shell script that stops a commit when CLAUDE.md or AGENTS.md mentions a file you deleted.
How to install Check Docs
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ipaulsmith/check-docs and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Check Docs does
A 39-line shell script that stops a commit when CLAUDE.md or AGENTS.md mentions a file you deleted.
Alternatives in Git
- 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
- Destructive Command Guard — The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by ag 869 ★
README
A 39-line shell script that stops a commit
when CLAUDE.md or AGENTS.md names a deleted file.
Plain sh · standard Unix tools
For projects that use CLAUDE.md or AGENTS.md
Made by Pavel Rabtsevich · @p_rabtsevich on X
Install · Example · What it checks · Limitations
Why this exists
CLAUDE.md and AGENTS.md are the files your coding agent reads before it works in your repo. They tell it where things live and how to run them.
When you delete or move a file, the build and the tests catch the code that still uses it. Nothing shows you the line in CLAUDE.md that still points to it. The agent keeps reading that line and does what it says.
`check-docs` covers the mechanical part of that gap. Before every commit it reads those two files, looks for paths and names that no longer exist, and stops the commit until you fix the line.
Install
Open Claude Code, Codex or Cursor in your repo and paste this whole block into the chat. The agent saves the script, adds it to the pre-commit setup you already have without overwriting anything, and runs it once.
Save the script at the end of this message as check-docs.sh in the repo root.
Add `sh check-docs.sh` to the repo's existing pre-commit setup.
If the repo already uses Husky, pre-c
Related Skills
Linux Airlock
Stops sketchy AUR packages, themes and github repos at the door, before they get anywhere near your linux Comp
Kmp Doctor
Comprehensive project health doctor — heals docs sitemaps, git hooks, script permissions, and .agents/skills.l
Sync Global
PHẢI dùng khi: vừa sửa agent/skill/template/script dùng chung (bất kỳ file dưới ~/.claude/agents, commands, sh
Merge Check
docs/governance.md の「マージ前チェックリスト」を PR 番号 1 つに対して実行し、MERGE_OK / BLOCKED を判定する
Novgraph
A live knowledge graph of your codebase for coding agents: commit intent, co-change coupling, ranked blast rad
GitCommit
You are a commit message generator. Read the provided git diff and write a concise imperative commit message.
Related Agents
Catalog Generator
Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when com
Mr Consistency
Check that a GitLab MR is internally consistent after a push — description matches the actual diff, commit mes
Converger
architect-flow Phase 5 only — read-only check that the code delivers every line of docs/plans/ .md; answers CO