git-workflow-and-versioning

Enforce atomic commits, branch naming, and pre-commit hygiene checks in git workflows.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/j-cogburn/d3 --skill git-workflow-and-versioning-j-cogburn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow-and-versioning
Source: https://github.com/j-cogburn/d3/tree/main/tests/project-t01/.d3/skills/git-workflow-and-versioning
Command: npx skills add https://github.com/j-cogburn/d3 --skill git-workflow-and-versioning-j-cogburn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of messy, unmanageable git history when making code changes, which is especially common when working with high-speed AI agents or distributed teams, and makes reviewing, reverting, and debugging changes slow and error-prone.

Core Features & Use Cases

  • Disciplined Commit Practices: Enforces atomic commits, descriptive commit messages following standard type conventions, and separation of concerns to create a clear, navigable project history.
  • Parallel Work Support: Provides trunk-based development guidance, branch naming standards, and git worktree workflows to run multiple parallel feature branches without conflicts.
  • Pre-Commit Guardrails: Includes pre-commit hygiene checklists, structured change summary templates, and red flag detection to catch issues like secret leaks or mixed change types before they are committed.
  • Use Case: When collaborating with multiple AI agents on parallel features, use this Skill to set up isolated worktrees for each branch, enforce incremental commits for each change slice, and generate clear change summaries for streamlined review.

Quick Start

Use the git-workflow-and-versioning skill to structure your commits and branching strategy when starting work on the new user authentication feature.

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 keep my git history clean when AI agents make code changes?

To keep git history clean when AI agents make code changes, use disciplined version control workflows that enforce atomic commits, descriptive messages following standard type conventions, and separation of concerns. This ensures changes remain navigable and reversible.

What is trunk-based development and how does it support parallel feature branches?

Trunk-based development is a branching strategy that supports parallel feature branches by using short-lived branches alongside trunk, combined with git worktree workflows to isolate development environments and prevent conflicts during parallel code changes.

How do I prevent secret leaks and mixed change types before committing code?

To prevent secret leaks and mixed change types before committing code, apply pre-commit hygiene checks that include structured change summary templates and red flag detection to catch issues and validate atomic commits before they enter project history.

Can I use git worktrees to run multiple parallel AI agents without conflicts?

Yes, you can use git worktrees to run multiple parallel AI agents without conflicts by setting up isolated worktrees for each branch, enforcing incremental commits for each change slice, and generating clear change summaries for streamlined review.

What's the best way to structure commit messages for automated code changes?

The best way to structure commit messages for automated code changes is enforcing atomic commits with descriptive messages following standard type conventions, ensuring separation of concerns to create a clear, navigable project history for review and debugging.