git

git is a skill for Claude Code from vinnie357/claude-skills. It costs 36 tokens per session (10,001 once invoked), scanned D, original, MIT.

A guide for using Git, the version-control system that records code changes and lets people work on separate branches.

In plain words
What is it for?
Creating commits, managing branches, rebasing work, opening pull requests, and resolving conflicts.
Why use it?
It helps avoid mistakes when saving changes, combining work, or recovering from merge conflicts.

Skill for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the core plugin — 14 skills, 5 commands, 7 agents shipped together

Good fit Creating commits, managing branches, rebasing work, opening pull requests, and resolving conflicts.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vinnie357/claude-skills
Claude Code
/plugin install core

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 14 skills, 5 commands, 7 agents.

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/vinnie357/claude-skills/git/github.svg)](https://agentmods.dev/skills/vinnie357/claude-skills/git)
Your own site
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/git"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/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/vinnie357/claude-skills/git"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/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 10,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00036 $0.10001
Opus 5.5 $0.00014 $0.04000
Sonnet 5.5 $0.00007 $0.02000
Haiku 4.5 $0.00004 $0.01000

Measured 15d ago against content hash 35f56511cd8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

git scanned grade D with 3 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 15d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Configure Claude Code's built-in attribution too.** When setting up the no-attribution policy, merge `"attribution": {"commit": "", "pr": "", "sessionUrl": false}` into the chosen settings file, preserving unrelated se

Recursive force deletehighDestructive command

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

instead. Then `git worktree remove <path>` (never `rm -rf`), then `git branch -D

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Anonymous `curl` against `https://github.com/<owner>/<repo>/releases/...` for a PRIVATE repository returns HTTP 404, not 401. Always authenticate (`gh auth login` or `Authorization: token <gh-token>` header) before fetch
plugins/core/skills/git/SKILL.md · 495 lines

How it starts

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

Git Operations

Activate when creating commits, managing branches, creating pull requests, resolving conflicts, or following Git workflows.

Anti-fabrication

This skill follows core:anti-fabrication. The commit/PR format rules are house convention, but the "Remote and Authentication Conventions" section makes specific, checkable claims about Git and the GitHub API — this is the one skill in this set that does, and its claims are verified in different ways:

  • Anonymous access to GitHub Releases on a private repo returns 404, not 403. Confirmed against GitHub's own documentation, cited in sources.md: "GitHub uses a 404 Not Found response instead of a 403 Forbidden response to avoid confirming the existence of private repositories."
  • SSH key auth bypasses the workflow OAuth scope that HTTPS push enforces. GitHub documents the workflow scope requirement for OAuth apps/PATs pushing Actions workflow files (cited in sources.md), but does not document the SSH-side exemption as a general principle — that half is empirically observed, not centrally documented: pushing a .github/workflows/*.yml change over HTTPS with a token lacking workflow scope is rejected ("Refusing to allow an OAuth App to create or update workflow ... without workflow scope"); the identical push over SSH succeeds.
  • The Worktrees section's mechanics (index and HEAD per-worktree, refs/stash shared, add refusing a branch already checked out, -d refusing after a squash merge, the $WORKTREE_ROOT root formula) are confirmed against git 2.54.0 man pages and reproduced by execution in a throwaway repo, cited in sources.md.

Don't assert git/gh/glab CLI or GitHub/GitLab API behavior this skill doesn't already cover without checking the current docs, or testing it directly when the docs don't say — CLI flags and API responses do change across versions.

  • glab command/flag names throughout this skill and references/gitlab-mr.md come from the official docs at https://docs.gitlab.com/cli/ (per-command pages cited in sources.md), NOT from local execution — glab was not installed on the machine where this content was authored, and no command here was tested by running it. No glab version is pinned deliberately: pinning a version never actually run against would overstate the evidence. Re-check with glab <cmd> --help before relying on a flag.

Read the full file on GitHub · 495 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. 15d ago Changed 35f56511cd8a
  2. 27d ago Changed · +4 lines scan C → D 9b1b4b3dc358
  3. 28d ago Changed · +88 lines scan A → C e230e748408c
  4. 1mo ago Changed d9b1c4e29a64
  5. 1mo ago Changed · +41 lines 98c37ab38d42
  6. 1mo ago Changed · +5 lines 003febb60e88
  7. 1mo ago Changed · +66 lines 77985f7651a2
  8. 1mo ago First seen · 291 lines · 36 tokens per session scan A 336c72e56df1

Subscribe to this mod's changes

git is a skill published in the GitHub repository vinnie357/claude-skills (27 stars, last pushed 13d ago), licensed MIT. It adds 36 tokens to every session and 10,001 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 3 findings (reads agent configuration directories, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.