Tooluck logoTooluck
SKILL.md

git-workflow-and-versioning

Agent skill fromaddyosmani/agent-skills

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 parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog. Use when asked to write a commit message or a changelog entry for a change, or to split a change into commits, even when the diff is pasted inline and the message seems easy to write from it.

How to install git-workflow-and-versioning

install git-workflow-and-versioning
# install the agent-skills pack with the skills CLI
npx skills add addyosmani/agent-skills

# or add only this skill to Claude Code: copy the folder

skills/git-workflow-and-versioning/

# into

~/.claude/skills/git-workflow-and-versioning/ (all projects)

.claude/skills/git-workflow-and-versioning/ (one project)

skills/git-workflow-and-versioning/SKILL.md

MITFull file
1# Git Workflow and Versioning
2
3## Overview
4
5Git is your safety net. Treat commits as save points, branches as sandboxes, and history as documentation. With AI agents generating code at high speed, disciplined version control is the mechanism that keeps changes manageable, reviewable, and reversible.
6
7## When to Use
8
9Always. Every code change flows through git.
10
11## Core Principles
12
13### Trunk-Based Development (Recommended)
14
15Keep `main` always deployable. Work in short-lived feature branches that merge back within 1-3 days. Long-lived development branches are hidden costs — they diverge, create merge conflicts, and delay integration. DORA research consistently shows trunk-based development correlates with high-performing engineering teams.
16
17```
18main ──●──●──●──●──●──●──●──●──●── (always deployable)
19 ╲ ╱ ╲ ╱
20 ●──●─╱ ●──╱ ← short-lived feature branches (1-3 days)
21```
22
23This is the recommended default. Teams using gitflow or long-lived branches can adapt the principles (atomic commits, small changes, descriptive messages) to their branching model — the commit discipline matters more than the specific branching strategy.
24
25- **Dev branches are costs.** Every day a branch lives, it accumulates merge risk.
26- **Release branches are acceptable.** When you need to stabilize a release while main moves forward.
27- **Feature flags > long branches.** Prefer deploying incomplete work behind flags rather than keeping it on a branch for weeks.
28…

Excerpt shown under the repository's MIT license.

More skills in agent-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates