nyann:plan

A read-only preview of an Infrastructure as Code change. Infrastructure as Code, or IaC, means describing servers and cloud resources in files so tools such as Terraform or Pulumi can manage them.

In plain words
What is it for?
Use it to preview changes in Terraform, OpenTofu, AWS CDK, Pulumi, Helm, Kubernetes, Kustomize, or Ansible projects.
Why use it?
It shows which resources would be added, changed, or destroyed before anything is applied. If the required command-line tool or credentials are missing, it reports that instead of pretending the preview ran.

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/thettwe/nyann/plan
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 595 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.00088 $0.00595
Opus 5 $0.00044 $0.00298
Sonnet 5 $0.00018 $0.00119
Haiku 4.5 $0.00009 $0.00060

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

Security

Grade A, and why

nyann: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 2d 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/plan.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:plan

Wraps bin/iac-plan.sh. READ-ONLY IaC preview — it never applies. Flow:

  1. Confirm there's an infra signal (a tool name, "infra"/"deploy" intent, or a detected .iac.tool). If not, this is the wrong skill.
  2. Run bin/iac-plan.sh --target <cwd> [--unit <path>] → IacPlan JSON.
  3. Branch on .status: planned → render add/change/destroy summary; skipped → surface the missing CLI/backend/creds, do NOT offer apply; refused → fix the bad input (unknown tool / unit traversal).
  4. For a destructive plan, AskUserQuestion before offering apply.
.status Meaning
planned A plan ran — render the summary.
skipped CLI/backend/creds absent (exit 0) — nothing to apply.
refused Bad input (exit 1) — unknown tool or --unit traversal.

Structured tools (terraform/opentofu/aws-cdk/pulumi) report real counts; advisory tools (helm/kubernetes/kustomize/ansible) emit a text diff only, counts are 0, and the change is treated as potentially destructive.

See skills/iac-plan/SKILL.md for the full flow and the DISAMBIGUATION that keeps /nyann:plan off the bare word "plan" (project/sprint planning, ExitPlanMode). To apply after previewing → /nyann:apply.

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. 2d ago First seen · 49 lines · 88 tokens per session scan A db7d89050c07

Subscribe to this mod's changes

nyann:plan is a command published in the GitHub repository thettwe/nyann (6 stars, last pushed 3d ago), licensed MIT. It adds 88 tokens to every session and 595 once invoked, about $0.0004 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.