Agent Context Doctor — Security skill for Claude Code
Audit agent context files like AGENTS.md, CLAUDE.md, .cursor/rules/.mdc, .github/copilot-instructions.md, and prompt docs for quality, safety, contradictions, and repo alignment.
How to install Agent Context Doctor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open alipajand/agent-context-doctor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Context Doctor does
Audit agent context files like AGENTS.md, CLAUDE.md, .cursor/rules/*.mdc, .github/copilot-instructions.md, and prompt docs for quality, safety, contradictions, and repo alignment.
Alternatives in Security
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Airsec — Find Security Issues in your code by using coding CLIs like Claude, Codex & CommandCode 162 ★
- Agent Retire — Gracefully retire an LLM agent from the workforce 83 ★
README
agent-context-doctor
`agent-context-doctor` checks whether your agent instruction files are specific, safe, and usable. It catches placeholder content, risky language, contradictions, stale commands, and missing validation guidance before those instructions guide an AI coding agent.
What it is
A small, deterministic CLI (`acd`) that reads the instruction files in your repository — `AGENTS.md`, `CLAUDE.md`, Cursor rules, Copilot instructions, and similar — and reports quality and safety problems with a severity rating and a 0–100 score.
It runs locally, makes no network calls, and is meant to complement human review, not replace it.
Why it exists
AI coding agents follow whatever their instruction files tell them. A file full of `TODO` placeholders, a stray "skip tests if they're slow," or two files that contradict each other will quietly steer an agent toward unsafe or low-quality changes — and nobody notices until the diff lands.
`acd` makes those problems visible in CI or on your machine, deterministically, so you can fix the instructions before they cause trouble.
What it checks
| Check | Looks for |
|---|---|
| Presence | Whether any agent context file exists at all |
| Placeholder content | Unfilled markers like TODO, TBD, lorem ipsum, or blank scope sections |
| Risky language | Directives like "skip tests", "bypass auth", or "commit secrets" |
| Safety boundaries | Whether primary files include ask-before / forbidden-change language for auth, billing, database, and production |
| Validation commands | Whether instructions tell agents to run tests, lint, or typecheck |
| Final reporting | Whether instructions describe what to include in a final summary |
| Command alignment | Commands referenced in instructions that don't match package.json scripts |
| Contradictions | Conflicting directives across two or more files |
Severity and score
| Level | Meaning |
|---|---|
high |
Related Skills
Agent Context Bench
Audit AGENTS.md, CLAUDE.md, Cursor and Copilot instructions; measure token cost and benchmark AI coding-agent
Prompt Craft
Write or audit Claude Code SKILL.md files, CLAUDE.md instructions, and agent prompt templates — CC-specific pa
Ctxinit
Claude Code skill that scaffolds a single-source context/ knowledge hub — engineering rules, security law, com
Information Security For Vibecoded Apps
An autonomous Application Security (AppSec) prompt and skill module for AI coding assistants (Antigravity, Cur
Security Actions
GitHub Actions for AI agent and supply chain security checks: audit agent configs (Claude Code settings, MCP s
Session Audit
Self-audit pass over CLAUDE.md rules and memory files. Surfaces stale rules, undocumented workarounds, and con
Related Agents
Prompt Polisher
Analyzes AI prompt files (.claude/agents/.md, .claude/skills//.md, .agents/skills//.md, CLAUDE.md, AGENTS.md,
Cursor Spec Reviewer
Use this agent when you need to verify that converted Cursor rule files (.mdc) produced by Caruso strictly con
Claude Code Config Expert
Claude Code configuration expert. Use proactively for authoring/reviewing rules (.mdc), skills (SKILL.md), com