git

git is a skill for Claude Code from dean0x/devflow. It costs 36 tokens per session (1,545 once invoked), scanned C, original, MIT.

A reference for safe Git and GitHub work, including commits, branches, pull requests, rebases, merge conflicts, releases, and undoing changes. It emphasizes small, clearly described changes.

In plain words
What is it for?
Use it when committing code, managing branches, resolving conflicts, opening pull requests, publishing releases, or recovering from a Git mistake.
Why use it?
It reduces accidental data loss and makes project history easier to review, troubleshoot, and reverse.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when committing code, managing branches, resolving conflicts, opening pull requests, publishing releases, or recovering from a Git mistake.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dean0x/devflow/git
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 dean0x/devflow --skill git
Clone the repo
git clone --depth 1 https://github.com/dean0x/devflow

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dean0x/devflow/git"><img src="https://agentmods.dev/badge/skills/dean0x/devflow/git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,545 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.
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.00036 $0.01545
Opus 5.5 $0.00014 $0.00618
Sonnet 5.5 $0.00007 $0.00309
Haiku 4.5 $0.00004 $0.00154

Measured 1mo ago against content hash 3fcf9c7609e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git 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 1mo 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

| Cloud | `.aws/credentials`, `.npmrc`, `.pypirc`, `.netrc` |
src/assets/skills/git/SKILL.md · 194 lines

How it starts

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

Git & GitHub Patterns

Safe git operations, atomic commits, honest PR descriptions, and GitHub API calls.

Iron Law

Every commit tells an honest, atomic story.

Each commit captures one logical change with a message that explains what changed and why, not just how. Atomic commits make history reviewable, bisectable, and revertable. Never bundle unrelated changes. Never write vague messages.

Safety

Lock File Handling

Check for lock before git operations. If .git/index.lock exists, wait or abort.

[ -f .git/index.lock ] && echo "Lock exists - wait" && exit 1

Sequential Operations

# WRONG: git add . & git status &
# CORRECT:
git add . && git status && echo "Done"

Forbidden Operations

Action Risk
git push --force to main/master Destroys shared history
git commit --no-verify Bypasses safety hooks
git reset --hard without backup Loses work permanently
Parallel git commands Causes lock conflicts
Commit secrets/keys Security breach
Amend pushed commits Requires force push
Interactive rebase (-i) Requires user input

Amend Safety

Only use --amend when ALL conditions are met:

  1. User explicitly requested amend, OR commit succeeded but hook auto-modified files
  2. HEAD commit was created by you in this conversation
  3. Commit has NOT been pushed to remote

Never amend: If commit failed/rejected by hook, if pushed, or if unsure.

Branch Safety

Never force push to a protected branch — devflow:worktree-support holds the canonical list.

Branch naming: feat/, fix/, release/, hotfix/ prefixes with short descriptions.

Quick Recovery

git reset --soft HEAD~1  # Undo commit, keep staged
git reset HEAD~1         # Undo commit, keep unstaged

See references/patterns.md for extended recovery and stash workflows.

Commits

Message Format

<type>(<scope>): <short summary> (max 50 chars)

<optional body explaining what and why>

<optional footer with references>

Read the full file on GitHub · 194 lines

Files

What ships with it

6 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. 1mo ago Changed · -20 lines 3fcf9c7609e2
  2. 1mo ago Changed 09aaaba55873
  3. 1mo ago Changed · -46 tokens per session cbfad6e703cd
  4. 2mo ago Changed · -70 lines c9c7311c10e8
  5. 2mo ago Changed eed45db7dcb5
  6. 2mo ago Changed · -4 lines e1201ff408d9
  7. 3mo ago First seen · 288 lines · 82 tokens per session scan C 5e27da6db14e

Subscribe to this mod's changes

git is a skill published in the GitHub repository dean0x/devflow (23 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,545 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

git compared with skills from other repositories

git next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitdean0x/devflowSkill23todayMITC36Claude Code
git-irishyperb1iss/git-irisSkill4227d agoApache-2.0A81Claude Code, Codex
4x-autopilotggwhite/4xSkill3522d agoMITC106Claude Code, Codex
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
github-automationruvnet/rufloSkill83ktodayMITA61Claude Code
pr-stewardagent-of-empires/agent-of-empiresSkill5.2ktodayMITA130Claude Code, Codex
githubcode-yeongyu/lazycodexSkill4.0kyesterdayMITA226Codex