git-conventions

git-conventions is a command for Claude Code from mathiasbourgoin/roster. It costs 20 tokens per session (1,091 once invoked), scanned A, original, MIT.

A command that applies shared Git workflow rules to actions such as making commits, creating branches, and opening pull requests. Git is a system for tracking changes to code.

In plain words
What is it for?
Use it when committing changes, creating a branch, opening a pull request, or carrying out the project’s full Git workflow.
Why use it?
It removes guesswork about naming, commit wording, branch structure, and the steps for sending work for review.

Command for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the roster plugin — 43 commands, 8 agents shipped together

Good fit Use it when committing changes, creating a branch, opening a pull request, or carrying out the project’s full Git workflow.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mathiasbourgoin/roster/git-conventions
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.

Clone the repo
git clone --depth 1 https://github.com/mathiasbourgoin/roster

Made for: Claude Code.

Or install roster, the plugin that ships this one along with the rest of its 43 commands, 8 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-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mathiasbourgoin/roster/git-conventions"><img src="https://agentmods.dev/badge/commands/mathiasbourgoin/roster/git-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00020 $0.01091
Opus 5.5 $0.00008 $0.00436
Sonnet 5.5 $0.00004 $0.00218
Haiku 4.5 $0.00002 $0.00109

Measured 2mo ago against content hash 71ef3cd2e721, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

.claude/commands/git-conventions.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 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. Write the body with the file-writing tool to briefs/<branch-slug>-pr-body.md, then:
    gh pr create --title "<type>: <description>" --body-file briefs/<branch-slug>-pr-body.md && rm -f briefs/<branch-slug>-pr-body.md
    
    Template for the body:
## 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. Write the message with the file-writing tool (not a shell command) to briefs/<branch-slug>-commit-msg.txt — <branch-slug> is the branch name with / replaced by -, so two sessions in one checkout never overwrite each other's file — then commit from it and delete it:
    git commit -F briefs/<branch-slug>-commit-msg.txt && rm -f briefs/<branch-slug>-commit-msg.txt
    
    Never put the message on the command line — not in -m "...", not in a heredoc, not in printf/echo: see the free-text rule below.
  5. Run git status after to confirm success.

Read the full file on GitHub · 105 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. 2mo ago Changed · +11 lines 71ef3cd2e721
  2. 2mo ago Changed · -13 lines · +4 tokens per session 3f496a9f046b
  3. 3mo ago First seen · 107 lines · 16 tokens per session scan A d7bd28780d51

Subscribe to this mod's changes

git-conventions is a command published in the GitHub repository mathiasbourgoin/roster (3 stars, last pushed 7d ago), licensed MIT. It adds 20 tokens to every session and 1,091 once invoked, about $0.0001 per session on Opus 5.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

git-conventions compared with commands from other repositories

git-conventions next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-conventionsmathiasbourgoin/rosterCommand37d agoMITA20Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
release-notesOpenHands/extensionsCommand190todayMITA44Claude Code
commitechoVic/blade-codeCommand18115d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3ktodaynoneA29Claude Code
codex-reviewoalders/kitchen-sinkCommand52d agoMITA41Claude Code
releaseparuff/uFawkesAICommand2todayMITA39Claude Code, Codex