git-safety-net

git-safety-net is a skill for Codex from daymade/claude-code-skills. It costs 107 tokens per session (19,051 once invoked), scanned C, original, MIT.

A workflow for checking factual claims in documents against web searches and authoritative sources. It covers items such as technical specifications, versions, dates, statistics, and model capabilities.

In plain words
What is it for?
Use it to list verifiable claims, compare them with reliable sources, and prepare a correction report for review.
Why use it?
It helps identify claims that may be wrong or out of date before they are published. Corrections are proposed for confirmation rather than applied automatically.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: positional $N argument.

Good fit Use it to list verifiable claims, compare them with reliable sources, and prepare a correction report for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/git-safety-net
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,557 stars · on GitHub

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 daymade/claude-code-skills --skill git-safety-net
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin git-safety-net — /plugin install git-safety-net after adding the marketplace above.

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-safety-net

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/git-safety-net/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/git-safety-net)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/git-safety-net"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/git-safety-net/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-safety-net

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/git-safety-net"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/git-safety-net.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 19,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00107 $0.19051
Opus 5.5 $0.00043 $0.07620
Sonnet 5.5 $0.00021 $0.03810
Haiku 4.5 $0.00011 $0.01905

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

Security

Grade C, and why

git-safety-net 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 today.

The scan reads SKILL.md. This mod also ships 28 executable files (scripts/git_align_checkout.sh, scripts/git_classify_refs.sh, scripts/git_export_before_drop.sh, …), 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

untracked files in a sibling clone one `rm -rf` from gone.
git-safety-net/SKILL.md · 1,005 lines

How it starts

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

Git Safety Net

Prevent losing work in a tangle of branches/stashes/rebases, and recover it forensically when something already went sideways. The commands here are all non-destructive or additive until a step is explicitly labeled destructive — recovery must never make the loss worse.

Outcome contract — keep the safety net subordinate to the user's job

Before Mode B/E or any command that writes a ref or backup, state the following in the conversation (do not create another file):

  • Outcome: the user-visible end state, in the user's words.
  • Current phase: what is authorized now. "Later" work is not authorized in this phase.
  • Authorized targets: named objects this phase may inspect, plus the subset it may change.
  • Stop condition: observable facts that end the task.

Then enforce these boundaries:

  • Evidence scope is not action scope. A read-only audit may discover another clone, ref, repository, or dangling object. That discovery may widen the report; it does not authorize preserving, uploading, merging, deleting, or otherwise changing the newly found object.
  • Authorization is object-specific, not repository-wide by implication. "Take over", "continue", or "finish the cleanup" applies only to the checkout/ref/PR the user identified. A collaborator-owned worktree, branch, or PR discovered later stays report-only until the user names it as a change target. If the user says to leave it alone, record that exclusion and do not inspect its working-tree contents, back it up, merge it, unlock/remove it, or mutate its refs.
  • Resolve authority from the current request and applicable standing user instructions. Authority for any action under this Skill is the current request read together with the standing user instructions that apply to this task (for example, a standing instruction that a task ends with checks, commit, publication, readback, and retiring that task's own temporary branches/worktrees). Later user restrictions still control. Splitting the work into phases alone does not revoke authority the task already carries: when the task already includes retiring its exact temporary resources, complete Mode E within that same task — a new task or fresh confirmation solely for entering retirement is a re-ask, not a gate. Mode E's evidence, preservation, and readback gates still apply in full. A merge alone still does not authorize extra targets, and targets the task's authority does not name stay report-only until separately authorized.
  • Preserve the smallest set threatened by the next authorized destructive action. If the current phase is only commit/push/verify and no deletion, reset, gc, history rewrite, or worktree removal is authorized, do not create an all-refs bundle or pin every dangler.
  • Classify an artifact before choosing its transport. Durable project source follows the repository's normal Git/LFS policy. A temporary recovery artifact (bundle, working-tree diff, snapshot, transport chunk) belongs in a repository-external backup directory. Do not stage, commit, push, or route it through Git LFS merely to make the backup remote; Git LFS is for durable versioned project binaries, not a fallback transport for temporary recovery material.
  • Never use a single/blanket offline backup as a cleanup or closeout path. Never propose, offer as a menu option, or execute packing multiple unreviewed branches, dirty worktrees, diffs, and untracked files into one offline archive (git bundle + .diff + copied files) so you can delete the live Git branches/worktrees. That converts inspectable Git state into an unsearchable offline graveyard and shifts the triage mess onto the user instead of finishing the job. Audit every unresolved branch and dirty worktree item-by-item against the fresh base and resolve each into one of four real outcomes: land valuable work the base lacks, prove superseded and retire directly (no archive graveyard), explicitly discard verified dead scratch with user approval, or keep in place as a live branch/worktree when active or awaiting a user decision. Reserve external exports strictly for short-lived, single-target rollback safety around an active destructive operation (or an explicit user export request for a named item). No bundled script enforces this prohibition automatically; the executing agent and independent reviewer must verify it on every Mode B/E plan and closeout.
  • Keep preservation and retirement as separate phases. A verified recovery artifact proves recoverability; it does not prove the business code landed. Keep an already-existing or operation-scoped artifact through its destructive action and content-level postconditions. Retire an exact task-owned temporary artifact only when every payload is landed or proven superseded and the artifact itself has explicit cleanup authorization. Keep pre-existing backup-only, unresolved, and mixed artifacts intact until audited item-by-item — never create a new catch-all offline archive to close out unresolved work.
  • Treat a new storage or execution surface as a scope change. A second repository, new remote, cloud upload, Git LFS, or full-history export requires re-planning and explicit authority when the stated outcome actually depends on it. Do not solve a transport problem the user did not ask to create.
  • Prove completion in the user's world. A remote containing the intended commit, preserved WIP, and the requested branch/worktree state are outcomes. Bundle counts, checksums, upload receipts, and audit breadth are supporting evidence, never substitutes for that outcome. Stop when the contract is satisfied; record unrelated findings separately without acting on them.

Read the full file on GitHub · 1,005 lines

Files

What ships with it

34 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. today Changed · -19 lines f6962ff14bde
  2. 2d ago Changed · +79 lines 1ad479612100
  3. 4d ago Changed · +22 lines 4f595904e44f
  4. 7d ago Changed · +11 lines e6470c53d59d
  5. 9d ago Changed · +25 lines 8e3337ffccec
  6. 11d ago Changed · +2 lines 70e35bdd4596
  7. 16d ago Changed · -31 lines 2ad5ee816e1d
  8. 17d ago Changed · +9 lines cf3e47c4d060
  9. 21d ago Changed · +6 lines 22416ea03ea8
  10. 25d ago First seen · 901 lines · 107 tokens per session scan C 0c338935ba17

Subscribe to this mod's changes

git-safety-net is a skill published in the GitHub repository daymade/claude-code-skills (1,557 stars, last pushed today), licensed MIT. It adds 107 tokens to every session and 19,051 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-03.

Related

git-safety-net compared with skills from other repositories

git-safety-net next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-safety-netdaymade/claude-code-skillsSkill1.6ktodayMITC107Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code