agentleFS
DariuszDuszaDariuszDusza/agentic-workflow-foundry/.agents/skills/ci-cd-change/SKILL.md

ci-cd-change

Skill1 starsChanged 27 days agoApache-2.0View on GitHub

Use when changing a CI pipeline definition, a deploy or release job, build automation, the root Makefile or its delegation, or the list of gates the pipeline runs. Keeps local and CI verification one definition, secrets out of logs, and every path to production behind an explicit approval.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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:

    Never weaken a gate to get green: no continue-on-error, no allow-failure, no skipped hooks, no --no-verify.

    line 30

≈ “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

CI/CD change

Required context

  1. .agents/guardrails/change-delivery.md: how a change reaches the trunk, and what verifies it.
  2. .agents/guardrails/infrastructure.md: for anything that deploys.
  3. .agents/guardrails/git-safety.md: branches, tags and what automation may push.
  4. .agents/rules/root-makefile-delegates.md and .agents/rules/gate-authoring.md.
  5. .agents/policy/approval-matrix.yml and .agents/policy/permissions.yml: which action classes need which approval, including deploys.
  6. tools/gates.txt: the gate list make verify runs.

The rules that bite

  • One definition of "verified". CI calls make verify and make test-gates; it does not re-implement their checks in pipeline syntax. Two definitions drift, and then a change is green locally and red in CI, or worse, the reverse.
  • The root Makefile delegates, never reimplements. A target that duplicates a sub-area's logic is a second copy that will disagree with the first.
  • A new gate joins tools/gates.txt with its own assertion suite (docs/decisions/0005-every-gate-has-an-assertion-suite.md). A gate nothing invokes never runs.
  • Read verdicts from exit codes. A step whose command is piped through tail or grep reports the last command's status and hides a failure. Use set -o pipefail or capture to a file.
  • Never weaken a gate to get green: no continue-on-error, no allow-failure, no skipped hooks, no --no-verify. Fix the cause or record a decision.
  • Shallow clones break history-derived values. Version from git describe, last-modified dates and changed-file lists all need the history they read. Fetch what the step needs.
  • Secrets come from the CI secret store, are masked, and are never echoed, including by a verbose or debug flag. Tokens get the least privilege the job needs, scoped to the job.
  • Pin what you run. Third-party pipeline steps and images are pinned to a version or digest; a floating reference is someone else's code running with your secrets.
  • Production deploys are gated by an explicit approval, per .agents/policy/approval-matrix.yml. A pipeline path that reaches production without it (a manual trigger with no gate, a branch pattern that matches too much) is a defect.
  • Cache keys include the lockfile hash, or a stale dependency set passes a build it should fail.
  • Automation never pushes to the default branch or force-pushes. It opens a pull request like anyone else (docs/decisions/0002-nothing-lands-on-main-without-review.md).

Verify

make verify                    # the same gates CI will run
make test-gates                # every gate's own suite, and the hook tests
<the pipeline linter or a local dry run, where one exists>

Reviewers: infra-change-reviewer for pipelines and deploys, code-reviewer for scripts, guidance-consistency-reviewer when the Makefile's help lines are quoted in guidance.

Escalate when

  • The change deploys, or changes how or when production is deployed.
  • A token's permissions widen, or a new secret is added to the CI store.
  • A third-party step, image or action is added (a dependency change).
  • Branch protection, required checks or merge rules change.
  • A gate would be removed or made non-blocking.

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.