Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add juanmhidalgo/claude-plugins --skill claude-md-best-practicesgit clone --depth 1 https://github.com/juanmhidalgo/claude-pluginsWrote 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.
[](https://agentmods.dev/skills/juanmhidalgo/claude-plugins/claude-md-best-practices)<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/claude-md-best-practices"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/claude-md-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/claude-md-best-practices"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/claude-md-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00955 |
| Opus 5.5 | $0.00017 | $0.00382 |
| Sonnet 5.5 | $0.00008 | $0.00191 |
| Haiku 4.5 | $0.00004 | $0.00096 |
Grade A, and why
claude-md-best-practices 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md Best Practices
Consolidated guide from Anthropic's official documentation.
Core Principles
<context_window_management> The context window is shared between:
- System prompt, conversation history, all CLAUDE.md files
- Commands, skills, hooks, and user's actual request
Golden rule: Only add what Claude doesn't already know. </context_window_management>
<conciseness_imperative> Target sizes:
- Small projects (< 10K LOC): 100-150 lines
- Medium projects (10-50K LOC): 150-250 lines
- Large projects (> 50K LOC): 200-300 lines
Red flags: > 400 lines, multiple 50+ line examples, repeated explanations </conciseness_imperative>
XML Tags for Structure
XML tags help separate reference data (directories, commands) from instructions.
Essential tags: <project_context>, <key_directories>, <standards>, <critical_rules>, <reference_docs>
For detailed XML patterns and examples, see patterns.md.
Memory System
<memory_hierarchy> Precedence order (higher overrides lower):
- Enterprise:
/etc/claude-code/CLAUDE.md - Project:
./CLAUDE.md - Project Rules:
./.claude/rules/*.md - User:
~/.claude/CLAUDE.md - Local:
./CLAUDE.local.md(gitignored) </memory_hierarchy>
File imports: Use @path/to/file syntax. Max depth 5 hops.
Modular rules: Use .claude/rules/*.md with optional paths: frontmatter for path-specific rules.
Essential Content
Stating Critical Rules
State each critical rule once, plainly, with its reason ("Run the test suite before committing — CI does not gate merges"). Put mechanically checkable rules in hooks instead of prose, and reserve emphasis for a single rule you have observed being skipped. See critical-rules.md.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -2 lines ce5745adf7c2
- 3mo ago First seen · 122 lines · 42 tokens per session scan A 3d0e76ec669a
claude-md-best-practices is a skill published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 16d ago), licensed MIT. It adds 42 tokens to every session and 955 once invoked, about $0.0002 per session on Opus 5.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.
claude-md-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-md-best-practicesjuanmhidalgo/claude-plugins | Skill | 8 | 16d ago | MIT | A | 42 | Claude Code |
| memory-systemkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 166 | Claude Code, Codex |
| tool-specificationkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 151 | Claude Code, Codex |
| agent-delegationkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 141 | Claude Code, Codex |
| code-engineeringkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 86 | Claude Code, Codex |
| context-managementkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 136 | Claude Code, Codex |
| conversation-flowkangarooking/system-prompt-skills | Skill | 231 | 7mo ago | MIT | A | 133 | Claude Code, Codex |