md-docs

md-docs is a skill for Claude Code, Codex from iliaal/whetstone. It costs 70 tokens per session (795 once invoked), scanned A, original, MIT.

A project-documentation skill for maintaining Markdown files such as README.md, AGENTS.md, and CONTRIBUTING.md.

In plain words
What is it for?
Creating or updating agent instructions, README files, contribution guides, and other project context documents.
Why use it?
It checks documentation against the actual codebase, helping prevent outdated paths, commands, and project guidance.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/iliaal/whetstone/md-docs
Any agent
npx skills add iliaal/whetstone --skill md-docs
Clone the repo
git clone --depth 1 https://github.com/iliaal/whetstone

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 md-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/iliaal/whetstone/md-docs.svg)](https://agentmods.dev/skills/iliaal/whetstone/md-docs)
Your own site
<a href="https://agentmods.dev/skills/iliaal/whetstone/md-docs"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/md-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00070 $0.00795
Opus 5 $0.00035 $0.00398
Sonnet 5 $0.00014 $0.00159
Haiku 4.5 $0.00007 $0.00080

Measured 5d ago against content hash c8595b3a80be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

md-docs 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 5d 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.

distillery/generated-skills/md-docs/SKILL.md · 103 lines

How it starts

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

Markdown Documentation

Manage project documentation by verifying against actual codebase state. Emphasize verification over blind generation — analyze structure, files, and patterns before writing.

Portability

AGENTS.md is the universal context file (works with Claude Code, Codex, Kilocode). If the project uses CLAUDE.md, treat it as a symlink to AGENTS.md or migrate content into AGENTS.md and create the symlink:

# If CLAUDE.md exists and AGENTS.md doesn't
mv CLAUDE.md AGENTS.md && ln -sf AGENTS.md CLAUDE.md

When this skill references "context files", it means AGENTS.md (and CLAUDE.md if present as symlink).

Workflows

Update Context Files

Verify and fix AGENTS.md against the actual codebase. See references/update-agents.md for the full verification workflow.

  1. Read existing AGENTS.md, extract verifiable claims (paths, commands, structure, tooling)
  2. Verify each claim against codebase (ls, cat package.json, cat pyproject.toml, etc.)
  3. Fix discrepancies: outdated paths, wrong commands, missing sections, stale structure
  4. Discover undocumented patterns (scripts, build tools, test frameworks not yet documented)
  5. Report changes

Update README

Generate or refresh README.md from project metadata and structure. See references/update-readme.md for section templates and language-specific patterns.

  1. Detect language/stack from config files (package.json, pyproject.toml, composer.json)
  2. Extract metadata: name, version, description, license, scripts
  3. If README exists and --preserve: keep custom sections (About, Features), regenerate standard sections (Install, Usage)
  4. Generate sections appropriate to project type (library vs application)
  5. Report changes

Update CONTRIBUTING

Update existing CONTRIBUTING.md only — never auto-create. See references/update-contributing.md.

Initialize Context

Create AGENTS.md from scratch for projects without documentation. See references/init-agents.md.

  1. Analyze project: language, framework, structure, build/test tools
  2. Generate terse, expert-to-expert context sections
  3. Write AGENTS.md, create CLAUDE.md symlink

Read the full file on GitHub · 103 lines

Files

What ships with it

5 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. 5d ago First seen · 103 lines · 70 tokens per session scan A c8595b3a80be

Subscribe to this mod's changes

md-docs is a skill published in the GitHub repository iliaal/whetstone (32 stars, last pushed 6d ago), licensed MIT. It adds 70 tokens to every session and 795 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-30.

Related

Other skills, from other repositories

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens

alive:world

The human doesn't know what to work on, or wants to see everything at once. They need the big picture — what's active, what's stale, what needs attention. Renders a live world view grouped by ALIVE domain, then routes to open, tidy, find, history, or map.

alivecontext/alive · 63 tokens

cco-task

Organize work by task, track tokens/cost per task, and keep a small patchable execution state that is re-injected after /compact (SKILL.state-style) — start a task, patch its state, list tasks, or mark the active one done. Pairs with /cco-pack to load minimal context per task.

egorfedorov/claude-context-optimizer · 70 tokens

cco-tools

Show what tools actually cost in tokens — learned per-tool averages from observed results, replacing the hardcoded MCP/Agent guesses.

egorfedorov/claude-context-optimizer · 27 tokens