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
- FastAPI Review — Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu 243.5k ★
- 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 ★
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
Claudemd Analyze
Read-only spec ↔ implementation coherence audit. Cross-references core ↔ extended §EXT refs, Sizing line accur
OSS Audit
Audit the repo for open-source release across code quality, architecture, tech-stack hygiene, and GitHub colla
Doubleblind
Three layers that cannot see each other's mistakes: re-derive every number in prose from a file you committed,
Ssn
A System Security Number for every AI agent — its own Unix identity (private $HOME, workspace, scrubbed env, n
Code Review Feature
Runs the security and quality reviewer subagents in parallel over a Spendly feature and produces a unified rep
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,
Doc Quality Analyzer
Use this agent to analyze documentation for freshness, accuracy, completeness,