Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/anilcancakir/claude-codenpx agentmods add skills/anilcancakir/claude-code/claude-md-rules-creatorWrote 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/anilcancakir/claude-code/claude-md-rules-creator)<a href="https://agentmods.dev/skills/anilcancakir/claude-code/claude-md-rules-creator"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/claude-md-rules-creator/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/anilcancakir/claude-code/claude-md-rules-creator"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/claude-md-rules-creator.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.00044 | $0.04075 |
| Opus 5.5 | $0.00018 | $0.01630 |
| Sonnet 5.5 | $0.00009 | $0.00815 |
| Haiku 4.5 | $0.00004 | $0.00407 |
Grade A, and why
claude-md-rules-creator 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 27d 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 — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md and Rules Creator
CLAUDE.md, CLAUDE.local.md and .claude/rules/*.md are one content type at runtime. The memory loader concatenates them behind a prefix that says they override the model's defaults, and they arrive in the first user message as a <system-reminder> block, never in system. The file shape only decides when a file loads and how a human maintains it.
This skill writes the shortest file set that changes behavior on Opus 5.5 and Sonnet 5.5, and debugs "Claude is not following my CLAUDE.md". The prose inside a file is a prompt: route its phrasing through ac:prompt-writer. A multi-step procedure or a user-typed /name action is a skill (ac:skill-creator), a custom worker is an agent (ac:agent-creator), a why-and-scope document is ac:project-md-writer, an architecture document is ac:architecture-md-writer, UI tokens and visual direction are ac:frontend-design (a paths: rule over the view files can point at its DESIGN.md), and a feature's requirements are a PRD from /ac:product, never CLAUDE.md lines. A whole-project setup or audit, existing files and auto-memory included, is /ac:init-project.
Core principles
- The shortest file that changes behavior. Keep a line only if the next agent would do something wrong without it and could not learn it from the manifest, README or code in one read. Budgets (tighter than Anthropic's 200 lines per file, since the lean 5.5 host prompt trusts the model): root
CLAUDE.md40 to 80 lines with a ceiling of 120, a rule file 15 to 50 with a ceiling of 80,CLAUDE.local.md10 to 30. A file that loads at launch is paid for on every turn. - Say it once. Each fact has one home across every layer: managed, user, project, local, rules, AGENTS.md, README, settings. Grep the loaded layers before writing, then skip, edit in place or move. A rule file never repeats the root file, and the root file never lists or summarises the rule files: Claude Code loads an unscoped rule at launch and a path-scoped one when a matching file is read or edited, so an index of
.claude/rules/(a table, a list, a "see rules/x.md" pointer per rule) is the same content paid for again on every turn. - Deterministic behavior goes in settings, not prose. What must hold on every edit (format, lint, secret files unreadable, routine commands without a prompt, a language server for navigation) is a hook, permission rule or plugin entry in
settings.json. A CLAUDE.md line asking for it is a request; keep in the file only the residue that judgment cannot enforce. Which key goes in which file:${CLAUDE_SKILL_DIR}/references/settings-wiring.md; wiring:hook-wiring.mdandlsp-wiring.mdbeside it. - Specific and checkable. "Use 2-space indentation in TypeScript", "Run
pnpm testbefore committing". Name the concrete behavior, not the category. - True now, and cold. No aspirations ("we aim for"), no personas, no file-by-file tours, no language defaults, no secrets, no "as we discussed", no dated narratives or incident logs: a rule states the invariant a past incident taught, not the incident. A run that learns something proposes the one line to the user; it never appends a section on its own.
- No emphasis caps. The loader already tells the model the file overrides defaults. State a rule once with its reason; shouting over-applies it.
- Audit the stack before writing. The file joins the host system prompt and every memory layer; run Workflow step 1 and check
${CLAUDE_SKILL_DIR}/references/claude-code-builtin-prompts.mdfor the reader's model shape. The lean prompt (Opus 5.5, Sonnet 5.5, Haiku 5.5) lacks "no comments unless non-obvious", "no speculative abstraction" and "no compatibility shims"; the classic prompt (Sonnet 5 and earlier) carries them. Contradict a host line only as a stated override ("Push tomainwithout asking; this overrides the default confirmation."). Protocol and the do-not-restate list:${CLAUDE_SKILL_DIR}/references/layered-context.md. - Scope to the audience. If the team gets value from a rule it belongs in the project; if only you do, in
CLAUDE.local.md(this project) or~/.claude/CLAUDE.md(all projects). - Pointers, not imports, for documents. An
@importloads the whole file every session, exactly like inlining it. Use@AGENTS.mdfor the one file shared with other tools. For a PROJECT.md, ARCHITECTURE.md, DESIGN.md or any reference document, write one line with a trigger ("Before changing structure, read ARCHITECTURE.md") and let Claude read it on demand. - Write for Opus 5.5 and Sonnet 5.5. Skip lines the model acts on without being told, and "think carefully" lines. Sonnet 5.5 adds tests, docs and small files nobody asked for and checks in early at low and medium effort, so a project that wants otherwise says so in one line each. The Agent tool description already says "When in doubt, don't spawn"; add a delegation limit only if the user wants a stricter one. The block is re-sent whole to every subagent unless it sets
omitClaudeMd: true(managed files, and nested files and path-scoped rules on a matching access, still load).
What ships with it
16 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.
- assets/CLAUDE.local.template.md 1.5 KB
- assets/CLAUDE.template.md 3.6 KB
- assets/global-CLAUDE.template.md 2.4 KB
- assets/rule.template.md 2.8 KB
- references/anti-patterns.md 19 KB
- references/claude-code-builtin-prompts.md 39 KB
- references/content-rules.md 19 KB
- references/examples.md 12 KB
- references/hook-wiring.md 13 KB
- references/imports-and-paths.md 14 KB
- references/layered-context.md 22 KB
- references/loader-and-injection.md 20 KB
- references/lsp-wiring.md 8.1 KB
- references/rules-writing.md 19 KB
- references/scopes.md 14 KB
- references/settings-wiring.md 5.8 KB
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.
- 27d ago Changed 9a9759f179c5
- 29d ago Changed 20615bcd8010
- 1mo ago Changed · -21 lines e6de15935967
- 1mo ago Changed · -235 lines 1cd4b6d41c43
- 1mo ago Changed 83df2853b397
- 1mo ago Changed e4ece516a74f
- 2mo ago Changed 8121e6d1373a
- 2mo ago Changed · +7 lines · -16 tokens per session 373c2abcc295
- 2mo ago Changed · +6 lines · -102 tokens per session ae7bb5f9b221
- 3mo ago First seen · 391 lines · 162 tokens per session scan A 91d5425343ae
claude-md-rules-creator is a skill published in the GitHub repository anilcancakir/claude-code (4 stars, last pushed 7d ago), licensed MIT. It adds 44 tokens to every session and 4,075 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-rules-creator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-md-rules-creatoranilcancakir/claude-code | Skill | 4 | 7d ago | MIT | A | 44 | Claude Code |
| researcherbitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 38 | Claude Code |
| sheet-music-publisherbitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 36 | Claude Code |
| validate-albumbitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 33 | Claude Code |
| promote-ideabitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 50 | Claude Code |
| import-artbitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 32 | Claude Code |
| plagiarism-checkerbitwize-music-studio/claude-ai-music-skills | Skill | 724 | 4d ago | CC0-1.0 | A | 35 | Claude Code |