ワンクリックで
test-changes
Use after making changes to run terraform fmt, validate, and plan against test environment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use after making changes to run terraform fmt, validate, and plan against test environment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | test-changes |
| description | Use after making changes to run terraform fmt, validate, and plan against test environment |
Run the standard validation suite for terraform changes against the test environment.
/test-changes
/Volumes/MysticalTech/Code/kube-hetzner/Users/karim/Code/kube-testdigraph test_flow {
rankdir=TB;
node [shape=box];
fmt [label="1. terraform fmt"];
validate [label="2. terraform validate"];
init [label="3. terraform init -upgrade"];
plan [label="4. terraform plan"];
review [label="5. Review plan output"];
fmt -> validate;
validate -> init;
init -> plan;
plan -> review;
}
cd /Volumes/MysticalTech/Code/kube-hetzner
terraform fmt -recursive
Must pass before proceeding.
cd /Volumes/MysticalTech/Code/kube-hetzner
terraform validate
Must pass before proceeding.
cd /Users/karim/Code/kube-test
terraform init -upgrade
This picks up changes from the local module.
cd /Users/karim/Code/kube-test
terraform plan
| Output | Meaning | Action |
|---|---|---|
will be destroyed | Resource recreation | STOP - Breaking change |
must be replaced | Resource recreation | STOP - Breaking change |
forces replacement | Resource recreation | STOP - Breaking change |
| Unexpected changes | Side effects | Investigate before proceeding |
If terraform plan shows ANY resource destruction on existing infrastructure:
terraform fmt passesterraform validate passesterraform plan shows expected changes only# Full test sequence
cd /Volumes/MysticalTech/Code/kube-hetzner && \
terraform fmt -recursive && \
terraform validate && \
cd /Users/karim/Code/kube-test && \
terraform init -upgrade && \
terraform plan
Only if plan looks correct and you want to test on actual infrastructure:
cd /Users/karim/Code/kube-test
terraform apply
Caution: This modifies real infrastructure. Only do this for thorough testing.
terraform init -upgrade
terraform init -upgrade
Someone else may be running terraform. Wait or:
terraform force-unlock <lock-id>
Check the error message - usually points to:
For complex changes, get AI review:
# Codex for correctness
codex exec -m gpt-5.5 -s read-only -c model_reasoning_effort="xhigh" \
"Review these terraform changes for issues: $(git diff)"
# Gemini for broad impact
gemini --model gemini-3-pro-preview -p \
"@locals.tf @variables.tf Analyze impact of these changes: $(git diff)"
Use when upgrading or hardening an existing kube-hetzner cluster, including module version bumps, provider lockfile refreshes, K3s channel/version upgrades, immutable node replacement, system-upgrade-controller changes, or live cluster rollout validation
Use when preparing or executing a release - verifies changelog content, updates version references, commits release prep, and, when the maintainer explicitly asks, pushes the release tag that triggers automation
Use when working on a GitHub issue - fetches issue details, analyzes codebase, implements fix following project methodology
Use when reviewing a pull request - security-focused review following CLAUDE.md guidelines for breaking changes, malicious patterns, and backward compatibility
Use when users need help with kube-hetzner configuration, debugging, or questions - acts as an intelligent assistant with live repo access
Use when documentation needs updating - ensures variables.tf, llms.md, kube.tf.example, and README are in sync