git-workflow

Guidance for collaborating with Git, a system for tracking code changes, branches, and commits.

In plain words
What is it for?
Use it when creating branches, committing changes, preparing fixes or features, and following a shared Git workflow.
Why use it?
It provides consistent rules for commit messages, branch names, reviewing changes, and avoiding accidental pushes or secret files.

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/comeonoliver/skillshub/git-workflow
Any agent
npx skills add ComeOnOliver/skillshub --skill git-workflow
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 603 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.00060 $0.00603
Opus 5 $0.00030 $0.00302
Sonnet 5 $0.00012 $0.00121
Haiku 4.5 $0.00006 $0.00060

Measured 3d ago against content hash 06b167736d0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/0xlayerghost/solidity-agent-kit/git-workflow/SKILL.md · 71 lines

How it starts

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

Git Collaboration Standards

Language Rule

  • Always respond in the same language the user is using. If the user asks in Chinese, respond in Chinese. If in English, respond in English.

Commit Rules

Use Conventional Commits format: <type>: <short description>

Type When to use
feat: New feature or contract
fix: Bug fix
refactor: Code restructure without behavior change
test: Add or update tests
docs: Documentation changes
chore: Build config, dependency updates, toolchain
security: Security fix or hardening

Commit Workflow

  1. Run git diff to review all changes before staging
  2. Stage specific files — avoid git add . to prevent committing .env or artifacts
  3. Write concise commit message describing the why, not the what
  4. Never add Co-Authored-By lines — commit messages should only contain the description
  5. Only commit — never git push unless explicitly requested
  6. Never push directly to main/master — always use feature branches

Branch Naming

Pattern Example
feat/<name> feat/staking-pool
fix/<name> fix/reentrancy-guard
refactor/<name> refactor/token-structure

PR Requirements

Every PR must include:

Section Content
Change description What was changed and why
Test results forge test output (all pass)
Gas impact forge test --gas-report diff for changed functions
Deployment impact Does this affect deployed contracts? Migration needed?
Review focus Specific areas that need careful review

Code Review Rules

Scenario Requirement
Standard changes Minimum 1 maintainer approval
Security-related changes Minimum 2 maintainer approvals
AI-generated code Must pass manual review + forge test before merge
Contract upgrades Requires full team review + upgrade simulation on fork

Read the full file on GitHub · 71 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. 3d ago First seen · 71 lines · 60 tokens per session scan A 06b167736d0b

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 603 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

common-git-collaboration

Enforce version control best practices for commits, branching, pull requests, and repository security. Use when writing commits, creating branches, merging, or opening pull requests.

HoangNguyen0403/agent-skills-standard · 40 tokens

changelog-automation

Automate changelog generation from commits, PRs, and releases following Keep a Changelog format. Use when setting up release workflows, generating release notes, or standardizing commit conventions.

krivoox/agent-stack-template · 42 tokens

ship

Stop juggling, start finishing. GSD Task Manager makes it easy to sort your to-dos into what’s urgent and what’s important, so you can finally get stuff done without burning out. It’s simple, visual, and works entirely offline.

vscarpenter/gsd-task-manager · 0 tokens

fe-start

Takes a feature.md file and automatically runs spec confirmation → implementation → review → commit → PR. Use when: the user says "fe-start feature.md" or "start with feature.md". Do NOT load for: one-off bug hotfixes, 1-line changes, exploratory work, or tasks where pass/fail signals are ambiguous (a single skill or…

sh5623/fe-rail · 152 tokens

source-command-commit

Conventional commit with StarMapper scope auto-detection.

FlorianBruniaux/starmapper · 15 tokens

caveman-commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit.…

HoangNguyen0403/agent-skills-standard · 79 tokens