/context-doctor:diagnose-agent-contextfrom context-doctor
Diagnose project or optional user-level instructions, memory, skills, commands, settings, and hooks against a behavior the user wants from an AI coding agent. Use when an agent repeatedly ignores a preference, follows an unexplained workflow, behaves differently across harnesses, appears affected by stale memory or AGENTS.md/CLAUDE.md artifacts, or when the user asks what context could be interfering with an outcome.
Ships in context-doctor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Perform a read-only, behavior-led diagnosis. Do not edit, delete, disable, or move any discovered artifact unless the user separately asks for a change after seeing the report.
Capture the target before investigating.
Choose scope.
Build the inventory.
node "${SKILL_DIR}/scripts/context-inventory.mjs" inventory --cwd <target-directory> --format json
Add --include-global only for the approved broader scope. If ${SKILL_DIR} is unavailable, resolve the directory containing this SKILL.md.
Investigate selectively.
Classify each finding.
Do not call a discovered file “active,” “loaded,” or causal without evidence. Do not infer that every harness reads every candidate location.
Return:
Say “no likely interference found in the examined scope” when appropriate. Do not manufacture a culprit.
This diagnosis is read-only and can run during planning. If planning a later remediation, keep inventory, diagnosis, proposed edits, and verification as distinct steps.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dheerg/context-doctor --plugin context-doctor