Claude Rules Doctor
Description
CLI that verifies `.claude/rules/*.md` `paths:` globs actually match files in your project.
Installation
claude install-skill https://github.com/nulone/claude-rules-doctor README
Catch dead Claude rules before they silently do nothing.
[](https://github.com/hesreallyhim/awesome-claude-code)
🩺 claude-rules-doctor
CLI that verifies `.claude/rules/*.md` `paths:` globs actually match files in your project.
Quickstart
# One-off
npx claude-rules-doctor check --root .
# Or install globally
npm install -g claude-rules-doctor
rules-doctor check --root .
Problem
Claude rules with `paths:` frontmatter can silently fail if:
- undefined
This tool scans all your rules and tells you which ones are "dead" (not applying to any files).
Usage
Check current project
rules-doctor check
CI mode (exit 1 if dead rules found)
rules-doctor check --ci
JSON output
rules-doctor check --json
Verbose mode (show matched files)
rules-doctor check --verbose
Check specific directory
rules-doctor check --root /path/to/project
Output
- undefined
WARNING triggers
A rule gets WARNING status when:
- undefined
Example output (test-suite/6-mixed)
$ rules-doctor check
🔍 Rules Doctor - Check Results
✅ OK /.claude/rules/valid.md
Matches 1 file(s)
✅ OK /.claude/rules/global.md
Global rule (no paths specified)
❌ DEAD /.claude/rules/dead.md
No files match the specified paths
Summary:
Total rules: 3
✅ OK: 2
⚠️ WARNING: 0
❌ DEAD: 1
⚠️ Found 1 dead rule(s). These rules won't apply to any files.
CI (GitHub Actions)
...
Related Skills
使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git community Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills)
Git community #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git community GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git community GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git community mcp-server-github
GitHub API integration for repos, issues, PRs.
Git community