nyann:route-docs

nyann:route-docs is a command for Claude Code from thettwe/nyann. It costs 34 tokens per session (632 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code.

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

Good fit Use it when moving documentation to Obsidian or Notion, splitting document types between systems, or recreating missing local documentation files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thettwe/nyann/route-docs
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.

Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Made for: Claude Code.

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

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 nyann:route-docs

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/thettwe/nyann/route-docs"><img src="https://agentmods.dev/badge/commands/thettwe/nyann/route-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00034 $0.00632
Opus 5.5 $0.00014 $0.00253
Sonnet 5.5 $0.00007 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 1mo ago against content hash ae052bece15c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 (7 stars, last pushed 5d ago), licensed MIT. It adds 34 tokens to every session and 632 once invoked, about $0.0001 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-08-31.