How this skill is triggered — by the user, by Claude, or both
Slash command
/git:workflowThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enables proactive git workflow management during development sessions. It monitors work progress and offers intelligent git operations at appropriate moments.
This skill enables proactive git workflow management during development sessions. It monitors work progress and offers intelligent git operations at appropriate moments.
Activate this workflow when you detect:
Detection signals:
Action: Ask the user (using AskUserQuestion) whether they want to:
Example prompt:
This looks like a substantial change. Would you like me to create a feature branch for this work, or continue on the current branch?
Only ask once at the start of a work session. Don't repeatedly ask about branches.
When to offer a checkpoint commit:
Detection signals:
Action: Proactively offer to create a checkpoint commit:
I've made several changes to the authentication module. Would you like me to create a checkpoint commit to save this progress?
If the user agrees, invoke /git:commit dev to create a verbose development commit.
Important:
dev style for checkpoint commits (preserves context)Detection signals:
Action: Summarize the work done and offer history cleanup:
I've completed the authentication refactoring. We have 5 development commits. Would you like me to:
- Clean up the commit history (squash into cohesive commits with
/git:merge)- Keep the detailed development history as-is
- Push the current state and clean up later
When user wants cleanup:
Example workflow:
We have 6 commits:
- 3 related to OAuth implementation
- 2 related to token validation
- 1 documentation update
I suggest:
1. Merge the 3 OAuth commits into one
2. Merge the 2 token validation commits into one
3. Keep the docs commit separate
Want me to proceed with this cleanup?
Use /git:merge with appropriate count/SHA and style arguments.
After merging, offer /git:reword if commit messages need refinement.
Maintain awareness of:
Use git status, git log, and git diff --stat to assess state when needed.
DO:
DON'T:
Remember user preferences:
This skill orchestrates the following commands:
/git:commit dev - Checkpoint commits during development/git:commit final - Clean commits for completed work/git:merge N [style] - Squash related commits/git:reword SHA [style] - Refine commit messagesAlways invoke these commands using the Skill tool rather than reimplementing their logic.
User: "I need to add OAuth authentication to the app"
[Branch Management]
Claude: "This is a substantial feature. Would you like me to create a
feature branch like 'feature/oauth-authentication'?"
User: "Yes"
Claude: [Creates branch]
[Development with Checkpoints]
Claude: [Implements OAuth provider setup]
Claude: "OAuth provider configuration is complete. Want me to checkpoint
this progress?"
User: "Sure"
Claude: [Invokes /git:commit dev]
Claude: [Implements token handling]
Claude: [Implements session management]
Claude: "Token handling and session management are working. Checkpoint?"
User: "Yes"
Claude: [Invokes /git:commit dev]
[Completion]
User: "Looks good, that's everything"
Claude: "Great! We have 4 development commits on this branch:
- OAuth provider setup
- Token handling implementation
- Session management
- Final integration fixes
Would you like me to clean these up before merging? I can
combine them into 1-2 clean commits."
User: "Yes, make it one commit"
Claude: [Invokes /git:merge 3 final]
Claude: "Done! Here's the final commit message: [shows message]
Want me to adjust it?"
npx claudepluginhub jskladan/claude.md --plugin gitGuides git commit strategies emphasizing small, frequent atomic commits that narrate development history. Use for planning commits, timing decisions, and message patterns.
Stages, commits, and optionally pushes local changes with a conventional commit message. Analyzes diffs, confirms with user. Automatically creates feature branches on protected branches.
Creates git commits with clear messages from working tree changes, following repo conventions or conventional commits. Handles clean trees and detached HEAD.