ai-readme

ai-readme is a skill for Claude Code from Draco-Cheng/ai-readme-mcp. It costs 43 tokens per session (821 once invoked), scanned A, original, MIT.

A set of workflows for auditing, shortening, or restructuring AIREADME convention files. These files record project rules that AI agents need to follow.

In plain words
What is it for?
Use it to audit conventions, inspect context for a path, initialize files, fix them, or decide whether a rule should be recorded.
Why use it?
It helps decide which conventions are worth keeping and reduces unnecessary project context. Changes are routed through the project’s update tool rather than direct file edits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ai-readme plugin — 1 skill shipped together

Good fit Use it to audit conventions, inspect context for a path, initialize files, fix them, or decide whether a rule should be recorded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/draco-cheng/ai-readme-mcp/ai-readme
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 Draco-Cheng/ai-readme-mcp --skill ai-readme
Clone the repo
git clone --depth 1 https://github.com/Draco-Cheng/ai-readme-mcp

Made for: Claude Code.

Or install ai-readme, the plugin that ships this one along with the rest of its 1 skill.

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 ai-readme

README.md
[![agentmods](https://agentmods.dev/badge/skills/draco-cheng/ai-readme-mcp/ai-readme/github.svg)](https://agentmods.dev/skills/draco-cheng/ai-readme-mcp/ai-readme)
Your own site
<a href="https://agentmods.dev/skills/draco-cheng/ai-readme-mcp/ai-readme"><img src="https://agentmods.dev/badge/skills/draco-cheng/ai-readme-mcp/ai-readme/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 ai-readme

Your own site · 80×15
<a href="https://agentmods.dev/skills/draco-cheng/ai-readme-mcp/ai-readme"><img src="https://agentmods.dev/badge/skills/draco-cheng/ai-readme-mcp/ai-readme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 821 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.00043 $0.00821
Opus 5.5 $0.00017 $0.00328
Sonnet 5.5 $0.00009 $0.00164
Haiku 4.5 $0.00004 $0.00082

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

Security

Grade A, and why

ai-readme 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 4d 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.

claude-plugin/skills/ai-readme/SKILL.md · 87 lines

How it starts

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

AI README Manager

Usage: /ai-readme [audit|context <path>|init|fix]

This skill does not reimplement the MCP tools. It supplies the two things the tools cannot: the judgment call about what deserves recording, and the multi-step flows that chain several tools together.

Never write to an AI_README with Write/Edit — a PreToolUse hook denies it. Route every change through update_ai_readme.


Judgment: is this worth recording?

Record only when both hold:

  1. Used in 2+ files, and
  2. Non-obvious — an AI reading the code alone would get it wrong.
Record Skip
bcrypt direct, NOT passlib "We use async/await"
Tests via tsx --test, NOT vitest Directory structure
ESM imports need .js extensions Standard naming conventions
Shared temp dir breaks parallel tests Framework defaults

Keep the fact plus the why, but only when the why is what stops a future agent from reverting it. Drop the how — where it lives, what toggles it, the step-by-step mechanism. Those become a single See <file>. pointer.

One - bullet is one fact. A run-on chaining facts with ; or then is a wall; break it into bullets rather than growing it.


audit

  1. discover_ai_readmes(projectRoot) — list every file.
  2. validate_ai_readmes(projectRoot) — collect issues and token counts.
  3. Report a table: path, token count, budget status, issues.
  4. For each over-budget file, apply the decision tree below.
  5. Never fix without showing the user the plan first.

fix — over-budget decision tree

Check in this exact order; the dominant-section test wins over the section count.

  1. One section ≥40% of the file → SPLIT that section into its own AI_README in the relevant subdirectory.
  2. Otherwise, ≥6 sections → RESTRUCTURE: split the directory by feature. Needs explicit user confirmation, since it moves files.
  3. Otherwise → REWRITE the file more densely.

Try compress_ai_readme first — it strips filler with deterministic regex only. On already-tight content it cannot shrink further and will say so; that is the signal to rewrite rather than compress again.

Read the full file on GitHub · 87 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. 4d ago First seen · 87 lines · 43 tokens per session scan A 996c276803d2

Subscribe to this mod's changes

ai-readme is a skill published in the GitHub repository Draco-Cheng/ai-readme-mcp (3 stars, last pushed 5d ago), licensed MIT. It adds 43 tokens to every session and 821 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-11-28.

Related

ai-readme compared with skills from other repositories

ai-readme next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-readmeDraco-Cheng/ai-readme-mcpSkill35d agoMITA43Claude Code
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74k3d agoCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k4d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k13d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.2k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex