nyann:gen-claudemd

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

A command that refreshes the nyann-managed section of Claude Code’s CLAUDE.md project instructions using the current project profile and detected tools.

In plain words
What is it for?
Use it after changing a project profile, adding documentation, reorganising workspaces, or migrating a profile.
Why use it?
It keeps generated instructions up to date without overwriting the parts of CLAUDE.md you wrote yourself.

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 after changing a project profile, adding documentation, reorganising workspaces, or migrating a profile.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thettwe/nyann/gen-claudemd
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:gen-claudemd

README.md
[![agentmods](https://agentmods.dev/badge/commands/thettwe/nyann/gen-claudemd.svg)](https://agentmods.dev/commands/thettwe/nyann/gen-claudemd)
Your own site
<a href="https://agentmods.dev/commands/thettwe/nyann/gen-claudemd"><img src="https://agentmods.dev/badge/commands/thettwe/nyann/gen-claudemd.svg" alt="Measured on agentmods" 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 453 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.00453
Opus 5 $0.00017 $0.00227
Sonnet 5 $0.00007 $0.00091
Haiku 4.5 $0.00003 $0.00045

Measured 8d ago against content hash 0bdd478f8ad7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

nyann:gen-claudemd 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 8d 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/gen-claudemd.md · 49 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:gen-claudemd

Wraps bin/gen-claudemd.sh. Regenerates only the <!-- nyann:start --> / <!-- nyann:end --> block; user content outside markers is preserved verbatim.

When to invoke

  • Profile changed and CLAUDE.md is stale → run this.
  • Added new docs or restructured workspaces → run this.
  • After /nyann:migrate-profile if CLAUDE.md wasn't auto-refreshed.

Output

The managed block is rewritten in-place. Reports byte count and whether the soft cap (3 KB) was exceeded.

Size budgets

  • 3 KB soft: warning emitted; suggest /nyann:optimize-claudemd.
  • 8 KB hard: script refuses unless --force is passed.

See also:

  • /nyann:optimize-claudemd — usage-analytics-driven pruning
  • /nyann:doctor — audit repo health including CLAUDE.md size
  • /nyann:bootstrap — initial full project setup
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. 8d ago First seen · 49 lines · 34 tokens per session scan A 0bdd478f8ad7

Subscribe to this mod's changes

nyann:gen-claudemd is a command published in the GitHub repository thettwe/nyann (6 stars, last pushed 9d ago), licensed MIT. It adds 34 tokens to every session and 453 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.