git-work

git-work is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 82 tokens per session (1,479 once invoked), scanned A, original, MIT.

A guide for handling Git pushes, continuous-integration failures, pull requests, and merges outside a tracked task workflow. Git records code history and branches, while continuous integration, or CI, runs automated checks on changes.

In plain words
What is it for?
Use it for non-fast-forward push recovery, CI log triage, draft-to-squash pull requests, protected-branch requirements, and safe force-pushing with a lease.
Why use it?
It helps recover from rejected pushes without overwriting other people's work, distinguish real CI failures from flaky tests, and follow a consistent path from review to merge.

Skill for Claude CodeCodex

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

Good fit Use it for non-fast-forward push recovery, CI log triage, draft-to-squash pull requests, protected-branch requirements, and safe force-pushing with a lease.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/git-work
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 git-work
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 git-work

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/git-work/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/git-work)
Your own site
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/git-work"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/git-work/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 git-work

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/git-work"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/git-work.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00082 $0.01479
Opus 5.5 $0.00033 $0.00592
Sonnet 5.5 $0.00016 $0.00296
Haiku 4.5 $0.00008 $0.00148

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

Security

Grade A, and why

git-work 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 yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/git_config_health_hook.py, scripts/git_internals_guard.py, scripts/shell_parser.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.ai-badger/skills/git-work/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git work: push, CI, and PR lifecycle

Covers pushes, CI runs, PRs, and merges on any branch. A blocked pre-push gate belongs to pre-push-gate-debugging; multi-agent worktree setup belongs to worktree-agent-isolation. When the task skill's github extension is active, its PR flow is authoritative and this skill fills the gaps around it.

Push failures without a gate cause

Non-fast-forward (! [rejected] … fetch first) resolves through this sequence:

  1. git fetch origin <branch> — stale refs manufacture most rejections.
  2. Assess divergence: git log --oneline HEAD..origin/<branch> and the reverse.
  3. Small real difference → rebase onto the new base (git stash push -u first when WIP is present). Divergent histories worth keeping → merge. Rebase keeps the PR diff readable.
  4. Push rebased work as git push --force-with-lease origin <branch> — the lease rejects when someone pushed between fetch and push; a plain --force overwrites unseen work.

Branch protection rejections name the missing checks or statuses; satisfy the named requirement on the branch rather than seeking a bypass.

Crashed hook replay: a hook killed mid-run leaves the lock file named in the error; remove that file, then replay the operation once.

Auth failures (403/404 on a repo you can see) mean expired credentials; refresh via the platform CLI (gh auth status, gh auth login) before retrying.

Frozen remote-tracking refs (git fetch reports success but origin/<branch> never moves) means .git/config lost remote.origin.fetch or a [branch] section. Read references/git-config-repair.md when that happens, before editing the file by hand.

CI failure triage

  • Read only what failed: gh run view <id> --log-failed.
  • Reproduce vs rerun: a failure naming your diff (assertion, lint finding) reproduces locally first; infra-shaped output (timeout, connection reset, runner lost) earns one rerun of the single failing job before investigation starts — one, then stop. Re-running a job or suite to see whether it stays green is not triage: flake attribution works from the runs that already happened (which failed, which passed, what differed) and files the evidence; manufacturing extra runs is the repetition the test-run-economy invariant bans.
  • Env-only failures (green locally, red in CI): compare runtime versions across the matrix, working directory, and secret/env presence before suspecting the code.
  • Flake attribution: record which run failed, which passed, and what differed; a test that alternates on identical code is filed as flaky with that evidence.
  • Red CI after a force push is the expected fresh run on rewritten history; read the new run's results, since the pre-rebase run describes commits that no longer exist.

Read the full file on GitHub · 107 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 107 lines · 82 tokens per session scan A a2edbf888b7f

Subscribe to this mod's changes

git-work is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 82 tokens to every session and 1,479 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-12-05.

Related

git-work compared with skills from other repositories

git-work next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-workArasz/ai-raccoonSkill7todayMITA82Claude Code, Codex
cartographer-kb-conflict-resolveBeppeTemp/cartographerSkill74yesterdayApache-2.0A24Claude Code, Codex
shipariaxhan/kernel-claudeSkill16yesterdayMITA46Claude Code
githubGen-Verse/PAST-BenchSkill404mo agoApache-2.0A44Claude Code, Codex
github-proxyvolcengine/OpenVikingSkill43ktodayAGPL-3.0A94Claude Code, Codex
release-rollbackPrismer-AI/PrismerCloudSkill1.4k1mo agoMITA96Claude Code
evolve-lite:publishAgentToolkit/altk-evolveSkill1435d agoApache-2.0A28Claude Code, Codex