pre-push-gate-debugging

pre-push-gate-debugging is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 85 tokens per session (2,742 once invoked), scanned A, original, MIT.

A troubleshooting workflow for a pre-push quality gate: an automated check that must pass before Git allows a push. It explains how to rerun one failing check, read its full logs, and investigate test or environment problems.

In plain words
What is it for?
It helps debug failing documentation, unit-test, end-to-end-test, infrastructure, and frontend checks before pushing code.
Why use it?
It avoids repeating the entire check suite and prevents diagnosing a failure from incomplete push output. It also addresses cross-run state and local dependency issues.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps debug failing documentation, unit-test, end-to-end-test, infrastructure, and frontend checks before pushing code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/pre-push-gate-debugging
Install

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.

Any agent
npx skills add Arasz/ai-raccoon --skill pre-push-gate-debugging
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pre-push-gate-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/pre-push-gate-debugging/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/pre-push-gate-debugging)
Your own site
<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.

agentmods 80×15 button for pre-push-gate-debugging

Your own site · 80×15
<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>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,742 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 6a8ef7759e60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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).
.ai-badger/skills/pre-push-gate-debugging/SKILL.md · 141 lines

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) and exit status 1. The hook buffers lane output — never diagnose from the push output alone.

Workflow

  1. 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.log is 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.
  2. 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.
  3. 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.
  4. 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).
  5. Worktree gotchas: a bare git worktree add has NO node_modules → tooling lanes fail (tsc TS2688 "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.
  6. Manual repro harness (when the lane's test output hides the real error — e.g. an orchestration ends failed with 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 + empty error in the API body = the detail is in the host logs.
  7. 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.

Read the full file on GitHub · 141 lines

Changes

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.

  1. yesterday First seen · 141 lines · 85 tokens per session scan A 6a8ef7759e60

Subscribe to this mod's changes

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.

Related

pre-push-gate-debugging compared with skills from other repositories

pre-push-gate-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pre-push-gate-debuggingArasz/ai-raccoonSkill7todayMITA85Claude Code, Codex
test-runnerPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA59Claude Code
compiler-11897630FuRongJun-1999/dsh-memorySkill778todayMITA83Claude Code
testing-blocksadobe/skillsSkill345todayApache-2.0A114Claude Code
webapp-qaPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA29Claude Code, Codex
diagnosing-bugsjellydn/my-ai-toolsSkill132todayMITA34Claude Code
debugariaxhan/kernel-claudeSkill16yesterdayMITA64Claude Code