git

git is a skill for Claude Code from dean0x/devflow. It costs 36 tokens per session (1,620 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,620 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.01620
Opus 5.5 $0.00014 $0.00648
Sonnet 5.5 $0.00007 $0.00324
Haiku 4.5 $0.00004 $0.00162

Measured 7d ago against content hash cbfad6e703cd, 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 7d 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 · 214 lines

How it starts

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

Git & GitHub Patterns

Unified skill for safe git operations, atomic commits, honest PR descriptions, and GitHub API interactions. Used by the Code agent and Git agent.

Iron Law

EVERY COMMIT TELLS AN HONEST, ATOMIC STORY [1][3]

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.


When This Skill Activates

Any git or gh operation: staging, commits, branches, pull requests, rebases, issues, releases.


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

Read the full file on GitHub · 214 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. 7d ago Changed · -46 tokens per session cbfad6e703cd
  2. 1mo ago Changed · -70 lines c9c7311c10e8
  3. 1mo ago Changed eed45db7dcb5
  4. 1mo ago Changed · -4 lines e1201ff408d9
  5. 1mo 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 (20 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 1,620 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

Other skills, from other repositories

git-iris

Use this skill when generating commit messages, pull request descriptions, release notes, changelogs, or code reviews in a repository where git-iris is available. Activates on requests like "commit this", "write a commit message", "draft a PR", "generate release notes", "write a changelog", or "review my changes" when…

hyperb1iss/git-iris · 81 tokens

4x-autopilot

An owner-only automation mode for the 4x feature pipeline, which manages tracked development tasks from selection through completion and merging. It runs one feature at a time and reads project settings to determine the repositories and workflow.

ggwhite/4x · 106 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

github

Skill "github" from Hmbown/Codewhale, covering github, when to use, setup, workflow and non-goals.

Hmbown/Codewhale · 0 tokens

commit-pr

Mandatory Codex/Copilot publication adapter for opencode-swarm. Use for every GitHub issue assignment that results in code changes, commits, pushes, draft PRs, PR body edits, PR readying, release notes, or CI closeout. Must be loaded before git push, gh pr create, gh pr edit, or gh pr ready. Routes to the single…

ZaxbyHub/opencode-swarm · 100 tokens

git-workflow

Use when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a versioned release — the portable git-convention layer for any repo. Covers gitmoji + Conventional Commits, SemVer tags, branch hygiene…

ericrisco/rsc-harness · 127 tokens