/harness-ship:ci-cd-and-automationfrom harness-ship
Designs and maintains CI/CD pipelines so every change passes automated quality gates before merge and deploys reversibly. Use when setting up or changing build and deployment pipelines, wiring test runners into CI, choosing a rollout or rollback mechanism, or diagnosing and speeding up a failing or slow pipeline.
Ships in harness-ship. 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.
None: SKILL.md is the whole skill.
CI is the enforcement layer for every other practice in the harness. People and agents miss things; a pipeline that runs the same checks on every change does not. Two principles drive the design:
Not for: one-off local scripts that never gate a merge or deploy.
Order gates from fastest to slowest, and stop at the first failure:
No gate may be bypassed. A failing lint rule gets fixed, not disabled. A failing test gets fixed or deleted with justification, not skipped to turn the pipeline green.
Sketch of a parallel layout (syntax varies by CI system):
jobs:
lint: { steps: [checkout, setup-runtime-with-cache, clean-install, run lint] }
typecheck: { steps: [checkout, setup-runtime-with-cache, clean-install, run typecheck] }
test: { steps: [checkout, setup-runtime-with-cache, clean-install, run tests with coverage] }
build: { needs: [lint, typecheck, test], steps: [checkout, clean-install, run build] }
Start the database as a disposable service container, apply migrations, then run the suite against it. Supply credentials from the CI secret store even for a throwaway database; it keeps a habit that prevents test credentials leaking into real configuration.
When a pipeline fails, give the exact failing output to whoever fixes it (human or agent) and require a local reproduction before pushing again.
| Failure | Response |
|---|---|
| Lint or format | Run the auto-fixer locally, review the diff, commit |
| Type or compile error | Go to the reported location and fix the cause, not the symptom |
| Test failure | Follow harness-verify:debugging-and-error-recovery |
| Build or dependency error | Check configuration, lockfile, and tool versions |
| Flaky test | Treat as a bug; quarantine with an owner and a deadline, never "just rerun" |
Give each pull request an ephemeral environment when feasible, so reviewers can exercise the change. Tear it down on merge or close.
Flags separate deploying code from releasing behavior. They let you merge early, disable without redeploying, expose a change to a small percentage first, and compare behavior with and without it.
if (flags.isEnabled('new-checkout', { userId })) return renderNewCheckout();
return renderLegacyCheckout();
Lifecycle: create, enable for testing, canary, full rollout, then remove the flag and the dead branch. Record an owner and a removal date at creation; flags that never die become debt. Test both states in CI.
Merge to main, deploy to staging automatically, verify, then promote to production (manual or automatic after checks). Watch error and latency signals for a defined window after promotion; on regression, roll back first and investigate second.
Every deploy must be reversible by a single, rehearsed action: redeploy a previous version, or flip a flag. If a manual rollback workflow takes a version input, pass the input through an environment variable rather than interpolating it into the shell script, to avoid command injection.
If the core test path exceeds about 10 minutes, apply in this order:
| Rationalization | Reality |
|---|---|
| "CI is too slow" | Optimize it; do not skip it. A few minutes of CI prevents hours of debugging. |
| "This change is trivial, skip CI" | Trivial changes break builds too, and CI is quick for them. |
| "The test is flaky, just rerun" | Reruns hide real defects and train people to ignore red. Fix or quarantine with an owner. |
| "We'll add CI later" | Unguarded projects drift into broken states. Add it on day one. |
| "Manual testing is enough" | It is not repeatable and does not scale. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nx1-org/platformnex-abilities --plugin harness-ship4 skills in this plugin
/deprecation-and-migrationPlans the removal of old systems, APIs, and features and the safe migration of consumers to replacements, including zero-downtime database schema changes using expand and contract. Use when replacing or sunsetting a system, moving users between implementations, renaming or dropping a column in production, or deciding whether to maintain or retire legacy code./documentation-and-adrsRecords the reasoning behind a codebase through architecture decision records, why-focused comments, API docs, READMEs, changelogs, and agent-facing project rules, plus a prose review pass. Use when making or revisiting an architectural decision, changing a public API, shipping user-visible behavior, onboarding people or agents, or when the same explanation keeps being repeated./shipping-and-launchGuides a production launch through a pre-launch checklist, feature-flagged staged rollout with go/hold/rollback thresholds, post-launch verification, an error-budget gate, and a written rollback plan. Use when preparing to deploy or release to production, deciding what must be in place before shipping, planning a canary, or writing a rollback plan.2 plugins ship this exact skill · first indexed Nov 17, 2026
Other plugins' skills for the same job