docs

A collection of commands for creating, updating, checking, and improving project documentation. Documentation includes written explanations such as guides, reference pages, and setup instructions.

In plain words
What is it for?
Use it to update documentation after code changes, check links and navigation, fix Markdown formatting, detect stale pages, update a changelog, or preview changes before applying them.
Why use it?
It helps you find outdated pages, broken links, navigation problems, formatting issues, and documentation that no longer matches the code.

Command

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 commands/data-wise/craft/docs
Clone the repo
git clone --depth 1 https://github.com/Data-Wise/craft
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,247 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.00000 $0.02247
Opus 5 $0.00000 $0.01123
Sonnet 5 $0.00000 $0.00449
Haiku 4.5 $0.00000 $0.00225

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

Security

Grade A, and why

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

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.

docs/commands/docs.md · 230 lines

How it starts

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

Documentation Commands

TL;DR (30 seconds)

  • What: 25 smart documentation commands from generation to ADHD-friendly enhancement
  • Why: Automate docs updates, validation, and website optimization with one command
  • How: Use /craft:docs:update --interactive for category-level prompts (NEW v2.7.0)
  • Next: Try /craft:docs:update --interactive --dry-run to preview what would change

Smart documentation generation, validation, and enhancement - 48 commands.

Which Docs Command for What

Scenario Command What It Does
"Update everything after changes" /craft:docs:update Full cycle: detect → generate → validate → changelog
"What docs need updating?" /folio:docs:sync Detection only — reports what's stale
"Are my docs valid?" /folio:docs:check Validates links + nav + staleness + mermaid, auto-fixes
"Fix markdown formatting" /folio:docs:lint Markdownlint with auto-fix
"Check only broken links" /folio:docs:check-links Internal link validation with .linkcheck-ignore
"Update CLAUDE.md" claude-md-lifecycle skill Sync CLAUDE.md with project state (folded into a skill, v4 consolidation)
"Update changelog" /craft:docs:changelog Generate entries from git commits
"Add page to nav" /folio:docs:nav-update Update mkdocs.yml navigation

Decision flow:

  1. After writing code/craft:docs:update (does everything)
  2. Before committing/folio:docs:check (validates)
  3. PR merged to dev/craft:docs:update --post-merge (auto-fix pipeline)
  4. Just want to check/folio:docs:sync (detection only, no changes)

Super Commands

/craft:docs:update

Smart-Full cycle with Interactive Mode (v2.7.0): 9-category detection with category-level prompts

/craft:docs:update --interactive              # Category-level prompts (9 categories)
/craft:docs:update --category=version_refs    # Update only version references
/craft:docs:update --interactive --dry-run    # Preview without applying changes
/craft:docs:update --auto-yes                 # Batch mode (no prompts)

Read the full file on GitHub · 230 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. yesterday First seen · 230 lines · 0 tokens per session scan A c5ea97dd947e

Subscribe to this mod's changes

docs is a command published in the GitHub repository Data-Wise/craft (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,247 tokens. 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.