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 debug-failing-cigit 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/debug-failing-ci)<a href="https://agentmods.dev/skills/tmj-90/gaffer/debug-failing-ci"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/debug-failing-ci/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/debug-failing-ci"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/debug-failing-ci.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.00088 | $0.01591 |
| Opus 5.5 | $0.00035 | $0.00636 |
| Sonnet 5.5 | $0.00018 | $0.00318 |
| Haiku 4.5 | $0.00009 | $0.00159 |
Grade C, and why
debug-failing-ci scanned grade C with 1 finding 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 16d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- The safety hook blocks `git clean -fdx`, `rm -rf`, `env`/`printenv` and installs; use How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug a failing CI pipeline
A red pipeline measures a difference: between your machine and the runner, between two commits, or between two runs of the same commit. Find the difference, fix what it reveals, and never make CI green by making it look away.
How this works in Gaffer. You never push and cannot re-run CI yourself. The runner pushes your branch and opens a PR only when the operator has enabled that, and only then can its opt-in CI gate run: a red check sends the delivery back to rework with the failing check attached as evidence. So your proof is a local reproduction under CI's exact conditions — fails before, passes after — and any later CI run is the runner's.
Steps
- Get the real failure text. Read
get_ticket(the description,last_review_feedbackandlatest_events) plus any review-feedback block in your prompt. Find the FIRST error in the log, not the last — later failures are usually consequences. Note the step, the exact command, and the exit code. Callsearch_lorefor known CI gotchas in this repo. If only a check name and URL are available and you cannot open the log (no network or credentials), go on to step 3 anyway: the workflow file tells you what CI ran. - Classify before fixing. Each class has a different fix:
- code / test — the change is wrong, or a test encodes stale behaviour;
- flake — passes and fails on the same commit (order, time, shared state, network);
- environment drift — tool or runtime version, OS (BSD vs GNU
sed/date), locale or timezone, a file present locally but ignored or untracked in git; - workflow config — YAML syntax, matrix,
needs:, paths filters, a secret that is absent on forks; - infrastructure — runner outage, registry or rate-limit error, disk full. Do not change code for this: report it (see "Stop and escalate when").
- Reproduce CI's conditions. Open the workflow (
.github/workflows/*.yml,.gitlab-ci.yml, …) and copy the exact commands, the runtime versions (setup-node,.nvmrc,python-version), the env vars and the working directory. Run the build, test and lint commands, not your local alias. Never run the workflow's install or setup steps (npm ci,pnpm install,pip install,bundle install,uv sync,playwright install, …): the worktree uses the existing install. If the failure is in an install step, reason from the lockfile and escalate. Comparenode --version(or the ecosystem's equivalent) with the pinned version. List what your run depends on that a fresh checkout lacks:git status --porcelain --ignoredshows untracked and ignored files (generated code, a local config, a cache). Most "works on my machine" failures die here. - Bisect when the cause is not obvious. If the job passed on an earlier commit:
git bisect start <first-red> <last-green>, thengit bisect run <failing command>, thengit bisect reset. For a suspected flake, measure the rate with a loop (for i in {1..20}; do <cmd> || echo FAIL; done) and run the test alone vs with the suite to expose order dependence. - Fix the cause. A real test failure → fix the code (the
fix-bugskill). A flake → fix the nondeterminism (thefix-flaky-testskill). Drift → pin the version, install the tool in the workflow, or make the script portable (theshell-scriptingskill). A workflow error → fix the YAML and keeppermissions:minimal. - Prove it locally. Show the CI command failing before your fix and passing after;
for a flake, the loop at 20/20. Record it via the
record-evidenceskill astest_output: the log excerpt, the cause in one sentence, the passing command and its summary. Useci_runonly for a real CI run URL you actually observed. On a resume, where that call is refused, put this in your final message instead (seerecord-evidence). - Leave the pipeline better, briefly. If the log hid the cause, add the one missing diagnostic (print the tool version, upload the test report) when it is small.
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.
- 16d ago Changed · +35 lines scan A → C 4ce62c76190a
- 19d ago First seen · 64 lines · 88 tokens per session scan A 881bfd33fd45
debug-failing-ci is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 88 tokens to every session and 1,591 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.
Other skills, from other repositories
issue-debugging
Systematic methodology for issue debugging including root cause analysis, impact mapping, tiered validation plans, and confidence assessment. Use when analyzing bugs, fixing issues, or validating fixes.
fix-bug
Run the Fix Validation pipeline to investigate, fix, and validate a bug. Ensures deterministic pipeline execution with IssueAnalyzer, FixWriter, TestWriter (conditional), TestAudit (conditional), and FixValidator stages.
loop-triage
Triage recent CI failures, open issues, and recent commits into a prioritized, actionable picture. Reads the prior STATE.md as memory and rewrites it. The maker half of the loop.
pact-bug
Log a bug investigation using PACT's structured bug tracker.
browser-edge-cases
SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
triage-issue
Analyze a GitHub issue, verify claims against the codebase, and close invalid issues with a technical response.