Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tmj-90/gaffer --skill ci-cd-pipelinegit clone --depth 1 https://github.com/tmj-90/gafferWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tmj-90/gaffer/ci-cd-pipeline)<a href="https://agentmods.dev/skills/tmj-90/gaffer/ci-cd-pipeline"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/ci-cd-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tmj-90/gaffer/ci-cd-pipeline"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/ci-cd-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.01430 |
| Opus 5.5 | $0.00027 | $0.00572 |
| Sonnet 5.5 | $0.00013 | $0.00286 |
| Haiku 4.5 | $0.00007 | $0.00143 |
Grade A, and why
ci-cd-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build pragmatic CI/CD pipelines
A pipeline runs the repo's own commands, fast, with the least privilege that works, and
deploys one immutable artifact through environments. It runs untrusted code (every pull
request), so it is also an attack surface: follow GitHub's "Secure use" guidance for
Actions and SLSA for build provenance. For a red pipeline, use debug-failing-ci instead.
Procedure
- Detect the real commands. Read
package.jsonscripts,Makefile,pyproject.toml,go.mod,Cargo.toml,pom.xml/build.gradle, the lockfile, and any existing workflow. Extract the exact lint, typecheck, test and build commands;search_lorefor CI conventions. Never invent a command; if a stage has no command, omit the stage. - Order the workflow's stages cheap-to-expensive (you write these; you never run
the install yourself): install (lockfile-exact:
npm ci,pnpm install --frozen-lockfile,pip install -rwith hashes,go mod download) → lint/typecheck → unit tests → integration tests → build → scan → deploy. Fail fast; parallelise independent jobs. - Make tests gate. No
continue-on-error: true, no|| true, no skipped suites on the test job. Run the integration and concurrency tests the repo has — a green pipeline that skips them is how concurrent-writer data loss shipped twice in live runs. - Harden the workflow (GitHub Actions):
- Top-level
permissions: contents: read; grant more per job only where needed (packages: writeto publish,id-token: writeonly on the deploy job). - Pin every third-party action to a full-length commit SHA with the tag as a comment:
uses: actions/checkout@<40-char-sha> # v4.2.2. Add a Dependabot entry forpackage-ecosystem: github-actionsso pins get updated. - Never interpolate untrusted context into
run:—github.event.pull_request.title,.body,github.head_ref, issue/comment bodies, commit messages. Pass viaenv:and quote:env: TITLE: ${{ github.event.pull_request.title }}then"$TITLE". - Use
pull_request, notpull_request_target, for building PR code. Never check out PR head code in apull_request_targetorworkflow_runjob. actions/checkoutwithpersist-credentials: falseunless the job must push.- Cloud access via OIDC federation, not long-lived keys; restrict the cloud trust policy
to the repo and the protected environment (
subclaim). - Secrets only from the secret store, one secret per value (no JSON blobs — redaction
fails); register derived secrets with
::add-mask::.
- Top-level
- Serialise deploys.
concurrency: { group: deploy-<env>, cancel-in-progress: false }on deploy jobs so two runs never deploy the same environment at once; usecancel-in-progress: trueonly for PR validation. Production deploys use a protectedenvironment:with required reviewers. Settimeout-minuteson every job. - Build once, promote the digest. Build the artifact/image once, tag it by commit SHA,
deploy that exact digest to staging and then production. For release artifacts, emit
signed build provenance (e.g.
actions/attest-build-provenance) — on hosted runners this reaches SLSA Build L2. - Cache by lockfile hash (
actions/setup-nodecache:, oractions/cachekeyed onhashFiles('**/pnpm-lock.yaml')). A cold cache must still produce a correct build. - GitLab CI equivalents:
rules:instead ofonly/except;resource_groupto serialise deploys;id_tokens:for OIDC; protected, masked variables; images pinned by digest;interruptible: trueonly on validation jobs. - Verify and evidence (below) with the
record-evidenceskill, then stop. You cannot push or trigger CI, so the workflow first runs only after the branch leaves the factory (the runner pushes and opens a PR only when PR creation is enabled). Say so in the evidence rather than claiming a green run.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +25 lines 4f46d9335094
- 3mo ago First seen · 65 lines · 67 tokens per session scan A 4ef3a17763f4
ci-cd-pipeline is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,430 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ci-cd-pipeline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ci-cd-pipelinetmj-90/gaffer | Skill | 1 | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| bulwark-brainstormQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 50 | Claude Code |
| plan-creationQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 38 | Claude Code |
| anthropic-validatorQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 40 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 42 | Claude Code |
| mock-detectionQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 13 | Claude Code |