/ldaume-infrastructure:manage-infrastructure-as-codefrom ldaume-infrastructure
Manages infrastructure through desired state, GitOps workflows, plan/apply, policy checks, drift detection, and recovery. Activates for Terraform, OpenTofu, Pulumi, CloudFormation, Bicep, and declarative infrastructure.
Ships in ldaume-infrastructure. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make infrastructure changes through the target's owned desired state and checks. Use the repository's existing tool and stack profile for syntax; this Skill owns the lifecycle around those tools.
Do not activate only because a repository has CI, a Dockerfile, or a deploy script. Use it when infrastructure desired state, provisioning, configuration, or reconciliation is part of the change.
Read the target's instructions, architecture, inventory, infrastructure source, state configuration, runbooks, checks, deployment controls, and recent change history. Identify:
Keep production and destructive work human-in-the-loop unless the target has a narrower evidence-backed policy. Stop on unresolved ownership, missing state, unknown existing resources, unavailable recovery, secret exposure, or a plan outside the declared boundary.
Name the actual operating model instead of treating every Git-backed deploy as GitOps:
Use the smallest model that gives the target reliable review, recovery, and feedback. Do not add a controller only to earn the GitOps label. For a GitOps-near system, make the missing pull or continuous-reconciliation property, the compensating drift check, and the trigger for revisiting the model explicit.
Trace the complete path from source declarations through plan, policy checks, apply, runtime state, and observed outcome. Inventory resources already present before creating replacements.
Choose one explicit treatment for every existing resource in scope:
Do not hide placement or resource creation in workflow shell when the owned declarative model can express it. Keep unavoidable bootstrap steps small, idempotent, and linked to the declaration they enable.
Do not commit state, plan files, credentials, generated private keys, or other sensitive runtime artifacts.
Run the smallest tool-native checks that can reject a bad change before it has credentials to mutate infrastructure:
Fail closed when a required policy input or check is unavailable. Keep plan output and logs within the target's evidence and sensitivity policy.
The reviewer must be able to connect every material plan effect to the intended change. A syntactically valid plan is not approval.
Apply the reviewed revision or saved plan through the target's normal runner, identity, locking, approval, timeout, and cancellation controls. Use least privilege and prevent concurrent writers to the same state or target.
Verify preconditions immediately before apply. Stop if the source, variables, state lineage, plan, policy result, approval, or actual environment changed.
An identity binding must name a value somebody has read from the live system, never one taken from provider documentation. A deployment identity was narrowed to the OIDC subject its provider documents as the default; the organization had customized that claim, so every token exchange was refused and nothing could deploy for an hour. Both the binding and the claim mapping were correct when read back - the one value nobody had read was the claim the token actually carries. Read the claim first, and prefer a claim the workload can be made to print over one only the documentation asserts.
Make the workload report the identity it presents. An authorization refusal names the permission and never the value it compared, so a mismatch between a binding and a claim is invisible at the moment it costs the most. A run that prints its own subject, ref and repository - piped straight into a decoder, so no variable or argument holds the token - turns that hour into a minute.
Allow for propagation before concluding a binding is wrong. An IAM change takes minutes to take effect, and the first run after a correct repair can fail for no other reason.
After failure or cancellation, preserve recovery state, inspect both recorded state and actual resources, and produce a fresh reviewed plan before retrying. Never reuse a stale plan blindly. If a backend write fails and the tool emits local recovery state, protect and reconcile that artifact through the backend's documented recovery path before another writer proceeds.
Do not describe git revert as sufficient rollback when an apply moved or
destroyed runtime state. Name the actual recovery: forward reconciliation,
resource restore, data restore, failover, import, or a tested reverse change.
Emergency or diagnostic console changes may restore safety under the target's incident authority. Capture what changed and reconcile it into desired state or explicitly reverse it before the incident closes.
Use a scheduled or event-triggered read-only plan, refresh, or platform check when the value and cost justify it. Route drift to a named owner with the source revision, target, time, plan summary, and evidence location.
Classify drift before acting:
Never auto-apply unknown drift merely to make the check green.
Verify the real system, not only the apply exit code: health, reachability, security boundaries, data durability, observability, cost guardrails, and the behavior the infrastructure exists to support. Exercise the smallest credible recovery check when the change alters state, backup, or rollback assumptions.
Retain the source revision, reviewed plan summary, policy results, approval, apply identity and result, runtime verification, and exception or recovery evidence in the target's existing systems.
references/vocabulary.md lists the field's terms for authors and check
scripts; a review does not load it.
Complete only when desired and actual state agree within declared tolerances, material effects were reviewed, state and secrets stayed protected, runtime verification passed, drift has an owner, and recovery is credible.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
infrastructure-as-code, gitops, terraform, opentofu, pulumi, cloudformation
Other plugins' skills for the same job
6 skills in this plugin
/ansible-automationDesigns, reviews, and troubleshoots Ansible inventories, playbooks, roles, variables, vault usage, idempotency, and server automation. Use when managing infrastructure with Ansible, writing playbooks, organizing roles, handling SSH inventories, templating configs, or making repeatable operations safe./gitea-actionsDesigns, debugs, secures, and reviews Gitea Actions workflows, act_runner or gitea-runner setups, runner labels, tokens, secrets, variables, cache, artifacts, and GitHub Actions compatibility. Use when working with .gitea/workflows, Gitea CI, act_runner or gitea-runner, GITEA_TOKEN permissions, self-hosted Gitea runners, workflow migration, sparse-checkout CI helpers, docker/build-push-action on Gitea, step summaries, or Gitea-specific CI failures. Not for self-hosted GitHub Actions runner fleets./gitea-teanpx claudepluginhub ldaume/agentic-engineering-harness --plugin ldaume-infrastructure