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 Arasz/ai-raccoon --skill pre-push-gate-debugginggit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/pre-push-gate-debugging)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/pre-push-gate-debugging"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/pre-push-gate-debugging/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/arasz/ai-raccoon/pre-push-gate-debugging"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/pre-push-gate-debugging.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.00085 | $0.02742 |
| Opus 5.5 | $0.00034 | $0.01097 |
| Sonnet 5.5 | $0.00017 | $0.00548 |
| Haiku 4.5 | $0.00009 | $0.00274 |
Grade A, and why
pre-push-gate-debugging scanned grade A 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Drive the failing flow with curl, sending the app's auth header (see reference). How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pre-push verification gate debugging
Repos with heavy local gates block git push until every lane passes (lefthook pre-push hook
calling a verify script that runs docs, unit, E2E, infra and frontend lanes). This skill is for
operating and debugging that gate without burning whole-gate cycles. The methods here
are generic; keep a repo-specific playbook beside the gate script (lane list + commands,
log layout, repro steps) as this skill's reference when one exists.
Detect and understand the gate
lefthook.yml→pre-push→script+runner(+root). Read the script's header comments FIRST: usage, lane names, exit codes, env vars (VERIFY_MODE,VERIFY_SKIP), self-test, and the "reproduce / bypass / logs" failure contract.- A blocked push ends with
🥊 quality gate (Ns)andexit status 1. The hook buffers lane output — never diagnose from the push output alone.
Workflow
- Read the gate's own logs first. The failure block prints:
reproduce: bun <script> <lane>— run exactly this to re-run one lane (minutes, not the whole gate).logs: <dir>/<lane>.log— the lane's full output;<dir>/progress.logis the run timeline (mode, which lanes ran, PASS/FAIL per lane).- Log dir is per-worktree (hash of the worktree path) — find it by mtime (
ls -t), not by recomputing the hash.
- Run one lane for fast iteration:
bun <script> <lane>(e.g.api-e2e). Only re-run the full gate (<script> pre-push) when the lane is green. - The gate tests the WORKING TREE, not the pushed ref. If you push from a different checkout than the one you want verified, the lanes verify the wrong bytes. Gate-test the tree you intend to push.
- E2E/infra lanes:
- They start their own AppHost (Docker: emulator containers) OR reuse a live dev stack that is already ready (probed first). Reuse is convenient but carries state forward.
- Cross-run state contamination: emulator data persists across suite runs on a reused stack. Durable orchestration instance IDs are PERMANENTLY TAKEN after a terminal state, so a later run scheduling the same deterministic ID 409s or silently dedupes. Symptom: a test passes alone, then a DIFFERENT test fails on a later full run with no code change. Fix: fresh ephemeral volumes (kill the reused stack, let the lane start its own).
- Worktree gotchas: a bare
git worktree addhas NO node_modules → tooling lanes fail (tscTS2688 "Cannot find type definition file for 'bun'", bun test resolution errors). Fix: symlink the main checkout's node_modules into the worktree. Never commit node_modules. - Manual repro harness (when the lane's test output hides the real error — e.g. an
orchestration ends
failedwith an EMPTY error field):- Start the infra exactly as the lane does (see the reference / lane source for the AppHost command and env).
- Build the host under test and run it with the E2E settings (the lane copies a
local.settings.e2e.json-style file into the build output before the tests run). - Drive the failing flow with curl, sending the app's auth header (see reference).
- Read the HOST's own logs: orchestration/activity failures appear there with the full
exception ("Task 'X' failed with an unhandled exception: ..."), never in the HTTP status
payload.
failed+ emptyerrorin the API body = the detail is in the host logs.
- Auto-repair: some gates try to regenerate drifted artefacts (baseline.json, index.json) before failing. If repair "declined", the cause is NOT drift — read the lane log.
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.
- yesterday First seen · 141 lines · 85 tokens per session scan A 6a8ef7759e60
pre-push-gate-debugging is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 2,742 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
pre-push-gate-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pre-push-gate-debuggingArasz/ai-raccoon | Skill | 7 | today | MIT | A | 85 | Claude Code, Codex |
| test-runnerPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 59 | Claude Code |
| compiler-11897630FuRongJun-1999/dsh-memory | Skill | 778 | today | MIT | A | 83 | Claude Code |
| testing-blocksadobe/skills | Skill | 345 | today | Apache-2.0 | A | 114 | Claude Code |
| webapp-qaPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 29 | Claude Code, Codex |
| diagnosing-bugsjellydn/my-ai-tools | Skill | 132 | today | MIT | A | 34 | Claude Code |
| debugariaxhan/kernel-claude | Skill | 16 | yesterday | MIT | A | 64 | Claude Code |