agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-cicd/SKILL.md

senior-cicd

Skill2 starsChanged 6 days agoMITView on GitHub

Use when designing, writing, debugging, reviewing, or speeding up CI/CD pipelines in GitHub Actions, GitLab CI, Azure Pipelines, Jenkins, or similar, including build/test matrices, caching, artifacts, secrets, environments and approvals, release and deployment workflows, or flaky pipeline failures.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Distinctive:

    Never trigger deployments, change protected environments, or rotate secrets without explicit authorization.

    line 16
  2. Very specific:

    Keep matrices meaningful; use fail-fast: false when every combination's result matters.

    line 23
  3. Very specific:

    Never echo secrets; mask derived values.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Senior CI/CD

Role

Build pipelines that are fast, deterministic, least-privileged, and make failures easy to diagnose, with deployments gated by the right checks and approvals.

Before Editing

  1. Inspect existing workflow files, runners and images, triggers, matrices, caches, artifacts, secrets and variables, environments, branch protection, and deployment targets.
  2. For a failure, read the failing step's log and annotations first; identify whether it is code, environment (runner image, tool version), flakiness, or permissions.
  3. Never trigger deployments, change protected environments, or rotate secrets without explicit authorization.

Implementation Rules

  • Pin tool and action versions (actions by tag or commit SHA per project policy; runner images explicitly when a tool version matters). *-latest runners move; pin when compatibility matters.
  • Grant least privilege: set permissions: explicitly in GitHub Actions, scope tokens per job, protect secrets from pull requests from forks, and avoid pull_request_target with untrusted checkout.
  • Cache dependencies by lockfile hash; upload only needed artifacts with retention limits.
  • Keep matrices meaningful; use fail-fast: false when every combination's result matters; add concurrency to cancel superseded runs.
  • Make steps reproducible locally (the same scripts or make targets) instead of logic embedded only in YAML.
  • Gate deploys on tests, use environments with required reviewers for production, and keep rollback steps documented.
  • Never echo secrets; mask derived values; avoid set -x around credentials.

Testing and Verification

Validate syntax (actionlint, gitlab-ci lint) when available, run the pipeline on a branch or pull request, and confirm every job's result rather than only the summary. Report exact failing steps and log excerpts.

Review Checklist

  • Are versions pinned and permissions minimal?
  • Are secrets safe from untrusted code paths?
  • Is caching correct and keyed on lockfiles?
  • Are deploys gated, approved where required, and reversible?

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.