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
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
- 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 ★
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
Kmp Doctor
Comprehensive project health doctor — heals docs sitemaps, git hooks, script permissions, and .agents/skills.l
Merge Check
docs/governance.md の「マージ前チェックリスト」を PR 番号 1 つに対して実行し、MERGE_OK / BLOCKED を判定する
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
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.
Commit Message Writer
Writes a Conventional Commits message from a git diff — tight subject line plus a why-focused body.
Related Agents
Catalog Generator
Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when com
Autorun Shell Reviewer
Reviews shell-script changes under scripts/autorun/ against the documented pitfalls that have caused false-don
Shell Pro
Writes or refactors shell scripts (bash or POSIX sh) matching the repo's portability posture, verifying with s