Atomic Git Commit Staging

•
3
•

Manages repository staging, hunk-level diffs, and atomic commit creation using a programmatic Git workflow.

This skill provides Claude with advanced Git management capabilities through the pgs (Programmatic Git Staging) MCP server. It enables AI agents to perform precision staging by breaking down complex changes into logical, atomic commits based on hunks or specific line ranges. By enforcing a structured workflow—including commit planning, message quality gates, and Conventional Commit standards—it ensures cleaner repository history and avoids the pitfalls of monolithic or messy commits often associated with automated tools.

主要功能

01Automated commit message generation with style matching and quality gates
023 GitHub stars
03Hunk-level and line-range staging for precise atomic commits
04Comprehensive repository state overview of staged and unstaged changes
05Interactive commit planning and validation with pgs_plan_check
06Support for Conventional Commits and repository-specific message styles

使用场景

01Refining Git history by splitting mixed-intent hunks into separate staged changes
02Automating high-quality, standardized commit messages that match project history
03Breaking down large feature implementations into multiple logical, atomic commits