/mad-skills:dock --registry-only, --skip-interview, --dry-runfrom mad-skills
Generates container-based release pipelines that build once and promote immutable artifacts through environments. Detects your stack, interviews for infrastructure choices, then outputs deterministic CI/CD files (Dockerfile, workflows, deployment manifests).
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:
Generate container-based release pipelines following the build-once, promote-everywhere philosophy. Every artifact is built exactly once, tested, tagged with git SHA + semver, pushed to a registry, and promoted through environments without rebuilding.
All generated files are deterministic — no LLM required at runtime.
Parse optional flags from the request:
--registry-only: Only generate Dockerfile, .dockerignore, and registry config (skip deployment)--skip-interview: Use detected defaults without interactive prompts--dry-run: Show what would be generated without writing filesAfter the banner, display parsed input:
┌─ Input ────────────────────────────────────────
│ {Field}: {value}
│ Flags: {parsed flags or "none"}
└────────────────────────────────────────────────
Pre-flight results:
── Pre-flight ───────────────────────────────────
✅ {dep} {version or "found"}
⚠️ {dep} not found → {fallback detail}
❌ {dep} missing → stopping
──────────────────────────────────────────────────
Stage/phase headers: ━━ {N} · {Name} ━━━━━━━━━━━━━━━━━━━━━━━━━
Status icons: ✅ done · ❌ failed · ⚠️ degraded · ⏳ working · ⏭️ skipped
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 and registry defaults based on the detected platform.
Before starting, check dependencies:
| Dependency | Type | Check | Required | Resolution | Detail |
|---|---|---|---|---|---|
| docker | cli | docker --version | no | ask | Needed for local build verification; skip verify phase if absent |
| 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 |
| 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:
az devops: Only checked when PLATFORM == azdo. Skip for GitHub repos.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 before
scanning. If /sync is unavailable, run git pull manually. This prevents
generating pipelines against stale code.
Launch an Explore subagent to scan the codebase and produce a DETECTION_REPORT.
Task(
subagent_type: "Explore",
description: "Detect stack and existing infrastructure",
prompt: <read from references/interview-guide.md#detection-prompt>
)
The detection prompt scans for:
Parse DETECTION_REPORT. This feeds into the interview phase.
Present the detection results to the user and fill in 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 already provided a confident answer (but confirm with the user).
Confirm detected language, framework, and entry point. Ask only if detection was ambiguous (e.g., monorepo with multiple stacks).
Detect from existing CI config or ask:
Ask how many deployment stages and the promotion model:
For each environment, ask the deployment target:
Different environments can use different targets (e.g., dev=Dokku, prod=Azure Container Apps).
For each environment promotion, ask what tests gate the promotion:
How environment-specific config is managed:
Optional — ask only if deploying to platforms that need this:
If --skip-interview flag: Use detected defaults + sensible platform-aware
defaults for everything else:
PLATFORM == github): ghcr.io, 3-stage, GitHub Secrets, simple rollbackPLATFORM == azdo): Azure Container Registry, 3-stage, Azure Key Vault, simple rollbackCompile all answers into a DOCK_CONFIG object for Phase 3.
Based on DETECTION_REPORT and DOCK_CONFIG, generate all pipeline files.
Use templates from references/ as starting points and customize for the
detected stack and chosen platforms.
Read references/dockerfile-templates.md for the detected stack.
Generate a multi-stage Dockerfile:
Generate .dockerignore excluding: .git, node_modules, __pycache__, .env*,
test fixtures, documentation, IDE config.
Generate a local development compose file that mirrors the production image with development overrides (volume mounts, hot reload, debug ports).
Detect CI system from Phase 1 (GitHub Actions / Azure Pipelines / GitLab CI).
Read the appropriate template from references/pipeline-templates.md.
For GitHub Actions and Azure Pipelines, the templates are hardened by default
— read references/hardening.md for the OIDC auth, keyless cosign signing,
idempotency guards, and digest-pinned promotion these templates implement. The
generated workflow MUST include id-token: write, provenance: true, a cosign
sign in the build job and verify in every promotion job, an existence guard
before build, and deploy steps that reference the image by @sha256: digest.
(GitLab CI remains credential-based.)
Generate a workflow that implements:
On pull request:
pr-{number}-{sha:7}On merge to main (or default branch):
{sha:7} and latestOn release tag (vX.Y.Z):
{sha:7} image as vX.Y.Z — do NOT rebuildKey principle: the release workflow never rebuilds. It promotes the exact image that was tested on main.
Based on the chosen platforms per environment, read the appropriate section
from references/platform-deploy-guides.md and generate:
az containerapp commands in workflowgcloud run deploy commandsGenerate an environment matrix config file (deploy/environments.json or
deploy/environments.yml) defining per-environment settings:
environments:
dev:
target: <platform>
registry_tag_pattern: "{sha:7}"
auto_deploy: true
tests: [smoke]
staging:
target: <platform>
registry_tag_pattern: "v{version}"
auto_deploy: false # requires manual approval or tag
tests: [integration, e2e]
prod:
target: <platform>
registry_tag_pattern: "v{version}"
auto_deploy: false
tests: [smoke-post-deploy]
If the detected framework doesn't already have a health endpoint, add a comment
in the generated workflow noting that a /healthz or /health endpoint is
recommended for deployment readiness probes.
Because the pipelines are secure by default, first-run requires one-time
cloud-side trust. Generate deploy/SETUP.md from the Generated deploy/SETUP.md
section of references/hardening.md, substituting the target repo (OWNER/REPO),
chosen registry, and cloud identifiers. This file lists the federated-credential
/ IAM-trust steps and the cosign verification command.
If Docker is available, run a verification step:
docker build --target production -t dock-verify:test .
If the build succeeds, report success. If it fails, diagnose and fix the Dockerfile. Skip this phase if Docker is not installed (noted in pre-flight).
Also validate generated workflow files:
id-token: write; for Azure Pipelines,
confirm it authenticates via a Workload Identity Federation service connection
(azureSubscription). Both must contain a cosign sign+verify pair and
reference deploy images by @sha256: digest. Flag any absence as a generation error.Present the user with a summary of all generated files before writing.
If --dry-run flag: Show the file list and content previews without writing.
After all files are generated and verified, present:
┌─ Dock · Report ────────────────────────────────
│
│ ✅ Dock complete
│
│ 🔧 Stack: {language} / {framework}
│ 📦 Registry: {registry}
│ 🌍 Stages: {env1} → {env2} → {env3}
│
│ 📝 Generated files
│ • {file} — {brief description}
│ • {file} — {brief description}
│ • ...
│
│ 📊 Pipeline flow
│ PR → build + test
│ Merge → build + test → push → deploy dev → smoke
│ Tag → retag (no rebuild) → staging → e2e → prod
│
│ 🔐 Required cloud setup
│ • Configure federated identity (see deploy/SETUP.md)
│ • {registry-specific: IAM role / ACR federated cred / GCP WIP}
│ • First run fails until trust is configured — this is expected
│
│ 🔗 Links
│ Dockerfile: {path}
│ Workflow: {path}
│ Compose: {path}
│
│ ⚡ Next steps
│ 1. Review generated files
│ 2. Configure secrets: {list}
│ 3. Push to trigger first pipeline run
│
└─────────────────────────────────────────────────
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 dock
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 /dock detects it has been run before (existing deploy/ directory, existing
deployment workflow), it should:
deploy/
artifacts and wire the CI workflow to trigger deployment on merge to main.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub slamb2k/mad-skills --plugin mad-skills14 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./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./keelGenerate Infrastructure as Code (IaC) pipelines that provision the cloud and container infrastructure your app deploys to. Interview-driven: detects your stack and cloud provider, then outputs deterministic IaC files (Terraform, Bicep, Pulumi, or CDK) plus CI/CD pipelines that plan on PR and apply on merge. Use when setting up cloud infrastructure, provisioning container registries, databases, networking, DNS, or any infrastructure that containers deploy onto. Designed to run before /dock — /keel lays the infrastructure, /dock deploys to it.