git-workflow-and-versioning

Installation
SKILL.md

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.

Who Runs git commit

Everything below describes commit hygiene — how commits should be shaped once they exist. It is not an instruction for an agent to run git commit autonomously. Never run git commit (or stage-then-commit) without the user explicitly asking for it in that message. Instead: stage nothing implicitly, and when a slice is ready, draft the commit message described below and tell the user it's ready — then leave the actual commit to them. If the user explicitly asks you to commit in a given session, that permission is for that session only, not a standing default.

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.

Installs
1
GitHub Stars
4
First Seen
Sep 30, 2026