Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add anilcancakir/claude-code-plugin/plugin install acWrote 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/commands/anilcancakir/claude-code-plugin/init-claude-md)<a href="https://agentmods.dev/commands/anilcancakir/claude-code-plugin/init-claude-md"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugin/init-claude-md/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/commands/anilcancakir/claude-code-plugin/init-claude-md"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugin/init-claude-md.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.00022 | $0.03547 |
| Opus 5.5 | $0.00009 | $0.01419 |
| Sonnet 5.5 | $0.00004 | $0.00709 |
| Haiku 4.5 | $0.00002 | $0.00355 |
Grade B, and why
init-claude-md scanned grade B with 1 finding 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 3mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
find . -name "SKILL.md" -path "*/.claude/*" -maxdepth 4 2>/dev/null How it starts
The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Init Project CLAUDE.md
Generate a project-level ./CLAUDE.md for the active codebase. Produces ONLY ./CLAUDE.md and optionally .claude/settings.json hooks. Path-scoped conventions → suggest /ac:init-rules.
Authoring knowledge: Section patterns, quality scoring, dedup boundaries, and anti-slop rules live in the claude-md-writer skill. Read it before writing any section content. The template at ${CLAUDE_PLUGIN_ROOT}/references/project-claude-md-template.md provides structural guidance.
Section Ownership
| Type | Sections | Update Behavior |
|---|---|---|
| Auto-detected | Commands, Architecture, Key Files, Testing, Skills & Extensions | Re-discovered and updated on every run |
| User-managed | Mission/description, Code Style (custom conventions), Gotchas (manually added) | Preserved across updates, merged with new findings |
Modes: update → re-discover, preserve user-managed, skip interview. enhance or no arg → full discovery + interview, pre-fill from existing.
Phase 1: Discovery
Auto-discover project structure, commands, patterns, and existing context. Use Glob, Grep, and Read directly in the main context — no subagents. Source code findings always take priority over documentation claims.
-
Commands + Build + Dev Tools — Glob for
package.json,composer.json,Makefile,Cargo.toml,pyproject.toml,Dockerfile,.github/workflows/*.yml,.gitlab-ci.yml. Read each to extract build/test/lint/dev/format/deploy commands. Glob for linter/formatter configs (.eslintrc*,phpstan.neon,analysis_options.yaml,biome.json,.stylelintrc*,pylintrc,.golangci.yml,.prettierrc*,.editorconfig,rustfmt.toml) and test runners (phpunit.xml,jest.config.*,vitest.config.*,pytest.ini). Assemble: commands table + dev tools table. Priority: actual scripts in config files over README claims. -
Architecture + Entry Points — Run
lsat depth 2, skippingvendor/,node_modules/,dist/,build/. Identify entry points (main.*,index.*, bootstrap files) via Glob. Note non-obvious config files. Detect monorepo patterns (workspace roots,packages/,apps/). Assemble: annotated structure tree + key files with purpose.
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.
- 3mo ago First seen · 263 lines · 22 tokens per session scan B 783d39fcc177
init-claude-md is a command published in the GitHub repository anilcancakir/claude-code-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 22 tokens to every session and 3,547 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
init-claude-md compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| init-claude-mdanilcancakir/claude-code-plugin | Command | 2 | 7mo ago | MIT | B | 22 | Claude Code |
| perf-difficult-conversationfrankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 93 | Claude Code |
| culture-onboarding-90frankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 101 | Claude Code |
| perf-coaching-protocolfrankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 83 | Claude Code |
| design-regimenfrankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 60 | Claude Code |
| hire-calibratefrankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 86 | Claude Code |
| reclaim-knowledgefrankxai/Starlight-Intelligence-System | Command | 10 | 24d ago | MIT | A | 58 | Claude Code |