docs-plan

docs-plan is a skill for Claude Code, Codex from grimoire-rs/grimoire. It costs 166 tokens per session (2,805 once invoked), scanned A, original, Apache-2.0.

A documentation discovery and information-architecture workflow. It examines a project, inventories its pages and entry points, maps user needs to coverage, ranks documentation work, and records pages that may be removed; information architecture means how content is organised and found.

In plain words
What is it for?
Use it to plan documentation, organise a documentation site, identify missing coverage, rank tasks, and prepare page type and tier declarations.
Why use it?
It prevents documentation work from becoming a collection of unprioritised pages. The resulting artifact shows what to write, update, keep, or consider deleting before prose is changed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 checks/doc_declaration.py --seed --root docs.

Good fit Use it to plan documentation, organise a documentation site, identify missing coverage, rank tasks, and prepare page type and tier declarations.

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/grimoire-rs/grimoire
agentmods
npx agentmods add skills/grimoire-rs/grimoire/docs-plan

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/grimoire-rs/grimoire/docs-plan/github.svg)](https://agentmods.dev/skills/grimoire-rs/grimoire/docs-plan)
Your own site
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/docs-plan"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/docs-plan/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 docs-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/docs-plan"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/docs-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,805 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.00166 $0.02805
Opus 5.5 $0.00066 $0.01122
Sonnet 5.5 $0.00033 $0.00561
Haiku 4.5 $0.00017 $0.00281

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

Security

Grade A, and why

docs-plan 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 1mo 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.

.agents/skills/docs-plan/SKILL.md · 251 lines

How it starts

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

docs-plan

Discover what a project's documentation must cover, from the project's own evidence, and write the result to one durable artifact.

The artifact holds a ranked task list in three tiers and one user need per task. It also holds a typed inventory of every page, a coverage map, a delete list and an IA plan. Nothing here writes documentation prose.

Use this skill before writing or restructuring documentation. Use the docs-quality rules while writing individual pages.

Stop condition

Stop when the artifact file exists on disk and all of the following hold.

  • Every top-level subcommand or exported entry point appears either in the task list or in the explicit out-of-scope list.
  • Every shortlisted task carries a user need, a tier, a ranking signal, a mapped page or the literal missing, and an action.
  • Every existing page carries a doc_type value, proposed or already declared.
  • The delete list contains only pages that failed both delete signals.

Then stop. Do not write the pages. Do not apply the delete list without the maintainer saying so, because deleting documentation unattended is a different risk class from writing a page.

The evidence rule

Every claim in the artifact comes from the repository, its issue tracker, its logs, or a run you actually performed. Never from an existing docs page title, and never from a number you did not measure. Those two shortcuts are the way this procedure gets faked, and both have their own rule.

Procedure

Run the steps in order. Each names the output it must leave behind.

1. Declare the product shape

Read the docs config for one of cli, library, hosted-service or framework. Look in the mkdocs.yml extra table, a pyproject.toml tool table, or a docs.toml. If none is declared, infer one from the repository and write it into the config as part of this run.

Output: one shape value, recorded in the artifact header. Every first-steps threshold later branches on it. See references/tiers-and-types.md.

Read the full file on GitHub · 251 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. 1mo ago First seen · 251 lines · 166 tokens per session scan A f24e1aa34961

Subscribe to this mod's changes

docs-plan is a skill published in the GitHub repository grimoire-rs/grimoire (14 stars, last pushed today), licensed Apache-2.0. It adds 166 tokens to every session and 2,805 once invoked, about $0.0007 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-09-08.