agent-context-doctor: Instructions file for Claude Code

CLAUDE.md

agent-context-doctor CLAUDE.md is an instructions file for Claude Code from lamguo/agent-context-doctor. It costs 425 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions gives the coding assistant project-specific information, including the project overview, setup commands, development commands, testing instructions, and coding rules.

In plain words
What is it for?
Use it to guide Claude Code while working on the Agent Context Doctor Python command-line tool, including running tests, checking repository context, and following the project's development guidelines.
Why use it?
It reduces incorrect assumptions by supplying the repository context Claude Code needs. It keeps development commands and project conventions in one place.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is lamguo/agent-context-doctor's own configuration. It tells Claude Code how to work on agent-context-doctor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-context-doctor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lamguo/agent-context-doctor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lamguo/agent-context-doctor/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/lamguo/agent-context-doctor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-context-doctor CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lamguo/agent-context-doctor/claude-md.svg)](https://agentmods.dev/instructions/lamguo/agent-context-doctor/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/lamguo/agent-context-doctor/claude-md"><img src="https://agentmods.dev/badge/instructions/lamguo/agent-context-doctor/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 425 This file is loaded in full into every session.
When invoked 425 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00425 $0.00425
Opus 5 $0.00212 $0.00212
Sonnet 5 $0.00085 $0.00085
Haiku 4.5 $0.00042 $0.00042

Measured 6d ago against content hash 676000d46ecf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

agent-context-doctor CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

CLAUDE.md · 80 lines

What it actually says

CLAUDE.md

This file contains project context for Claude Code.

Generated sections are managed by agent-context-doctor.

AGENTS.md

Project Overview

Agent Context Doctor is a Python CLI that audits, generates, syncs, repairs, and packages repository context files for AI coding agents.

Setup Commands

python -m pip install -e .[dev]

Development Commands

pytest
agentctx scan
agentctx verify --min-score 90
agentctx sync --check
agentctx pack --stdout
agentctx badge
agentctx doctor

Project Structure

  • src/agentctx/ - source code for the CLI package.
  • tests/ - pytest test suite.
  • docs/ - additional documentation.
  • .github/workflows/ci.yml - GitHub Actions workflow.

Coding Guidelines

  • Keep the package zero-runtime-dependency unless there is a strong reason to add one.
  • Prefer small, focused functions over large command handlers.
  • Keep CLI output stable and readable.
  • Keep JSON output stable and script-friendly.
  • Keep scan human-oriented and verify CI-oriented.
  • Keep agentctx doctor --fix safe: no deletion and no overwriting user-authored content outside markers.
  • Avoid network calls in runtime code.

Testing Instructions

Run the full test suite before completing changes:

pytest

Also run a CLI smoke test:

agentctx verify --min-score 90
agentctx sync --check

Security Notes

  • Do not collect or upload repository contents.
  • Do not commit secrets, API keys, credentials, or private generated files.
  • Treat all scanned file contents as local-only data.

Handoff Notes

Before ending a long session, update HANDOFF.md or run:

agentctx handoff
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 80 lines · 425 tokens per session scan A 676000d46ecf

Subscribe to this mod's changes

agent-context-doctor CLAUDE.md is an instructions file published in the GitHub repository lamguo/agent-context-doctor (1 stars, last pushed 3mo ago), licensed MIT. It adds 425 tokens to every session, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

agent-rulescope tests.instructions.md

Instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 38 tokens

agent-rulescope copilot-instructions.md

Copilot instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 25 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens