Repo Doctor — Security skill for Claude Code
Audit a repo's agent docs — AGENTS.md/CLAUDE.md topology, always-loaded token cost, CodeMap freshness and line-number accuracy, broken pointers, changelog drift.
How to install Repo Doctor
Installs to ~/.claude/commands/lelandg-.claude_code-repo-doctor.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/lelandg/.claude_code/HEAD/.claude/commands/repo-doctor.md -o ~/.claude/commands/lelandg-.claude_code-repo-doctor.md Restart Claude Code, or start a new session, for it to be picked up.
What Repo Doctor does
description: Audit a repo's agent docs — AGENTS.md/CLAUDE.md topology, always-loaded token cost, CodeMap freshness and line-number accuracy, broken pointers, changelog drift. Read-only; offers fixes in dependency order. argument-hint: [path | all] [--fix]
Invoke the `repo-doctor` skill.
Scope from `$ARGUMENTS`:
- empty → audit the current repo.
- a path → audit that repository.
all→ audit every repository under your projects root, oneaudit.pyrun each, then present a single t
Alternatives in Security
- Skill Audit — Audit codebases for quality, consistency, and broken patterns — use for pre-release or tech debt review 2.8k ★
- Cross-Pollinate Hex MCP Servers — Diff-driven audit: find real transferable changes across hex-line-mcp, hex-ssh-mcp, hex-graph-mcp 238 ★
- Commit Hook Checklist — Audit commit-hook automation as gates against AI slop and broken commits (Node.js, Go, polyglot) 168 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Clean Context
Keep Claude Code's always-loaded context lean: deterministic memory guard-rail distiller + skills audit. Never
Knowledge Audit
Audit CLAUDE.md, .claude/rules and knowledge/ against the 3-tier budget; propose moves to keep always-loaded c
Claudemd Analyze
Read-only spec ↔ implementation coherence audit. Cross-references core ↔ extended §EXT refs, Sizing line accur
Skill Freshness
Audit the agent skills on your machine (Claude Code, Codex, Cursor, Gemini, Copilot, OpenCode...): find broken
Sf Audit
Audit a Snowflake account — RBAC hygiene, warehouse topology, credit waste, recoverability, unmasked PII
OSS Audit
Audit the repo for open-source release across code quality, architecture, tech-stack hygiene, and GitHub colla
Related Agents
Source Doctor
Diagnoses a job source that returns 0 offers, errors, or suddenly far fewer offers than usual, and repairs its
Devex Architect
Developer-experience architect owning the consumer install topology, doctor diagnostics, error-message shape,
Data Quality Auditor
Audits datasets and pipelines for the silent failures — grain violations, join fan-out, freshness gaps, reconc