/mad-skills:keel --plan-only, --skip-interview, --dry-run, --tool terraform|bicep|pulumi|cdkfrom mad-skills
Generates Infrastructure as Code pipelines for cloud and container infrastructure. Interview-driven, outputs Terraform/Bicep/Pulumi/CDK files and CI/CD pipelines that plan on PR and apply on merge.
Ships in mad-skills. 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.
When this skill is invoked, IMMEDIATELY output the banner below before doing anything else.
Pick ONE tagline at random — vary your choice each time.
CRITICAL: Reproduce the banner EXACTLY character-for-character, including the diagonal / glyph before the name.
{tagline}
/$$ /$$ /$$ /$$$$$$$$ /$$$$$$$$ /$$
/$$/| $$ /$$/| $$_____/| $$_____/| $$
/$$/ | $$ /$$/ | $$ | $$ | $$
/$$/ | $$$$$/ | $$$$$ | $$$$$ | $$
/$$/ | $$ $$ | $$__/ | $$__/ | $$
/$$/ | $$\ $$ | $$ | $$ | $$
/$$/ | $$ \ $$| $$$$$$$$| $$$$$$$$| $$$$$$$$
|__/ |__/ \__/|________/|________/|________/
Taglines:
Provision cloud and container infrastructure through an interview-driven workflow
that generates deterministic IaC files and CI/CD pipelines. The generated pipelines
run plan on every PR and apply on merge to the default branch — no LLM at runtime.
Recommended skill order:
/brace → /rig → /build → /ship → /keel → /dock
/keel lays the infrastructure (registries, compute, networking, databases). /dock creates the deployment pipelines that push containers onto that infrastructure.
Parse optional flags from the request:
--plan-only: Generate IaC files but no CI/CD pipeline--skip-interview: Use detected defaults without interactive prompts--dry-run: Show what would be generated without writing files--tool <name>: Force a specific IaC tool (terraform, bicep, pulumi, cdk)Input display: ┌─ Input │ {fields} └─. Pre-flight: ── Pre-flight ── ✅/⚠️/❌ ──.
Stage headers: ━━ {N} · {Name} ━━━━━━━━━━━━━. Icons: ✅ done · ❌ fail · ⚠️ warn · ⏳ work · ⏭️ skip.
Detect the hosting platform before pre-flight so dependency checks are platform-specific:
REMOTE_URL=$(git remote get-url origin 2>/dev/null)
if echo "$REMOTE_URL" | grep -qiE 'dev\.azure\.com|visualstudio\.com'; then
PLATFORM="azdo"
elif echo "$REMOTE_URL" | grep -qi 'github\.com'; then
PLATFORM="github"
else
PLATFORM="github" # default fallback
fi
Pass {PLATFORM} into all phase prompts. Each phase uses the appropriate
CLI tool: gh for GitHub, az repos/az pipelines for Azure DevOps.
Before starting, check all dependencies in this table. The table contains all dependencies — some are platform-conditional (see notes after table).
| Dependency | Type | Check | Required | Resolution | Detail |
|---|---|---|---|---|---|
| git | cli | git --version | yes | stop | Install from https://git-scm.com |
| sync | skill | ls .claude/skills/sync/SKILL.md ~/.claude/skills/sync/SKILL.md ~/.claude/plugins/marketplaces/slamb2k/skills/sync/SKILL.md 2>/dev/null | no | fallback | Repo sync; falls back to manual git pull |
| terraform | cli | terraform --version | no | fallback | Detected if user wants Terraform; suggest install from https://terraform.io |
| az | cli | az --version | no | fallback | Needed for Bicep; suggest install from https://aka.ms/install-azure-cli |
| pulumi | cli | pulumi version | no | fallback | Detected if user wants Pulumi; suggest install from https://pulumi.com |
| cdk | cli | cdk --version | no | fallback | Detected if user wants AWS CDK; install via npm |
| gh | cli | gh --version | yes | url | https://cli.github.com |
| az devops | cli | az devops -h 2>/dev/null | no | fallback | Falls back to REST API with PAT; see AzDO tooling below |
Platform-conditional rules:
gh: Only required when PLATFORM == github. Skip for AzDO repos.az devops: Only checked when PLATFORM == azdo. Skip for GitHub repos.Only check the IaC tool row that matches the user's choice (or detected default). Skip checks for tools not being used.
For each applicable row, in order:
{PLATFORM}When PLATFORM == azdo, follow the shared AzDO platform guide
(repo root: references/azdo-platform.md) for tooling detection (AZDO_MODE)
and configuration validation (AZDO_ORG, AZDO_PROJECT).
Pass these variables into all phase prompts alongside {PLATFORM}.
Invoke /sync to ensure the working tree is up to date with origin/main.
Falls back to git pull if /sync is unavailable.
Launch an Explore subagent to scan the codebase for existing infrastructure.
Task(
subagent_type: "Explore",
description: "Detect existing IaC and cloud config",
prompt: <read from references/interview-guide.md#detection-prompt>
)
The detection scans for:
Parse INFRA_DETECTION_REPORT. This feeds into the interview.
Present detection results and fill gaps through guided questions.
Read the full interview flow from references/interview-guide.md#interview-questions.
The interview covers these topics in order. Skip questions where detection provided high-confidence answers (but confirm with the user).
Topics covered (full prompts and options in references/interview-guide.md):
If --skip-interview: Use detected defaults + sensible defaults.
Compile all answers into an INFRA_CONFIG object for Phase 3.
Based on INFRA_DETECTION_REPORT and INFRA_CONFIG, generate all IaC files.
Use templates from references/ as starting points.
Generate an infra/ directory with this layout:
Terraform:
infra/
├── main.tf # Provider config, backend, module calls
├── variables.tf # Input variables
├── outputs.tf # Output values (registry URL, endpoints, etc.)
├── versions.tf # Required providers and versions
├── environments/
│ ├── dev.tfvars # Dev variable values
│ ├── staging.tfvars # Staging variable values
│ └── prod.tfvars # Prod variable values
└── modules/
├── registry/ # Container registry
├── compute/ # Container platform (AKS, ECS, Cloud Run, etc.)
├── database/ # Managed database
├── networking/ # VPC, DNS, load balancer
└── monitoring/ # Logging, metrics, alerts
Bicep:
infra/
├── main.bicep # Orchestration (module calls)
├── main.bicepparam # Parameter file template
├── environments/
│ ├── dev.bicepparam
│ ├── staging.bicepparam
│ └── prod.bicepparam
└── modules/
├── registry.bicep
├── compute.bicep
├── database.bicep
├── networking.bicep
└── monitoring.bicep
Pulumi:
infra/
├── Pulumi.yaml # Project config
├── Pulumi.dev.yaml # Dev stack config
├── Pulumi.staging.yaml # Staging stack config
├── Pulumi.prod.yaml # Prod stack config
├── index.ts # Main program (or __main__.py for Python)
└── resources/
├── registry.ts
├── compute.ts
├── database.ts
└── networking.ts
Only generate modules for components selected in the interview.
Generate infra/bootstrap.sh for first-time state backend setup.
Use the provider-specific template from references/iac-pipeline-templates.md#bootstrap-scripts.
Read the appropriate template from references/iac-pipeline-templates.md.
Platform branching:
PLATFORM == github: Generate a GitHub Actions workflow. Output file:
.github/workflows/infra.yml. Use templates from the "GitHub Actions" section.PLATFORM == azdo: Generate an Azure DevOps Pipelines YAML file. Output
file: azure-pipelines-infra.yml. Use templates from the "Azure DevOps
Pipelines" section.Generate a workflow that implements:
On pull request:
terraform init (or equivalent)terraform plan with the target environment's varsOn merge to default branch:
terraform initterraform planterraform apply -auto-approveOn environment promotion (tag or manual dispatch):
Generate an outputs file that /dock's pipelines can consume:
# outputs.tf
output "registry_url" {
value = module.registry.login_server
}
output "registry_name" {
value = module.registry.name
}
output "compute_endpoint" {
value = module.compute.endpoint
}
output "database_connection_string" {
value = module.database.connection_string
sensitive = true
}
These outputs become inputs for /dock's deployment pipelines — the registry URL for pushing images, the compute endpoint for deploying containers, etc.
Generate a script or workflow step that reads IaC outputs and writes them as CI/CD secrets/variables for /dock's pipelines.
Platform branching:
PLATFORM == github: Use gh secret set / gh variable set commands.
Reference references/iac-pipeline-templates.md#infra/sync-outputs.sh.PLATFORM == azdo: Use az pipelines variable-group variable update /
az pipelines variable-group variable create commands. Reference
references/iac-pipeline-templates.md#infra/sync-outputs.sh (Azure DevOps).GitHub example:
# infra/sync-outputs.sh
REGISTRY_URL=$(terraform output -raw registry_url)
gh secret set REGISTRY_URL --body "$REGISTRY_URL"
gh secret set DATABASE_URL --body "$(terraform output -raw database_connection_string)"
Azure DevOps example:
# infra/sync-outputs.sh
REGISTRY_URL=$(terraform output -raw registry_url)
az pipelines variable-group variable update --group-id "$VG_ID" --name REGISTRY_URL --value "$REGISTRY_URL"
az pipelines variable-group variable update --group-id "$VG_ID" --name DATABASE_URL --value "$(terraform output -raw database_connection_string)" --secret true
Validate generated IaC files:
Terraform:
cd infra && terraform init -backend=false && terraform validate
Bicep:
az bicep build --file infra/main.bicep
Pulumi:
cd infra && pulumi preview --stack dev
If the IaC tool is not installed, skip validation and note it in the report.
Also validate generated workflow files for YAML syntax.
Present the user with a summary of all generated files before writing.
If --dry-run: Show file list and content previews without writing.
After all files are generated and verified, present:
┌─ Keel · Report ────────────────────────────────
│
│ ✅ Keel complete
│
│ ☁️ Provider: {cloud_provider}
│ 🔧 IaC Tool: {tool}
│ 🌍 Envs: {env1} → {env2} → {env3}
│ 💾 State: {state_backend}
│
│ 📝 Components: {checklist of selected}
│
│ 📊 Pipeline: PR → plan → Merge → apply dev → Tag → apply prod
│
│ 🔗 Links
│ Infra: {infra/ path}
│ Pipeline: {workflow path}
│ Bootstrap: ./infra/bootstrap.sh
│
│ ⚡ Next: 1. Run bootstrap 2. Configure secrets 3. Push 4. /dock
│
└─────────────────────────────────────────────────
After presenting the report, record lifecycle completion and surface the next step:
_R="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/slamb2k}"
node "$_R/hooks/session-guard.cjs" lifecycle-complete keel
If the command prints a LIFECYCLE_OFFER_BEGIN…END block, present that offer to
the user via AskUserQuestion as instructed inside the block. If it prints nothing
(or LIFECYCLE_OFFER_NONE), do not mention the lifecycle engine.
If /keel detects it has been run before (existing infra/ directory):
infra/ and wires IaC pipeline into CI. /ship: Merge triggers IaC apply → /dock deploy.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/braceInitialize any project directory with a standard scaffold for AI-assisted development. Creates specs/ and context/ directories, a project AGENTS.md with development workflow and guardrails (plus a CLAUDE.md that just points at it), .gitignore, and branch protection. Idempotent — safe to run on existing projects. Triggers: "init project", "setup brace", "brace", "initialize", "bootstrap", "scaffold"./buildContext-isolated feature development pipeline. Takes a detailed design/plan as argument and executes the full feature-dev lifecycle (explore, question, architect, implement, review, ship) inside subagents so the primary conversation stays compact. Use when you have a well-defined plan and want autonomous execution with minimal context window consumption./distilGenerate multiple unique web design variations for any website or web application. Accepts site specifications from a file (--spec path) or pasted text block. Creates a Vite + React + TypeScript + Tailwind project with Bun and produces N different creative designs accessible at /1, /2, /3, etc. Use when prototyping or exploring design directions for any web interface./dockGenerate container-based release pipelines that build once and promote immutable artifacts through environments (dev → staging → prod). Detects your stack, interviews for infrastructure choices, then outputs deterministic CI/CD files (Dockerfile, workflows, deployment manifests) that run without an LLM. Use when setting up deployment pipelines, containerizing an app, creating release workflows, or connecting CI to container-friendly infrastructure (Azure Container Apps, AWS Fargate, Google Cloud Run, Kubernetes, Dokku, Coolify, CapRover, etc.)./ferryFerry a session's live state across a context reset — persist a waybill document and arm a one-shot handoff so the next fresh session resumes from it. Use when the user types /ferry, says they want to hand off, checkpoint, wrap up, clear context, or start fresh while preserving state, or asks to carry work into a new session with clean optimised context. Captures task, status, next steps, key files, decisions, gotchas and repo state, writes a waybill (outside the repo by default), arms the handoff, and tells the user to /clear. "/ferry clean" lists and removes leftover waybills this skill created./hoistGenerate secure, low-infrastructure release pipelines that publish artifacts directly — language packages (npm, PyPI, crates, RubyGems, NuGet, Go), GitHub Releases with binaries, static sites/Pages, or serverless functions — without building a container image. OIDC/trusted publishing, provenance, idempotent publish guards, and three trigger models (auto-bump with optional approval, tag, manual). The non-container sibling of /dock. Use when releasing a package or app that doesn't ship as a container.npx claudepluginhub slamb2k/mad-skills --plugin mad-skills