Skip to content
Agentmart
Submit a tool

terraform

Opt-in Azure/Terraform profile only — plan and apply Terraform changes using the safe Iris workflow.

Skill by irisworks

IndexedApache-2.0★ 13
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/irisworks-terraform

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Opt-in Azure/Terraform profile only — plan and apply Terraform changes using the safe Iris workflow.

Use cases: devops, cloud, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/terraform

What's inside

Skill name
terraform
Description
Opt-in Azure/Terraform profile only — plan and apply Terraform changes using the safe Iris workflow.
License
Apache-2.0
Instructions
73 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Skill: terraform

> **Opt-in profile:** this skill only applies to installs using the Azure/Terraform profile. Local/Docker-only installs have no Terraform-managed infrastructure — do not use this skill there.

Apply Terraform changes safely. Always plan before applying. Always commit before applying.

## Rules

1. Never `terraform apply` without `terraform plan` first
2. Never apply if `plan` shows unexpected destroys — pause and report
3. Always commit the `.tf` files to GitHub before applying
4. Always run from `/iris/repo/terraform`
5. State lives in Azure Storage — never commit `.tfstate` files

## Usage

```
terraform-apply [target]
```

Where `[target]` is an optional `-target=<resource>` argument for partial applies.

## Implementation

```bash
#!/usr/bin/env bash
# terraform — safe plan + apply
set -euo pipefail

REPO_DIR="${IRIS_REPO_DIR:-/iris/repo}"
TF_DIR="${REPO_DIR}/terraform"
TARGET="${1:-}"

cd "$TF_DIR"

echo "[terraform] Running plan..."
if [[ -n "$TARGET" ]]; then
  terraform plan -target="$TARGET" -out=iris.tfplan
else
  terraform plan -out=iris.tfplan
fi

# Abort if plan shows destroys (safety check)
DESTROYS=$(terraform show -json iris.tfplan 2>/dev/null \
  | jq '[.resource_changes[] | select(.change.actions[] == "delete")] | length' 2>/dev/null || echo 0)

if [[ "$DESTROYS" -gt 0 ]]; then
  echo "[terraform] WARNING: Plan includes $DESTROYS resource deletions."
  echo "[terraform] Review the plan output above. Apply manually if intentional:"
  echo "  cd $TF_DIR && terraform apply iris.tfplan"
  exit 1
fi

echo "[terraform] Applying..."
terraform apply iris.tfplan
rm -f iris.tfplan

echo "[terraform] Done."
```

## Notes

- Terraform state: Azure Storage Account per install (see `terraform/backend.tf` for backend-config), container `tfstate`
- If state is locked: `terraform force-unlock <lock-id>` (use with care)
- New resources: write the `.tf` file → commit → run this skill
- Destroying resources: must be intentional and confirmed before proceeding

## Child agent terraform

Child agents are provisioned using the `modules/agent` module.
See `spawn-agent` skill for the full workflow.

From irisworks/iris-core, Apache-2.0.

More from irisworks/iris-core

Compare and alternatives

    Featured in

    Signals

    Stars
    13
    Forks
    3
    Open issues
    7
    Last commit (this folder)
    Jul 20, 2026 (3 months ago)
    Last release
    Oct 14, 2026 (13 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    License
    Apache-2.0
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from irisworks

    Cite this page

    terraform skill. Agent Mart. https://agentmart.dev/skills/irisworks-terraform (last updated 2026-10-24)