claude-md-rules-creator

claude-md-rules-creator is a skill for Claude Code from anilcancakir/claude-code. It costs 44 tokens per session (4,075 once invoked), scanned A, original, MIT.

A guide for creating and checking CLAUDE.md, CLAUDE.local.md, and path-specific rule files. These are Markdown instruction files that coding agents load as project guidance.

In plain words
What is it for?
Use it to decide where instructions belong, split oversized files, add path-based rules or imports, and diagnose guidance the agent ignores.
Why use it?
It helps choose the right file scope and structure so instructions are maintainable and are more likely to affect the agent’s behavior.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ├── One focused topic, always needed → ./.claude/rules/<topic>.md, no paths.

Part of the ac plugin — 6 skills, 10 hooks shipped together

Good fit Use it to decide where instructions belong, split oversized files, add path-based rules or imports, and diagnose guidance the agent ignores.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code
agentmods
npx agentmods add skills/anilcancakir/claude-code/claude-md-rules-creator

Made for: Claude Code.

Or install ac, the plugin that ships this one along with the rest of its 6 skills, 10 hooks.

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 claude-md-rules-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilcancakir/claude-code/claude-md-rules-creator/github.svg)](https://agentmods.dev/skills/anilcancakir/claude-code/claude-md-rules-creator)
Your own site
<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.

agentmods 80×15 button for claude-md-rules-creator

Your own site · 80×15
<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>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,075 The whole file, excluding the scripts and references it only reads on demand.
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.00044 $0.04075
Opus 5.5 $0.00018 $0.01630
Sonnet 5.5 $0.00009 $0.00815
Haiku 4.5 $0.00004 $0.00407

Measured 27d ago against content hash 9a9759f179c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/ac/skills/claude-md-rules-creator/SKILL.md · 148 lines

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

  1. 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.md 40 to 80 lines with a ceiling of 120, a rule file 15 to 50 with a ceiling of 80, CLAUDE.local.md 10 to 30. A file that loads at launch is paid for on every turn.
  2. 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.
  3. 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.md and lsp-wiring.md beside it.
  4. Specific and checkable. "Use 2-space indentation in TypeScript", "Run pnpm test before committing". Name the concrete behavior, not the category.
  5. 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.
  6. No emphasis caps. The loader already tells the model the file overrides defaults. State a rule once with its reason; shouting over-applies it.
  7. 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.md for 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 to main without asking; this overrides the default confirmation."). Protocol and the do-not-restate list: ${CLAUDE_SKILL_DIR}/references/layered-context.md.
  8. 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).
  9. Pointers, not imports, for documents. An @import loads the whole file every session, exactly like inlining it. Use @AGENTS.md for 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.
  10. 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).

Read the full file on GitHub · 148 lines

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. 27d ago Changed 9a9759f179c5
  2. 29d ago Changed 20615bcd8010
  3. 1mo ago Changed · -21 lines e6de15935967
  4. 1mo ago Changed · -235 lines 1cd4b6d41c43
  5. 1mo ago Changed 83df2853b397
  6. 1mo ago Changed e4ece516a74f
  7. 2mo ago Changed 8121e6d1373a
  8. 2mo ago Changed · +7 lines · -16 tokens per session 373c2abcc295
  9. 2mo ago Changed · +6 lines · -102 tokens per session ae7bb5f9b221
  10. 3mo ago First seen · 391 lines · 162 tokens per session scan A 91d5425343ae

Subscribe to this mod's changes

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.

Related

claude-md-rules-creator compared with skills from other repositories

claude-md-rules-creator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-md-rules-creatoranilcancakir/claude-codeSkill47d agoMITA44Claude Code
researcherbitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A38Claude Code
sheet-music-publisherbitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A36Claude Code
validate-albumbitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A33Claude Code
promote-ideabitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A50Claude Code
import-artbitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A32Claude Code
plagiarism-checkerbitwize-music-studio/claude-ai-music-skillsSkill7244d agoCC0-1.0A35Claude Code