
Git Workflow And Versioning
Structured git workflow guide covering trunk-based development, atomic commits, and parallel work with worktrees.
- skills.sh installs
- 73.3K
- GitHub stars
- 119.7K
- last updated
- Aug 21, 2026
What it does
- Covers trunk-based development with short-lived feature branches, plus commit discipline, branch naming, and release-branch exceptions
- Includes commit message format with
feat,fix,refactor,test,docs, andchoretypes, and a ~100-line change size target - Enforces separating refactors from feature work and reverting to the last commit when a change fails its tests
- Designed for AI agent sessions that run multiple parallel streams via
git worktree, with change summaries and pre-commit hygiene checks
Install
$ npx -y skills add addyosmani/agent-skills --skill git-workflow-and-versioning -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Git Workflow and Versioning
Overview
Git 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.
When to Use
Always. Every code change flows through git.
Core Principles
Trunk-Based Development (Recommended)
Keep 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.
main ──●──●──●──●──●──●──●──●──●── (always deployable)
╲ ╱ ╲ ╱
●──●─╱ ●──╱ ← short-lived feature branches (1-3 days)
This 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.
Details
- Repository
- github.com/addyosmani/agent-skills
- Categories
- Git & Releases, Agent Workflow & Planning
- First seen
- Apr 16, 2026
More from addyosmani/agent-skills
All 25- Idea Refine72.7K
- Using Agent Skills72.3K
- Browser Testing With Devtools72.1K
- Source Driven Development71.8K
- Shipping And Launch71.8K
- Ci Cd And Automation71.7K
- Interview Me70.9K
- Deprecation And Migration70.7K
- Doubt Driven Development70.2K
- Observability And Instrumentation68.2K
- Constraint Driven Development46.7K
- Code Review And Quality89.3K
- Security And Hardening86.6K
- Frontend Ui Engineering82.8K
- Performance Optimization79.9K
- Spec Driven Development79.3K
- Documentation And Adrs78.1K
- Planning And Task Breakdown78.1K
- Code Simplification77.3K
- Api And Interface Design77.2K
- Debugging And Error Recovery77K
- Test Driven Development75.8K
- Context Engineering75.6K
- Incremental Implementation75.5K
Similar to Git Workflow And Versioning
More Git & Releases
git-workflowasyrafhussin/agent-skills907 installsGit best practices covering commit messages, branching, pull requests, and history management for a clean, useful log.
git-workflow-strategyaj-geddes/useful-ai-prompts489 installsGit branching workflow guide covering GitFlow, GitHub Flow, and Trunk-Based Development for team collaboration.
managing-gitcloudai-x/claude-workflow-v2210 installsStructured guide covering Git branching strategies, Conventional Commits, branch naming, and pull request workflows with checklists.
git-best-practicesalleneubank/claude-code149 installsOpinionated git workflow that enforces conventional commits, explicit staging, and safe force-pushing for agents.
conventional-commitmarcelorodrigo/agent-skills964 installsStructured git commit guidance that enforces Conventional Commits types, scopes, and subject rules.
conventional-gitsamber/cc-skills5.4K installsConventional Commits and worktree naming standards for branches, commits, and changelog-driven release workflows.