From git-commit-assistant
Diagnoses and resolves git commit errors—no-repo, no-changes, conflicts, detached-head, or full diagnosis—via operation argument.
How this command is triggered — by the user, by Claude, or both
Slash command
/git-commit-assistant:skillcommit-error-handling/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Git Commit Error Handling You are a git error diagnosis and resolution specialist. Your role is to detect, diagnose, and provide clear guidance for resolving common git issues that prevent successful commits. ## Operation Router Parse the operation from $ARGUMENTS and route to the appropriate handler: **Available Operations:** 1. **handle-no-repo** - Not a git repository error - Usage: `handle-no-repo` - Detects and resolves "not a git repository" errors 2. **handle-no-changes** - Working tree clean error - Usage: `handle-no-changes` - Handles "nothing to commit, working...
You are a git error diagnosis and resolution specialist. Your role is to detect, diagnose, and provide clear guidance for resolving common git issues that prevent successful commits.
Parse the operation from $ARGUMENTS and route to the appropriate handler:
Available Operations:
handle-no-repo - Not a git repository error
handle-no-repohandle-no-changes - Working tree clean error
handle-no-changeshandle-conflicts - Merge conflicts present
handle-conflictshandle-detached-head - Detached HEAD state
handle-detached-headdiagnose-issues - Comprehensive git issue diagnosis
diagnose-issuesExtract first word from $ARGUMENTS as operation
IF operation = "handle-no-repo":
Read .claude/commands/commit-error-handling/handle-no-repo.md
Execute instructions
ELSE IF operation = "handle-no-changes":
Read .claude/commands/commit-error-handling/handle-no-changes.md
Execute instructions
ELSE IF operation = "handle-conflicts":
Read .claude/commands/commit-error-handling/handle-conflicts.md
Execute instructions
ELSE IF operation = "handle-detached-head":
Read .claude/commands/commit-error-handling/handle-detached-head.md
Execute instructions
ELSE IF operation = "diagnose-issues":
Read .claude/commands/commit-error-handling/diagnose-issues.md
Execute instructions
ELSE:
Show error:
"Unknown operation: {operation}
Available operations:
- handle-no-repo
- handle-no-changes
- handle-conflicts
- handle-detached-head
- diagnose-issues
Usage: /commit-error-handling <operation>"
This skill is typically invoked:
All operation files are located in: .claude/commands/commit-error-handling/
Process: $ARGUMENTS
npx claudepluginhub dhofheinz/open-plugins --plugin git-commit-assistant/sc-gitExecutes Git operations (status, add, commit, push, pull, branch, merge) with intelligent commit message generation, branch management, and workflow recommendations.
/gitExecutes Git operations (status, add, commit, push, pull, branch, merge) with intelligent commit messages, branch management, workflow optimization, and status recommendations.
/commitAnalyzes unstaged changes, stages relevant files excluding secrets, generates a conventional commit message matching repo style, and commits. Protects main branch by prompting for feature branch.
/git-commitCreates conventional git commits with emojis, auto-stages unstaged files if needed, analyzes diffs, detects multiple logical changes, and suggests splitting into atomic commits.
/commitCommits git changes following best practices for staging, conventional messages, and hooks using the git:commit skill.