git

A guide for common Git tasks such as creating branches, committing changes, and opening pull requests. Git records code changes, while a branch is a separate line of work.

In plain words
What is it for?
Use it to plan and perform ordinary Git workflow actions while checking project instructions, commit messages, branch names, and pull-request procedures.
Why use it?
It applies repository-specific rules and consistent naming and commit conventions, reducing mistakes in shared code history. It also defines safeguards around force-pushing and protected branches.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sniko/agent-skills/git
Any agent
npx skills add SNIKO/agent-skills --skill git
Clone the repo
git clone --depth 1 https://github.com/SNIKO/agent-skills

Made for: Claude Code, Codex.

Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00635
Opus 5 $0.00010 $0.00318
Sonnet 5 $0.00004 $0.00127
Haiku 4.5 $0.00002 $0.00064

Measured 2d ago against content hash 228c452e56ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git 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 2d 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.

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.

skills/git/SKILL.md · 98 lines

How it starts

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

<repository_rules> Check for the followings for repository specific rules and instructions related to git names/messages conventions and workflows:

  • AGETNS.md
  • CLAUDE.md
  • .agents/

Merge them with the general instructions below, with repository rules taking precedence in case of conflict. </repository_rules>

Commit

Commit message format:

<type>[scope]: <description>

<optional body>

<optional footer>

Rules

  • One logical change per commit, if many files changed, create multiple commits with clear scope and messages
  • Present tense: "add" not "added"
  • Imperative mood: "fix bug" not "fixes bug"
  • Reference issues: Closes #123, Refs #456
  • Keep description under 72 characters
  • NEVER update git config
  • NEVER run destructive commands (--force, hard reset) without explicit request
  • NEVER skip hooks (--no-verify) unless user asks
  • NEVER force push unless the user explicitly requests it
  • NEVER commit to master/main unless repository rules allow it and the user confirms it

Branch

Branch naming format: {type}/{semantic-name}

Rules

  • NEVER delete or rename existing branches without explicit user request
  • NEVER force-push or reset master/main
  • NEVER run destructive commands without confirmation
  • If branch already exists, report this to the user and ask how to proceed

Pull Request

Title format: {type}[scope]: {description}

Description format:

## Summary
{1–3 sentences explaining what this PR does and its scope}

## Changes
- {key change 1, do not repeat file changes, focus on observable behavior changes}
- {key change 2, do not repeat file changes, focus on observable behavior changes}
- {more as needed — keep each bullet atomic and concrete}

## Why
{motivation: what problem does this solve, or what goal does it achieve.}

## Breaking Changes
{describe what breaks and how consumers should migrate. Omit if no breaking changes.}

Read the full file on GitHub · 98 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. 2d ago First seen · 98 lines · 20 tokens per session scan A 228c452e56ad

Subscribe to this mod's changes

git is a skill published in the GitHub repository SNIKO/agent-skills (2 stars, last pushed 10d ago), licensed MIT. It adds 20 tokens to every session and 635 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

release-candidate-prep

Preflight and prepare an OpenAI Agents Python release candidate in a dedicated worktree from exact origin/main, gate readiness before branch creation, freeze the released API contract, create or replace the local release branch with one release commit, enforce final release review as a checker, and produce…

openai/openai-agents-python · 87 tokens

implementation-strategy

Choose compatibility-aware scope for runtime and API changes in openai-agents-python. Use before initial implementation and each review-feedback batch to decide whether to patch, reset the design, preserve compatibility, or reject unsupported cases.

openai/openai-agents-python · 47 tokens

pr-draft-summary

Create the required PR-ready summary block, branch suggestion, title, and draft description for openai-agents-python. Use before the final response whenever the current task changed runtime code, tests, examples, build/test configuration, or docs with behavior impact, regardless of perceived change size and including…

openai/openai-agents-python · 114 tokens

examples-run-analysis

Analyze artifacts from the latest completed manual examples Make run. Read the main log, every relevant per-example log, and example source; validate every exit-0 example and classify failures, skips, and environment restrictions. Never execute or control examples.

openai/openai-agents-python · 52 tokens

sensitive-logging-audit

Audit and fix sensitive-data exposure through Python runtime logging in openai-agents-python. Use when reviewing logging, print, warnings, stderr, traceback, MCP names, model or tool exceptions, redaction flags, or any diagnostic path that may retain user data.

openai/openai-agents-python · 59 tokens

playwright

Use when the task requires capturing or automating a real browser from the terminal.

openai/openai-agents-python · 19 tokens