Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kevinnft-git-workflow-and-versioning
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/git-workflow-and-versioning
What's inside
- Skill name
git-workflow-and-versioning- Description
- Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.
- License
- MIT
- Instructions
- 297 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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.
- **Dev branches are costs.** Every day a branch lives, it accumulates merge risk.
- **Release branches are acceptable.** When you need to stabilize a release while main moves forward.
- **Feature flags > long branches.** Prefer deploying incomplete work behind flags rather than keeping it on a branch for weeks.
### 1. Commit Early, Commit Often
Each successful increment gets its own commit. Don't accumulate large uncommitted changes.
```
Work pattern:
Implement slice → Test → Verify → Commit → Next slice
Not this:
Implement everything → Hope it works → Giant commit
```
Commits are save points. If the next change breaks something, you can revert to the last known-good state instantly.
### 2. Atomic Commits
Each commit does one logical thing:
```
# Good: Each commit is self-contained
git log --oneline
a1b2c3d Add task creation endpoint with validation
d4e5f6g Add task creation form component
h7i8j9k Connect form to API and add loading state
m1n2o3p Add task creation tests (unit + integration)
# Bad: Everything mixed together
git log --oneline
x1y2z3a Add task feature, fix sidebar, update deps, refactor utils
```
### 3. Descriptive Messages
Commit messages explain the *why*, not just the *what*:
```
# Good: Explains intent
feat: add email validation to registration endpoint
Prevents invalid email formats from reaching the database.
Uses Zod schema validation at the route handler level,
consistent with existing validation patterns in auth.ts.
# Bad: Describes what's obvious from the diff
update auth.ts
```
**Format:**
```
<type>: <short description>
<optional body explaining why, not what>
```
**Types:**
- `feat` — New feature
- `fix` — Bug fix
- `refactor` — Code change that neither fixes a bug nor adds a feature
- `test` — Adding or updating tests
- `docs` — Documentation only
- `chore` — Tooling, dependencies, config
### 4. Keep Concerns Separate
Don't combine formatting changes with behavior changes. Don't combine refactors with features. Each type of change should be a separate commit — and ideally a separate PR:
```
# Good: Separate concerns
git commit -m "refactor: extract validation logic to shared utility"
git commit -m "feat: add phone number validation to registration"
# Bad: Mixed concerns
git commit -m "refactor validation and add phone number field"
```
**Separate refactoring from feature work.** A refactoring change and a feature change are two different changes — submit them separately. This makes each change easier to review, revert, and understand in history. Small cleanups (renaming a variable) can be included in a feature commit at reviewer discretion.
### 5. Size Your Changes
Target ~100 lines per commit/PR. Changes over ~1000 lines should be split. See the splitting strategies in `code-review-and-quality` for how to break down large changes.
```
~100 lines → Easy to review, easy to revert
~300 lines → Acceptable for a single logical change
~1000 lines → Split into smaller changes
```
## Branching Strategy
### Feature BranchesFrom kevinnft/ai-agent-skills, MIT.
More from kevinnft/ai-agent-skills
- 0.549score
idea-refine
kevinnft
Refines ideas iteratively.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
planning-and-task-breakdown
kevinnft
Breaks work into ordered tasks.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
spec-driven-development
kevinnft
Creates specs before coding.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
source-driven-development
kevinnft
Grounds every implementation decision in official documentation.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
using-agent-skills
kevinnft
Discovers and invokes agent skills.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
incremental-implementation
kevinnft
Delivers changes incrementally.
SkillCFreshness: C★ 14Claude Code +9 - 0.546score
drawio-headless
kevinnft
Generate architecture diagrams with draw.io in headless/server environments (WSL2, VPS, Docker)
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
performance-optimization
kevinnft
Optimizes application performance.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
shipping-and-launch
kevinnft
Prepares production launches.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
creative-ideation
kevinnft
Generate project ideas via creative constraints.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
frontend-ui-engineering
kevinnft
Builds production-quality UIs.
SkillCFreshness: C★ 14Claude Code +9 - 0.543score
security-and-hardening
kevinnft
Hardens code against vulnerabilities.
SkillCFreshness: C★ 14Claude Code +9
Signals
- Stars
- 14
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- May 15, 2026 (5 months ago)
- Last release
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kevinnft/ai-agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.321score
git-workflow-and-versioning
Undermybelt
Structures git workflow practices.
SkillCFreshness: C★ 10Claude Code +9 - 0.315score
git-workflow-and-versioning
Partners-in-Biz
Structures git workflow practices.
SkillBFreshness: BClaude Code +9 - 0.312score
git-workflow-and-versioning
publieople
Structures git workflow practices.
SkillBFreshness: BClaude Code +9 - 0.302score
git-workflow-and-versioning
503496348-ops
Structures git workflow practices.
SkillCFreshness: C★ 2Claude Code +9 - 0.285score
git-workflow-and-versioning
m-howard
Structures git workflow practices.
SkillCFreshness: CClaude Code +9
More from kevinnft
- 0.549score
idea-refine
kevinnft
Refines ideas iteratively.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
planning-and-task-breakdown
kevinnft
Breaks work into ordered tasks.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
incremental-implementation
kevinnft
Delivers changes incrementally.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
source-driven-development
kevinnft
Grounds every implementation decision in official documentation.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
using-agent-skills
kevinnft
Discovers and invokes agent skills.
SkillCFreshness: C★ 14Claude Code +9 - 0.547score
spec-driven-development
kevinnft
Creates specs before coding.
SkillCFreshness: C★ 14Claude Code +9
Cite this page
git-workflow-and-versioning skill. Agent Mart. https://agentmart.dev/skills/kevinnft-git-workflow-and-versioning (last updated 2026-10-24)