authoring-claude-md

authoring-claude-md is a skill for Claude Code, Codex from sammcj/agentic-coding. It costs 33 tokens per session (2,807 once invoked), scanned A, original, Apache-2.0.

Guidance for creating and maintaining CLAUDE.md and .claude/rules files, which store project-specific instructions and context for AI coding agents. It focuses on non-obvious conventions, architecture decisions, and recurring problems.

In plain words
What is it for?
Use it to document codebase conventions, architectural patterns, known pitfalls, testing practices, and path-specific instructions.
Why use it?
It helps agents follow important project rules without repeatedly rediscovering or asking about them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to document codebase conventions, architectural patterns, known pitfalls, testing practices, and path-specific instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/authoring-claude-md
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 sammcj/agentic-coding --skill authoring-claude-md
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code, Codex.

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 authoring-claude-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/authoring-claude-md/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/authoring-claude-md)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/authoring-claude-md"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/authoring-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.

agentmods 80×15 button for authoring-claude-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/authoring-claude-md"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/authoring-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,807 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 8
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00033 $0.02807
Opus 5.5 $0.00013 $0.01123
Sonnet 5.5 $0.00007 $0.00561
Haiku 4.5 $0.00003 $0.00281

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

Security

Grade A, and why

authoring-claude-md 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 10d 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.

Skills/authoring-claude-md/SKILL.md · 209 lines

How it starts

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

CLAUDE.md, AGENTS.md and Rules Authoring

Create effective CLAUDE.md, AGENTS.md and .claude/rules/ files that serve as project-specific memory for AI coding agents. Guidance for CLAUDE.md also applies to AGENTS.md and rule files unless stated otherwise: signal over noise, actionable context, no obvious information.

Purpose

CLAUDE.md files and rule files provide AI agents with:

  • Non-obvious conventions, architectural patterns and gotchas
  • Confirmed solutions to recurring issues
  • Project-specific context not found in standard documentation
  • Path-scoped instructions that only load when relevant files are touched

Not for: obvious patterns, duplicating documentation, or generic coding advice.

Core Principles

  • Signal over noise: Every sentence must add non-obvious value. If an AI agent could infer it from reading the codebase, omit it.
  • Actionable context: Focus on "what to do" and "why it matters", not descriptions of what exists.
  • Solve real friction, not theoretical concerns: Add to CLAUDE.md based on actual problems encountered, not hypothetical scenarios. If you repeatedly explain the same thing to Claude, document it. If you haven't hit the problem yet, don't pre-emptively solve it.

Structure

Use headings for clear organisation. Common sections: Commands, Conventions, Gotchas. Use 2-4 sections and only include what adds value.

Where Each Instruction Belongs

  • Every session needs it: root CLAUDE.md, or root AGENTS.md if the repo uses it
  • One directory, maintained by its owners: nested CLAUDE.md, or nested AGENTS.md if the repo uses it
  • One file type, or scattered paths: path-scoped rule
  • Multi-step procedure, or reference only some tasks need: skill
  • Must hold every time without exception: hook or permission deny rule. CLAUDE.md is guidance the agent can judge not to apply
  • Personal, all projects: ~/.claude/CLAUDE.md or ~/.claude/rules/
  • Personal, one project: gitignored CLAUDE.local.md (see AGENTS.md below first)

Read the full file on GitHub · 209 lines

Files

What ships with it

2 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.

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. 10d ago Changed · -11 lines · -60 tokens per session 48f463a1f3cd
  2. 3mo ago First seen · 220 lines · 93 tokens per session scan A 6cc8f9cb56c9

Subscribe to this mod's changes

authoring-claude-md is a skill published in the GitHub repository sammcj/agentic-coding (174 stars, last pushed 3d ago), licensed Apache-2.0. It adds 33 tokens to every session and 2,807 once invoked, about $0.0001 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-30.

Related

authoring-claude-md compared with skills from other repositories

authoring-claude-md next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
authoring-claude-mdsammcj/agentic-codingSkill1743d agoApache-2.0A33Claude Code, Codex
ap-memoryagentproto/tsSkill11todayApache-2.0A81Claude Code, Codex
factsav/factsSkill2086mo agononeC49Claude Code, Codex
rememberyonatangross/orchestkitSkill315todayMITA66Claude Code
wisdom-keepSnowflake-Labs/cocoplusSkill73028d agoMITA30Claude Code
diarySnowflake-Labs/cocoplusSkill73028d agoMITA12Claude Code, Codex
browseragentproto/tsSkill11todayApache-2.0A65Claude Code, Codex