git-conventions

git-conventions is a skill for Claude Code, Codex from mathiasbourgoin/roster. It costs 16 tokens per session (793 once invoked), scanned A, original, MIT.

A set of rules for common Git work, including commits, branches, and pull requests. Git is a tool that records code changes and supports teamwork.

In plain words
What is it for?
Use it when creating commits, naming branches, opening pull requests, or following a complete Git workflow.
Why use it?
It keeps project history and collaboration consistent, so changes are easier to understand and review.

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/mathiasbourgoin/roster/git-conventions
Any agent
npx skills add mathiasbourgoin/roster --skill git-conventions
Clone the repo
git clone --depth 1 https://github.com/mathiasbourgoin/roster

Made for: Claude Code, Codex.

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-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/mathiasbourgoin/roster/git-conventions.svg)](https://agentmods.dev/skills/mathiasbourgoin/roster/git-conventions)
Your own site
<a href="https://agentmods.dev/skills/mathiasbourgoin/roster/git-conventions"><img src="https://agentmods.dev/badge/skills/mathiasbourgoin/roster/git-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 793 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.00016 $0.00793
Opus 5 $0.00008 $0.00396
Sonnet 5 $0.00003 $0.00159
Haiku 4.5 $0.00002 $0.00079

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

Security

Grade A, and why

git-conventions 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 5d 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.

.agents/skills/git-conventions/SKILL.md · 107 lines

How it starts

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

Git Conventions

Apply standardized git conventions for the action described in $ARGUMENTS (e.g., "commit this", "create PR", "new branch for auth feature").

Steps

  1. Identify the action requested in $ARGUMENTS (commit, branch, PR, or full workflow).
  2. Apply the relevant convention sections below.
  3. Execute the git command(s) following the format.

Commit Format

<type>: <description>

Types: feat, fix, refactor, docs, test, chore, perf, ci

  • Description: imperative mood, lowercase, no period, under 72 chars.
  • Body (optional): blank line after subject, wrap at 80 chars, explain why not what.
  • Footer (optional): Closes #123, BREAKING CHANGE: <description>.

Examples:

  • feat: add JWT authentication middleware
  • fix: prevent null pointer in user lookup
  • refactor: extract validation into shared module

Branch Naming

<type>/<short-description>
  • Kebab-case description, max 4 words.
  • Examples: feat/add-auth, fix/null-pointer, refactor/extract-validation
  • For issue-linked work: feat/123-add-auth

PR Workflow

When creating a PR:

  1. Ensure the branch is pushed with git push -u origin <branch>.
  2. Use gh pr create with this template:
## Summary
- <1-3 bullet points describing what and why>

## Test plan
- [ ] <specific verification step>
- [ ] <edge case checked>
- [ ] <regression check>
  1. Title: same format as commit subject (<type>: <description>), under 70 chars.
  2. Request reviewers if the user specifies them.

Commit Workflow

When committing:

  1. Run git status and git diff --staged to understand what's staged.
  2. If nothing staged, help the user stage relevant files (prefer explicit paths over git add .).
  3. Draft commit message following the format above.
  4. Use a HEREDOC for the message:
    git commit -m "$(cat <<'EOF'
    <type>: <description>
    EOF
    )"
    
  5. Run git status after to confirm success.

Rules

  • Never force-push to main or master.
  • Always push with -u to set upstream tracking.
  • Never use git add . or git add -A — stage specific files.
  • Never skip pre-commit hooks (--no-verify).
  • Never commit .env, credentials, or secrets — warn the user if these are staged.
  • PR descriptions must be comprehensive — reviewers should understand the change without reading code.
  • One logical change per commit. Split unrelated changes into separate commits.

Read the full file on GitHub · 107 lines

Files

What ships with it

1 file 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. 5d ago First seen · 107 lines · 16 tokens per session scan A d7bd28780d51

Subscribe to this mod's changes

git-conventions is a skill published in the GitHub repository mathiasbourgoin/roster (2 stars, last pushed 9d ago), licensed MIT. It adds 16 tokens to every session and 793 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.