Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Tiny repos where CI cost exceeds value (prototype stage) unless the user explicitly wants it
Complex deployment platforms without access (require infra context first)
Gotchas
“Green CI” that doesn’t match local commands becomes ignored.
Unpinned runtimes cause flakey builds over time.
Missing branch protections makes CI advisory-only.
Long pipelines encourage skipping checks; keep PR path fast.
Common Rationalizations
Excuse
Reality
"We don’t need CI yet"
CI is cheapest when the repo is small; add the PR gates early.
"Let’s add every check"
Overbuilt CI becomes slow and ignored; start minimal and expand on evidence.
"Caching is premature optimization"
Without caching, CI becomes slow and gets bypassed.
"We’ll add branch protection later"
CI without enforcement is a suggestion, not a gate.
"We can just use a PAT"
PATs are high-risk; use least-privilege tokens and secret stores.
Output Format
## CI/CD plan — [repo]
Events: [PR/main/tag/manual]
Jobs: [list]
Runtime pinned: [yes/no]
Caching: [what]
Secrets: [needed + where stored]
Protections: [branch protections summary]
Verification: [how to prove it works]
Examples
“Add CI to a TypeScript repo.”
Create `.github/workflows/ci.yml` with node-version pinned, npm cache, `npm ci`, `npm run lint`, `npm test`, `npm run build`, concurrency cancel. Add branch protection requiring the workflow.
Verification
PR checks run on a sample PR and complete in an acceptable time
Lint/tests/build are deterministic and match documented local commands
Caching is enabled where appropriate
Secrets are stored in the platform secret store (not repo)