/ai-devkit:cmk:cicdfrom ai-devkit
Structures GitHub Actions CI/CD into separate validation, deploy, and policy workflows with host-runnable scripts. Useful for setting up, speeding up, or restructuring CI pipelines.
Ships in ai-devkit. 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.
Structure a repo's GitHub Actions automation into three concerns that stay separated: what validates every change, what ships a specific commit somewhere, and what gates or authenticates either one.
Init (default) — stand up the path-filtered CI pipeline, its security scans, per-environment deploy workflows, policy gates, and the workflows README.
Update — add, rename, or retire a workflow; update the README table and required checks in the same change.
Verify — report-only audit against the checks under ## Verify;
never mutates.
references/ci-structure.md when setting up or speeding up CI, and
references/security-scanning.md when adding or gating a scan.references/deploy-and-release.md when adding or changing a deploy or
release workflow.references/policy-and-auth.md when wiring a
gate or an automation identity.Never fold validation and deployment into one workflow: a push that only changes docs must not queue behind a deploy, and a deploy must never accidentally run on every push that happens to touch the workflow file.
GitHub Actions is a composer. The steps themselves are independently
invocable scripts (TypeScript + bun, or the repo's existing runtime)
that run on a development machine, a JIT self-hosted runner, or hosted
compute with the same behavior. Read references/host-runnable.md when
adding a job, a runner, choosing a script language, extracting a fat
run:, or reproducing a CI failure. This is not a local-only mindset:
local, AWS, GCP, and production are profiles over one production-ready
path (cmk:infra, cmk:local-stack). JIT concurrent-job count,
language, extract, and mutate-gate rules are references/host-runnable.md;
attested packing is cmk:enclave.
A persistent agent takes one job at a time; capacity comes from distinct agents,
not workflow strategy.max-parallel. Read references/self-hosted-runner-fleets.md
for pool sizing, shared-host isolation, naming, lifecycle, state, or cleanup.
cmk:infra names environments as first-class, tool-neutral entities
(production, staging, dev, canary, plus ephemeral per-effort stacks)
and requires each to have a deploy path; this skill specifies that path. The
contract is 1:1:1: every IaC stack pairs with exactly one GitHub
Environment of the same name and exactly one deploy workflow that targets it.
Secrets live only in that protected GitHub Environment, never in
repository-wide secrets or plain variables. Read cmk:infra for the
environment vocabulary itself; read references/deploy-and-release.md here
for how the pairing is wired.
workflows/README.md is the operating docEvery workflow gets one row in a table at .github/workflows/README.md:
name, purpose, and trigger. A workflow with a non-obvious contract (a release
gate's promotion rule, a reconciliation job's opt-in variable) gets its own
subsection below the table. Adding, renaming, or retiring a workflow updates
this table in the same change — it is the first thing a reader or another
agent opens to learn what automation exists, not a changelog reconciled
later.
This skill teaches shapes and the traps around them — never a frozen workflow
catalog to copy verbatim. Recognize and avoid: cold-cache poisoning (a
scheduled cold job whose own setup step silently re-warms a shared cache, so
the regression it exists to catch can no longer show up); skipped-job-
reports-success (a path-filtered job that didn't run still reports a green
check, so the gating job itself, not the per-area jobs, must be what's
required); empty-scan-reads-as-clean (the same failure one level in — a
scanner missing its binary, its credentials, or its ruleset returns zero
findings, which is indistinguishable from a passing scan, so coverage must
be reported separately from findings); workflow-token-doesn't-trigger-CI
(automation that pushes with the built-in workflow token produces commits
that never fire downstream CI, silently leaving a rewritten ref
unverified); speedup misattribution (a
multi-part change to CI's wall-clock cuts the total, and every part gets
credited — but tracing the win to its actual cause can reveal that one part
did all of it and a sibling part is silently inert, contributing nothing
while looking identical to the part that worked — isolate which change
moved the number before crediting any of them; cmk:test-resources
covers that trap one layer down); evidence-floor negation (a
test-evidence gate that scans for fail treats 0 fail and
fail-closed as a non-passing claim); composer-contract drift
(extracting a fat run: into a script leaves YAML-body pins and path
filters on the old site — raising the line-count baseline is not the
fix).
Projects own: which area jobs exist and their path filters; runner labels and pool sizing; which policy gates are enabled; deploy-leg composition; label names, schedules, and cache backends; which checks become required in the ruleset.
Report-only — never mutate:
.github/workflows/README.md lists every workflow and is current with the
workflows on disk.eval.json (opens in a new tab)references/ci-structure.md (opens in a new tab)references/deploy-and-release.md (opens in a new tab)references/host-runnable.md (opens in a new tab)references/policy-and-auth.md (opens in a new tab)references/security-scanning.md (opens in a new tab)references/self-hosted-runner-fleets.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-instructionsUse when the user asks to "set up CLAUDE.md", "set up AGENTS.md", "agent instructions", "add engineering rules", "make the instructions thinner", or needs to establish or maintain a thin, multi-vendor root instruction file backed by on-demand engineering rules under docs/rules/./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents.