git-workflow

git-workflow is a skill for Claude Code, Codex from DevelopersGlobal/ai-agent-skills. It costs 27 tokens per session (650 once invoked), scanned A, original, MIT.

A set of Git working rules based on trunk-based development, where changes stay close to the main branch, and atomic commits, where each commit contains one complete change.

In plain words
What is it for?
It guides commit size, Conventional Commit messages, branch usage, and checks that each commit is complete and independently reversible.
Why use it?
It keeps project history understandable and makes individual changes easier to review, deploy, debug, or undo.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It guides commit size, Conventional Commit messages, branch usage, and checks that each commit is complete and independently reversible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/developersglobal/ai-agent-skills/git-workflow
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 DevelopersGlobal/ai-agent-skills --skill git-workflow
Clone the repo
git clone --depth 1 https://github.com/DevelopersGlobal/ai-agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/developersglobal/ai-agent-skills/git-workflow/github.svg)](https://agentmods.dev/skills/developersglobal/ai-agent-skills/git-workflow)
Your own site
<a href="https://agentmods.dev/skills/developersglobal/ai-agent-skills/git-workflow"><img src="https://agentmods.dev/badge/skills/developersglobal/ai-agent-skills/git-workflow/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-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/developersglobal/ai-agent-skills/git-workflow"><img src="https://agentmods.dev/badge/skills/developersglobal/ai-agent-skills/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 650 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.00027 $0.00650
Opus 5.5 $0.00011 $0.00260
Sonnet 5.5 $0.00005 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 1mo ago against content hash ad9c6433f8df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-workflow 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.

skills/git-workflow/SKILL.md · 77 lines

How it starts

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

Overview

Git is not just a backup system — it's a communication tool. Clean git history enables fast debugging (git bisect), clear attribution, and safe reverts. This skill enforces atomic commits, meaningful messages, and trunk-based development.

When to Use

  • Before making any commit
  • When reviewing a PR's git history
  • When setting up a new project

Process

Step 1: Atomic Commits

  1. Each commit should represent ONE logical change — not a day's worth of work.
  2. A commit should be: independently deployable, independently revertable.
  3. Never commit "WIP" or partial implementations.

Verify: You could revert this commit without affecting adjacent functionality.

Step 2: Commit Message Format

  1. Follow Conventional Commits:
    type(scope): short summary (max 72 chars)
    
    Body: what changed and WHY (not how — the diff shows how).
    
    Closes: #issue-number
    
  2. Types: feat, fix, docs, style, refactor, test, chore
  3. The summary is imperative mood: "Add feature" not "Added feature"

Verify: Message passes: feat|fix|docs|...(<scope>): <summary> format.

Step 3: Trunk-Based Development

  1. Work directly on main for small changes (<1 day of work).
  2. For larger features: short-lived feature branches (max 2 days), frequent merges to main.
  3. Never let a branch live more than 3 days without merging or rebasing.
  4. Use feature flags for incomplete features, not long-lived branches.

Verify: No branch is more than 2 days old without a merge/rebase plan.

Step 4: Pre-Commit Gates

  1. Before every commit: tests pass, linter passes, no secrets in diff.
  2. Use pre-commit hooks to enforce automatically.

Common Rationalizations (and Rebuttals)

Excuse Rebuttal
"I'll clean up the commits later" You won't. Clean as you go.
"The commit message doesn't matter" It matters in 6 months when you're bisecting a production bug.
"Feature branches protect main" Long-lived branches cause merge nightmares. Trunk-based is safer.

Read the full file on GitHub · 77 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. 1mo ago First seen · 77 lines · 27 tokens per session scan A ad9c6433f8df

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository DevelopersGlobal/ai-agent-skills (177 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 650 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-30.

Related

Other skills, from other repositories

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple…

addyosmani/agent-skills · 89 tokens

commit

Group unstaged changes into atomic commits by concern, matching repository style. Use when asked to "commit", "create a commit", or "commit changes". Don't use for pushing or pull requests (/to-pr).

helderberto/agent-skills · 44 tokens

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.

borhen68/SkillEngine · 40 tokens

shipping-and-launch

Prepares production launches. Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

borhen68/SkillEngine · 45 tokens

chinese-commit-conventions

A Chinese-language guide to Conventional Commits, a format for writing consistent Git commit messages, plus related changelog, commit-checking, and commit-helper configuration.

jnMetaCode/superpowers-zh · 65 tokens

git-workflow-and-versioning

A guide to using Git, a system for tracking code changes, branches, and saved versions. It recommends small, focused commits and short-lived feature branches while keeping the main branch deployable.

vinvcn/addyosmani-agent-skills-zh · 97 tokens