agentleFS
HM-IT-CODEHM-IT-CODE/forge-skills/skills/devops/ci-pipeline/SKILL.md

ci-pipeline

Skill0 starsChanged 6 months agoMITView on GitHub

Scaffolds a GitHub Actions CI pipeline tailored to the project's stack. Use when the user says "add CI", "set up GitHub Actions", "add a pipeline", "automate tests on push", or wants lint/test/build to run on every PR. Produces a cached, matrix-aware workflow.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. noah-sheldon/ai-dev-kit★ 13same name
    2. viknesh20-20/claude-code-tool-kit★ 7same name
    3. zeon-kun/claude-skills★ 6same name
    4. vndee/engineering-skills★ 3same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add concurrency: to cancel superseded runs on the same ref.

    line 28
  2. Distinctive:

    Use a matrix only when it earns its keep (multiple language/OS versions the project actually supports).

    line 29

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

Generate a GitHub Actions workflow that runs the right checks on every push and PR, with dependency caching so it stays fast. A green check on the PR should mean "safe to merge."

Step 1 — Detect stack and existing tooling

Determine the language, package manager, and the actual lint/test/build commands the repo already uses (read package.json scripts, Makefile, justfile, Cargo.toml, pyproject.toml, go.mod). Reuse existing commands — don't invent new ones.

Step 2 — Write .github/workflows/ci.yml

Structure every pipeline as ordered jobs that fail fast:

  1. lint — formatter + linter in check mode (prettier --check, eslint, ruff, cargo fmt --check + cargo clippy -- -D warnings, gofmt/golangci-lint).
  2. test — the project's test command, with the suite required to pass.
  3. build — compile / bundle to prove the artifact is producible.

Apply these rules:

  • Trigger on push to the default branch and on pull_request.
  • Cache dependencies with the official cache (e.g. actions/setup-node with cache:, Swatinem/rust-cache, actions/setup-go cache, pip cache).
  • Pin action versions to a major tag (actions/checkout@v4), never a floating branch.
  • Set permissions: to least privilege (contents: read by default).
  • Add concurrency: to cancel superseded runs on the same ref.
  • Use a matrix only when it earns its keep (multiple language/OS versions the project actually supports).

Reference shape (Rust)

name: CI
on:
  push: { branches: [main] }
  pull_request:
permissions:
  contents: read
concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with: { components: rustfmt, clippy }
      - uses: Swatinem/rust-cache@v2
      - run: cargo fmt --all -- --check
      - run: cargo clippy --all-targets -- -D warnings
      - run: cargo test --all
      - run: cargo build --release

Translate the same lint → test → build spine to whatever stack you detected.

Step 3 — Offer extras (don't force)

Mention, but only add if the user wants them: a release workflow that builds cross-platform binaries on tag, dependency caching tuning, code coverage upload, and Dependabot config. Keep the core ci.yml lean.

Step 4 — Verify

Show the final workflow and explain what each job gates. Note any secret or permission the user must add in repo settings (e.g. for release uploads). Do not commit or push unless asked.

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.