git-workflow-and-versioning

Structures git commits, branching, and semantic versioning into disciplined workflows.

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/authrain-cloud-abdullahformuli/agent-skills --skill git-workflow-and-versioning-authrain-cloud-abdullahformuli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow-and-versioning
Source: https://github.com/authrain-cloud-abdullahformuli/agent-skills/tree/main/skills/git-workflow-and-versioning
Command: npx skills add https://github.com/authrain-cloud-abdullahformuli/agent-skills --skill git-workflow-and-versioning-authrain-cloud-abdullahformuli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents generate code at high speed, and without disciplined version control, changes become unreviewable, unrevertable, and hard to debug. This Skill enforces atomic commits, clean branching, and consistent release versioning so every change stays manageable and traceable. ## Core Features & Use Cases - Atomic Commit Discipline: Enforces small, single-purpose commits with descriptive conventional messages (feat, fix, refactor, test, docs, chore) and pre-commit hygiene checks for secrets, tests, and linting. - Branching & Parallel Work: Guides trunk-based development with short-lived feature branches, branch naming conventions, and git worktrees for running multiple agents in parallel. - Release & Versioning: Applies semantic versioning (MAJOR.MINOR.PATCH), annotated git tags as the source of truth, and human-readable changelogs grouped by user impact. - Use Case: An agent finishes a messy working session with mixed changes. Use this Skill to split the uncommitted work into clean atomic commits, write proper messages, and open a reviewable pull request. ## Quick Start Use the git workflow skill to split my current uncommitted changes into atomic commits with conventional messages and prepare a pull request.

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' with types like feat, fix, refactor, test, docs, or chore, followed by an optional body explaining why the change was made. The message should explain intent, not just restate what the diff shows.

How do I split a large uncommitted change into atomic commits?

Separate concerns first: keep formatting, refactoring, and feature changes in distinct commits. Each commit should do one logical thing, target roughly 100 lines, and pass tests independently before committing.

What is trunk-based development and should I use it?

Trunk-based development keeps main always deployable with short-lived feature branches merged within 1-3 days. It is the recommended default because long-lived branches accumulate merge risk, though the commit discipline applies to any branching model.

How do I choose between major, minor, and patch version bumps?

Bump major for breaking changes, minor for backward-compatible features, and patch for backward-compatible fixes. When unsure whether a change is breaking, assume it is, since consumers may rely on behavior beyond the documented API.

Can multiple AI agents work on the same repo in parallel?

Yes, use git worktrees to give each agent its own directory checked out to a separate branch. This avoids branch switching conflicts, and failed experiments can be discarded by removing the worktree.

What files should never be committed to git?

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