agentleFS
jacksonwilliamsvajacksonwilliamsva/kiro-skills-library/skills/ci-cd-and-automation/SKILL.md

ci-cd-and-automation

Skill2 starsChanged 7 months agoMITView on GitHub

Use when setting up or modifying CI/CD pipelines, adding quality gates, configuring deployment strategies, or debugging CI failures — any work that touches automated build, test, or deploy workflows

  • Reads credentials

86 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility-engineering, constraint-driven-development and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 19 projects that use this

  • jaydubya818Skill

    observability-and-instrumentation

    Add or review logs, metrics, traces, and actionable alerts.

    Also in 33 projects that use this

  • seikaikyoSkill

    doubt-driven-development

    對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。

    Also in 37 projects that use this

  • seikaikyoSkill

    interview-me

    需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。

    Also in 34 projects that use this

  • AnasX7Skill

    minimalist-ui

    Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 1 is common, 1 is distinctive, and 2 are very specific to this project.

  • 1

    Common

    Most of the 83 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Every change passes these gates before merge:

    line 18
  2. Very specific:

    GitHub Actions (primary): Use actions/checkout@v4, actions/setup-node@v4 with cache option.

    line 26
  3. Very specific:

    Terraform: NEVER run terraform apply from the shell.

    line 28
  4. Distinctive:

    Rollback plan: every deployment must be reversible

    line 38

“Common” is measured: kept by at least 6 in 10 of the 83 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CI/CD and Automation

Core Principles

Shift Left: Lint before tests, tests before staging, staging before production. A bug caught in linting costs minutes; in production, hours.

No Gate Skipping: Lint fails → fix lint, not disable the rule. Test fails → fix the code, not skip the test.

Faster is Safer: Smaller batches reduce risk. 3 changes are easier to debug than 30.

The Quality Gate Pipeline

Every change passes these gates before merge:

PR Opened → Lint → Type Check → Unit Tests → Build → Integration Tests → E2E (optional) → Security Audit → Ready for Review

Key Patterns

GitHub Actions (primary): Use actions/checkout@v4, actions/setup-node@v4 with cache option. Run npm ci (not npm install). Split lint/typecheck/test/build into parallel jobs when pipeline exceeds 10 minutes.

Terraform: NEVER run terraform apply from the shell. All applies go through Digger CI. This is non-negotiable — plan locally, apply via CI only.

CI security: Defer to the security-guidance skill for workflow security patterns (secret injection, pull_request_target risks, pinned action versions). Store secrets in GitHub Secrets or a vault — never in code or CI config.

Environment secrets: .env.example committed (template), .env NOT committed, CI secrets in GitHub Secrets/vault, production secrets in deployment platform/vault.

Deployment Strategy

  1. Preview deploys on every PR for manual verification
  2. Staged rollouts: PR → staging (auto) → production (manual trigger)
  3. Rollback plan: every deployment must be reversible
  4. Feature flags: ship behind flags, enable when ready, set cleanup dates

CI Optimization (when pipeline > 10 min)

  1. Cache dependencies
  2. Parallelize jobs (lint, typecheck, test, build)
  3. Path filters — skip unrelated jobs (e.g., skip E2E for docs-only PRs)
  4. Shard test suites with matrix builds
  5. Move slow tests to scheduled runs

Anti-Rationalization Table

RationalizationReality
"CI is too slow"Optimize the pipeline, don't skip it. 5 min prevents hours of debugging.
"This change is trivial, skip CI"Trivial changes break builds. CI is fast for trivial changes anyway.
"The test is flaky, just re-run"Flaky tests mask real bugs. Fix the flakiness.
"We'll add CI later"Projects without CI accumulate broken states. Set it up on day one.
"Manual testing is enough"Manual testing doesn't scale and isn't repeatable.

Verification Checklist

  • All quality gates present (lint, types, tests, build, audit)
  • Pipeline runs on every PR and push to main
  • Failures block merge (branch protection configured)
  • Secrets in secrets manager, not in code
  • Deployment has a rollback mechanism
  • Pipeline runs under 10 minutes
  • Terraform applies go through Digger CI, not shell

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.