agentleFS
sohaibdevvsohaibdevv/AI-AGENT-SKILLS/skills/ci-cd-and-automation/SKILL.md

ci-cd-and-automation

Skill2 starsChanged 6 months agoMITView on GitHub

Design CI/CD pipelines with fast feedback, quality gates, and reliable deployments

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, deprecation-and-migration and 7 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.
  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 projects that use this

  • az9713Skill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 20 projects that use this

  • borhen68Skill

    observability-and-instrumentation

    Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

    Also in 10 projects that use this

  • luischanciSkill

    interview-me

    Interactive interview to formalize a research idea into a structured specification with hypotheses and empirical strategy.

    Also in 13 projects that use this

  • OpenAISkill

    requesting-code-review

    Use when completing tasks, implementing major features, or before merging to verify work meets requirements

    Also in 4 projects that use this

  • OpenAISkill

    finishing-a-development-branch

    Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

    Also in 3 projects that use this

  • +3 more from openai

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When setting up CI/CD for a new project

    line 14
  2. Distinctive:

    When the CI pipeline is slow (>10 minutes)

    line 15
  3. Distinctive:

    When CI is consistently failing for reasons unrelated to code quality

    line 16
  4. Distinctive:

    Before adding a new automated gate to CI

    line 17
  5. Distinctive:

    Run stages in parallel where possible

    line 33

“Common” is measured: kept by at least 6 in 10 of the 39 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

Overview

A slow CI pipeline is a productivity killer. A CI pipeline that lets bad code through is worse than no pipeline. This skill designs pipelines that are fast enough to not be skipped, and thorough enough to catch real problems.

When to Use

  • When setting up CI/CD for a new project
  • When the CI pipeline is slow (>10 minutes)
  • When CI is consistently failing for reasons unrelated to code quality
  • Before adding a new automated gate to CI

Process

Step 1: Define the pipeline stages

Standard stages:

  1. Fast checks (<2 min): lint, type check, compile
  2. Unit tests (<5 min): isolated, no network, no database
  3. Integration tests (<10 min): with real dependencies
  4. Security scan: dependency audit, SAST
  5. Build: Docker image, artifact
  6. Deploy to staging
  7. E2E tests against staging
  8. Deploy to production (gated by manual approval or automated checks)

Step 2: Optimize for speed

  • Run stages in parallel where possible
  • Cache aggressively: dependencies, build artifacts, Docker layers
  • Fail fast: put the fastest checks first
  • Target: full pipeline under 15 minutes

Step 3: Required gates before merge

Minimum required to merge a PR:

  • All tests pass
  • No new high/critical security vulnerabilities (dependency audit)
  • Code coverage hasn't regressed (enforced threshold, not aspirational)
  • Linting passes (no new lint errors)

Step 4: Required gates before deploy to production

  • Staging deploy succeeded
  • E2E tests on staging passed
  • Performance tests within SLO (for perf-sensitive changes)
  • Rollback procedure documented

Step 5: Branch protection

  • Main/master branch requires PR (no direct pushes)
  • PR requires CI pass + at least 1 review
  • Stale approvals invalidated on new commits

Step 6: Environment variable management

  • Secrets stored in CI environment variables, not code
  • Different secrets per environment (dev/staging/prod never share production secrets)
  • Rotate secrets on schedule, not just on breach

Step 7: Monitor the pipeline

Track: build success rate, build duration trends, flaky test rate. A flaky test that is retried silently is a reliability problem.

Verification Requirements

  • Pipeline stages defined with clear purpose for each
  • Full pipeline runs under 15 minutes
  • Required gates enforce: tests, security, linting
  • Branch protection enabled
  • No secrets in pipeline code
  • Flaky test rate < 1%

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.