iac-apply

iac-apply is a skill for Claude Code from thettwe/nyann. It costs 355 tokens per session (2,632 once invoked), scanned A, original, MIT.

An Infrastructure-as-Code deployment tool that applies planned changes to real cloud resources. Infrastructure as Code means describing servers and services in files so tools can create or change them.

In plain words
What is it for?
Use it to provision, update, or deploy infrastructure in repositories using tools such as Terraform, OpenTofu, AWS CDK, Pulumi, Helm, Kubernetes, Kustomize, or Ansible.
Why use it?
It provides a controlled apply step for changes that could affect live infrastructure. It previews the plan and requires confirmation before making changes, including extra confirmation for destructive changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

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

Good fit Use it to provision, update, or deploy infrastructure in repositories using tools such as Terraform, OpenTofu, AWS CDK, Pulumi, Helm, Kubernetes, Kustomize, or Ansible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thettwe/nyann/iac-apply
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.

Any agent
npx skills add thettwe/nyann --skill iac-apply
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 iac-apply

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thettwe/nyann/iac-apply"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/iac-apply.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 355 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,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.00355 $0.02632
Opus 5.5 $0.00142 $0.01053
Sonnet 5.5 $0.00071 $0.00526
Haiku 4.5 $0.00036 $0.00263

Measured 3mo ago against content hash 95b99ecb196a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iac-apply 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 3mo 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.

skills/iac-apply/SKILL.md · 199 lines

How it starts

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

iac-apply

Wraps bin/iac-apply.sh. This is the highest-stakes mutator in nyann — it can change real cloud infrastructure. Read this end to end before invoking. The gate ladder below is enforced in the script, not just prose; your job is to drive the flags in the right order and never shortcut a confirmation.

The script mirrors bin/undo.sh's preview-before-mutate contract: apply is never the default. Without --apply it previews and exits 0. --dry-run always wins over --apply. A destructive plan needs a second explicit confirmation on top of --apply. The output is a JSON object on stdout (status: preview|applied|skipped|refused, plus tool, unit, summary, destructive, optional record_path, exit_code, message).

0. This skill is opt-in — confirm intent first

Never invoke an apply because a plan looked ready. Only proceed when the user has clearly asked to apply/deploy/provision on an infra repo (see DISAMBIGUATION). If they only wanted to see the diff, route to /nyann:plan. Confirm there's an infra signal (a tool name, an "infra"/"deploy" intent, or a detected .iac.tool) before doing anything.

1. Always preview the plan first — show it back

Always obtain an IacPlan before applying — iac-apply.sh computes one internally (or reads --plan <iacplan.json> if you already ran /nyann:plan and saved it). Either way, run a preview pass first and show the add/change/destroy summary to the user:

bin/iac-apply.sh --target <cwd> [--unit <repo-rel-path>]   # no --apply → preview

This emits status:"preview", exits 0, and mutates nothing. Render .summary (e.g. "+3 add, ~1 change, -2 destroy"), .destructive, and .destructive_known exactly as the iac-plan skill does. If the preview's plan came back status:"skipped" (CLI/backend/creds absent), the apply emits status:"skipped" exit 0 — surface .message, and stop: there is nothing to apply. If the plan was status:"refused" (unknown tool / --unit traversal), apply emits status:"refused" exit 1 — relay .message and fix the input.

Read the full file on GitHub · 199 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. 3mo ago First seen · 199 lines · 355 tokens per session scan A 95b99ecb196a

Subscribe to this mod's changes

iac-apply is a skill published in the GitHub repository thettwe/nyann (7 stars, last pushed 28d ago), licensed MIT. It adds 355 tokens to every session and 2,632 once invoked, about $0.0014 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-09-03.

Related

iac-apply compared with skills from other repositories

iac-apply next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
iac-applythettwe/nyannSkill728d agoMITA355Claude Code
cloud-administrationcbrock84/headcountSkill2.6k5d agoMITA100Claude Code
network-administrationcbrock84/headcountSkill2.6k5d agoMITA62Claude Code
telephony-and-conferencingcbrock84/headcountSkill2.6k5d agoMITA85Claude Code
virtualization-operationscbrock84/headcountSkill2.6k5d agoMITA86Claude Code
business-continuity-and-resiliencecbrock84/headcountSkill2.6k5d agoMITA69Claude Code
cloud-infrastructurecbrock84/headcountSkill2.6k5d agoMITA58Claude Code