infra-bootstrap
SKILL.md
Infra Bootstrap
Use this skill to provision infrastructure and baseline config in a staged order using agentTool.ts.
Safety Rules
- Always run from repo root.
- Dry-run first unless the user explicitly wants execution.
- Use
--yesfor non-dry-run actions. - On failure, include the failing command and stdout/stderr in your response.
- Retry failed apply/bootstrap steps once after a short wait.
- Never run destroy unless the user explicitly asks for it.
Actions
Use these wrappers:
runTerraformStackScript --stack <stack> --script <script>runAnsibleBootstrap --target <target>
Allowlisted stacks/scripts:
staging/k8s:apply,apply01,apply02,apply03,destroyprod/k8s:apply,apply01,apply02,apply03,destroyprod/vpn:apply,apply01,apply02,destroy
Allowlisted ansible targets:
staging-k8sprod-k8sprod-vpn
Recommended Sequences
Staging K8s
./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack staging/k8s --script apply01 --yes./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack staging/k8s --script apply02 --yes./scripts/agents/tooling/agentTool.ts runAnsibleBootstrap --target staging-k8s --yes./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack staging/k8s --script apply03 --yes
Prod K8s
./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack prod/k8s --script apply01 --yes./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack prod/k8s --script apply02 --yes./scripts/agents/tooling/agentTool.ts runAnsibleBootstrap --target prod-k8s --yes./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack prod/k8s --script apply03 --yes
Prod VPN
./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack prod/vpn --script apply01 --yes./scripts/agents/tooling/agentTool.ts runAnsibleBootstrap --target prod-vpn --yes./scripts/agents/tooling/agentTool.ts runTerraformStackScript --stack prod/vpn --script apply02 --yes
Retry Pattern
For each step:
- Run the command.
- If it fails, wait 10-20 seconds.
- Run the same command once more.
- If retry fails, stop sequence and report failure details.
Weekly Installs
1
Repository
a2f0/tearleadsFirst Seen
10 days ago
Security Audits
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1