claude-md-rules-creator

claude-md-rules-creator is a skill for Claude Code from anilcancakir/claude-code. It costs 60 tokens per session (9,584 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: when-to-use in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the ac plugin — 9 skills, 3 commands, 10 agents, 3 hooks, 1 MCP server 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 with agentmods
npx agentmods add skills/anilcancakir/claude-code/claude-md-rules-creator
Install

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.

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

Made for: Claude Code.

Or install ac, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 10 agents, 3 hooks, 1 MCP server.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,584 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.00060 $0.09584
Opus 5 $0.00030 $0.04792
Sonnet 5 $0.00012 $0.01917
Haiku 4.5 $0.00006 $0.00958

Measured 3d ago against content hash ae7bb5f9b221, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 3d 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 · 397 lines

How it starts

The opening of the file, as written. The whole thing — 397 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md and Rules Creator

You are about to write or edit a CLAUDE.md, CLAUDE.local.md, or .claude/rules/*.md file. At runtime these three shapes are the SAME content type: Claude Code's memory loader discovers them, concatenates them with a fixed MEMORY_INSTRUCTION_PROMPT prefix, and the API layer prepends the result as a single <system-reminder> user message before the conversation starts. The model treats them all the same; the file shape just controls when each loads and how a human maintains it.

This skill is the playbook for picking the right shape, choosing the right scope, writing content that actually changes behavior, splitting bloated files, using @path imports, and debugging "Claude is not following my CLAUDE.md". Target is Opus 5. Same rules work for Sonnet 5 at lower cost and for Haiku 4.5, which supports no effort parameter.

Three jobs, not one

Writing a CLAUDE.md or rule splits into three tasks. Conflating them is the most common authoring mistake.

  1. Surrounding skill shape. None. CLAUDE.md and .claude/rules/*.md are not skills, not commands, not agents. They are plain markdown files the memory loader picks up. No frontmatter fields apply except paths: (only on .claude/rules/*.md). Route through ac:skill-creator ONLY if you are wrapping CLAUDE.md authoring inside a custom slash command or skill.
  2. CLAUDE.md / rule shape. Where the file lives (managed / user-global / project-team / project-personal), what file name (CLAUDE.md / CLAUDE.local.md / .claude/rules/<topic>.md), paths: frontmatter for rules, @path imports, HTML comments. This file teaches that.
  3. Body content. The markdown text the model reads. This is a standing instruction set, a prompt at runtime. Route through ac:prompt-writer for prompt architecture, snippets, and Opus 5 tuning.

A great body in the wrong file shape (oversized, wrong scope, missing paths:, leaks personal preferences into a team file) never produces consistent behavior. A modest body in the right shape, sized below the adherence cliff, changes behavior every session.

Read the full file on GitHub · 397 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. 3d ago Changed · +6 lines · -102 tokens per session ae7bb5f9b221
  2. 8d 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 (3 stars, last pushed 3d ago), licensed MIT. It adds 60 tokens to every session and 9,584 once invoked, about $0.0003 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 skills, from other repositories

dream

Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase…

oprogramadorreal/optimus-claude · 85 tokens

masterplan-detect

Suggest /masterplan import only when legacy masterplan bundle state files (docs/masterplan/ /state.yml at schema 5.x) exist without a matching v8 run. Generic planning artifacts (PLAN.md, TODO.md, ROADMAP.md, design docs, PR task lists) are NOT importable — no /masterplan import can ingest them; mention them only as…

rasatpetabit/masterplan · 116 tokens

guide

Open the showreel visual setup guide, or walk the user through installing the plugin's dependencies. Use when the user asks how to set up showreel, install its dependencies, pre-warm the capture motor, install vhs, or says "showreel guide", "setup guide", "como instalar o showreel".

HeyRenan/showreel · 70 tokens

showreel

Use when the user wants to explain or document something visually — annotated screenshots, feature demos, flow GIFs, terminal recordings, before/after comparisons — or says "take a screenshot", "record this flow", "make a gif of", "show how this works", "annotate this page", "demo this feature", "grava um gif", "tira…

HeyRenan/showreel · 98 tokens

code-craft

Professional code craftsmanship standards, especially how to write comments the right way. Use whenever writing or editing code, when adding comments or docstrings, during code review, or when the user asks for clean, production-quality, well-documented code. Covers comment discipline (explain why not what)…

Ohswedd/praxis · 90 tokens

audit-evidence

What an auditor is allowed to assert, and what it must cite. Preloaded into every praxis review auditor through the skills frontmatter field, so the rule exists once. Use whenever you are reviewing, auditing, or verifying a change and about to state a verdict: it defines the difference between a finding and a guess…

Ohswedd/praxis · 95 tokens