スキル一覧に戻る
martimramos

forge-lang-terraform

by martimramos

0🍴 0📅 2025年12月21日
GitHubで見るManusで実行

SKILL.md


name: forge-lang-terraform description: Terraform infrastructure-as-code safety practices. Enforces plan-before-apply workflow. Use when working with .tf files or infrastructure commands.

Terraform Development

Safety Rules

NEVER run without user confirmation:

  • terraform apply
  • terraform destroy
  • terraform import

ALWAYS run first:

  • terraform plan
  • terraform validate

Workflow

┌────────────────────────────────────────────────┐
│  VALIDATE → PLAN → REVIEW → APPLY             │
└────────────────────────────────────────────────┘

Step 1: Validate

terraform init
terraform validate
terraform fmt -check

Step 2: Plan

terraform plan -out=tfplan

Show plan to user and wait for confirmation.

Step 3: Apply (only after explicit approval)

terraform apply tfplan

Linting

# Format check
terraform fmt -check -recursive

# TFLint
tflint --recursive

# Checkov security scanning
checkov -d .

Project Structure

project/
├── main.tf
├── variables.tf
├── outputs.tf
├── versions.tf
├── terraform.tfvars.example
├── modules/
│   └── module_name/
│       ├── main.tf
│       ├── variables.tf
│       └── outputs.tf
└── README.md

Pre-Apply Checklist

Terraform Checklist:
- [ ] terraform init completed
- [ ] terraform validate passed
- [ ] terraform fmt -check passed
- [ ] tflint passed (if available)
- [ ] terraform plan reviewed
- [ ] User confirmed changes
- [ ] Ready to apply

State Safety

  • Never edit terraform.tfstate manually
  • Always use terraform state commands
  • Back up state before imports
  • Use remote state with locking

Scripts

Validate before plan:

~/.claude/skills/languages/terraform/scripts/plan-check.sh

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です