git-workflow-and-versioning

Structures git commits, branching, and worktree workflows for disciplined version control.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/JacobThree/zero-bloat-mcp-stack --skill git-workflow-and-versioning-jacobthree
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-workflow-and-versioning
Source: https://github.com/JacobThree/zero-bloat-mcp-stack/tree/main/ai_blueprints/agent-skills/skills/git-workflow-and-versioning
Command: npx skills add https://github.com/JacobThree/zero-bloat-mcp-stack --skill git-workflow-and-versioning-jacobthree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents generate code at high speed, and without disciplined version control, changes become unreviewable, hard to revert, and risky to merge. This Skill enforces atomic commits, short-lived branches, and clean history so every change stays manageable and reversible. ## Core Features & Use Cases - Atomic Commit Discipline: Enforces one logical change per commit with conventional message types (feat, fix, refactor, test, docs, chore) and a target size of roughly 100 lines per change. - Trunk-Based Branching Strategy: Keeps main always deployable with short-lived feature branches merged within 1-3 days, plus naming conventions like feature/task-creation and fix/duplicate-tasks. - Parallel Work with Git Worktrees: Runs multiple agents on separate branches simultaneously using git worktree, isolating experiments without branch switching. - Use Case: An AI agent implements a feature in slices, committing each tested increment with a descriptive message, so a broken change can be reverted instantly with git reset --hard HEAD without losing prior work. ## Quick Start Ask the agent to commit the current changes as atomic commits with conventional messages on a short-lived feature branch branched from main.

Frequently Asked Questions about git-workflow-and-versioning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write good git commit messages?▼

Use the format type: short description, where type is feat, fix, refactor, test, docs, or chore. Add an optional body explaining why the change was made, not what changed, since the diff already shows the what.

How to split large git changes into smaller commits?▼

Target roughly 100 lines per commit and split anything over 1000 lines. Separate refactoring from feature work into distinct commits, and keep formatting changes apart from behavior changes so each commit does one logical thing.

What is trunk-based development vs gitflow?▼

Trunk-based development keeps main always deployable with short-lived feature branches merged within 1-3 days, while gitflow uses long-lived development branches. DORA research correlates trunk-based development with high-performing engineering teams.

How do I use git worktrees for parallel development?▼

Run git worktree add ../project-feature-a feature/task-creation to create a separate directory on its own branch. Multiple agents can work simultaneously without branch switching, and failed experiments are removed with git worktree remove.

What files should not be committed to git?▼

Never commit node_modules, build output like dist or .next, environment files like .env, or secrets. Set up a .gitignore immediately covering these, and scan staged diffs for passwords, API keys, and tokens before committing.

How do I find which commit introduced a bug?▼

Use git bisect start, mark the bad commit with git bisect bad HEAD and a known-good commit with git bisect good. Git checks out midpoints automatically so you can run your test at each step to narrow down the culprit.