git-conventions

git-conventions is a skill for Claude Code from mathiasbourgoin/roster. It costs 20 tokens per session (1,091 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 Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating commits, naming branches, opening pull requests, or following a complete Git workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/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.

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.

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/github.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/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/skills/mathiasbourgoin/roster/git-conventions"><img src="https://agentmods.dev/badge/skills/mathiasbourgoin/roster/git-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
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 1mo 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 1mo 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 · 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

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. 1mo ago Changed · +11 lines 71ef3cd2e721
  2. 1mo ago Changed · -13 lines · +4 tokens per session 3f496a9f046b
  3. 2mo 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 6d 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.