git-workflow-and-versioning

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

Updated Jun 23, 2026
One-click install
npx skills add https://github.com/jampissarandev/Expense-Tracker --skill git-workflow-and-versioning-jampissarandev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow-and-versioning
Source: https://github.com/jampissarandev/Expense-Tracker/tree/main/.github/skills/git-workflow-and-versioning
Command: npx skills add https://github.com/jampissarandev/Expense-Tracker --skill git-workflow-and-versioning-jampissarandev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers generating code at high speed often produce giant unreviewable commits, vague messages, and long-lived branches that diverge and conflict. This Skill enforces disciplined version control so every change stays reviewable, revertable, and traceable. ## Core Features & Use Cases - Atomic Commit Discipline: Enforces small, single-purpose commits with conventional message types (feat, fix, refactor, test, docs, chore) that explain the why behind each change. - Trunk-Based Branching Strategy: Guides short-lived feature branches merged within 1-3 days, with naming conventions like feature/task-creation and fix/duplicate-tasks. - Parallel Work with Git Worktrees: Shows how to run multiple agents on separate branches simultaneously using git worktree add, keeping experiments isolated. - 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 implement the next feature using atomic commits on a short-lived feature branch with conventional commit messages.

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 a body explaining why the change was made, not what changed, since the diff already shows the what.

What is trunk-based development and why use it?

Trunk-based development keeps main always deployable with short-lived feature branches merged within 1-3 days. Long-lived branches accumulate merge risk and conflicts, and DORA research links trunk-based workflows to high-performing engineering teams.

How do I run multiple AI agents on the same repo in parallel?

Use git worktree add to create separate directories, each checked out to its own branch. Agents work in isolation without branch switching, and failed experiments are removed with git worktree remove.

How large should a git commit or pull request be?

Target around 100 lines per commit or PR. Changes near 300 lines are acceptable for a single logical change, but anything approaching 1000 lines should be split into smaller, separately reviewable commits.

Should I commit generated files like package-lock.json?

Commit generated files only when the project expects them, such as package-lock.json or Prisma migrations. Never commit build output, .env files, or node_modules, and maintain a .gitignore covering these exclusions.

How do I find which commit introduced a bug?

Use git bisect start, mark the current commit bad and a known-good commit good, then test each midpoint checkout until git narrows down the offending commit. git log --grep and git blame also help trace changes.