nyann:route-docs

A command that changes where project documentation is stored—local files, Obsidian, Notion, or a mixture—and regenerates the matching document scaffold. A scaffold is the initial set of folders and placeholder files for a documentation system.

In plain words
What is it for?
Use it when moving documentation to Obsidian or Notion, splitting document types between systems, or recreating missing local documentation files.
Why use it?
It lets a project change documentation tools or routing without manually rebuilding its structure. Existing local files are not overwritten.

Command

Part of the nyann plugin — 15 skills, 41 commands, 3 hooks shipped together

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/thettwe/nyann/route-docs
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Or install nyann, the plugin that ships this one along with the rest of its 15 skills, 41 commands, 3 hooks.

Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 632 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.00034 $0.00632
Opus 5 $0.00017 $0.00316
Sonnet 5 $0.00007 $0.00126
Haiku 4.5 $0.00003 $0.00063

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

Security

Grade A, and why

nyann:route-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 3d 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.

commands/route-docs.md · 68 lines

What it actually says

Plugin root: This is a Claude Code plugin, NOT a CLI tool. Do NOT search via which, npm list, pip list, or brew list. This file is at <plugin_root>/commands/. All scripts: <plugin_root>/bin/. Read the matching skills/*/SKILL.md for the full flow.

/nyann:route-docs

Composes bin/route-docs.sh (DocumentationPlan) and bin/scaffold-docs.sh (local file creation) for post-bootstrap doc routing changes.

When to invoke

  • Switching from local docs to Obsidian or Notion.
  • Changing per-type routing (e.g. PRDs to Notion, ADRs to Obsidian).
  • Regenerating the doc scaffold after restructuring.

Output

  1. A DocumentationPlan JSON showing each doc type and its target.
  2. Scaffold-docs creates missing local files (idempotent — existing files are never overwritten).
  3. MCP-routed targets are flagged for manual creation via the configured MCP server.

Storage strategies

Spec Strategy
all:local local
all:obsidian obsidian
all:notion notion
mixed per-type split

See also:

  • /nyann:gen-claudemd — refresh CLAUDE.md after rerouting
  • /nyann:bootstrap — initial project setup (includes routing)
  • /nyann:doctor — audit repo health including doc completeness
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. 3d ago First seen · 68 lines · 34 tokens per session scan A ae052bece15c

Subscribe to this mod's changes

nyann:route-docs is a command published in the GitHub repository thettwe/nyann (6 stars, last pushed 4d ago), licensed MIT. It adds 34 tokens to every session and 632 once invoked, about $0.0002 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-31.