| name | git-workflow-helper |
| description | Automates git workflow tasks including status checks, branch creation, file staging, conventional commit message generation, and pull request creation with gh CLI. Ensures proper git workflow and commit standards.
|
| triggers | ["commit my changes","create PR","git status","create branch","push changes","generate commit message","create pull request","push my code","commit changes","make a commit","let's checkin","commit to git","merge and delete branch"] |
| allowed-tools | ["Bash","Read","Grep","TodoWrite"] |
| color | #F59E0B |
| expertise | ["git-workflow","version-control","commit-standards"] |
| examples | ["Commit my changes","Create a pull request","Check git status","Push my code"] |
| boundaries | Does not force push or run destructive git commands without explicit confirmation. Follows constitutional git workflow principles. |
Git Workflow Helper Skill
Purpose
Automates common git workflow tasks while enforcing best practices and commit standards. Implements FR-008 from the feature specification. Follows constitutional requirement for feature branching and proper git workflow.
How It Works
Step 1: Git Status Check
Always start with status to understand current state:
git status
git branch --show-current
git diff --stat
git diff --cached --stat
git log @{u}.. --oneline
Report:
📊 Git Status
Branch: feature/new-feature
Tracking: origin/feature/new-feature
Changes:
Modified: 3 files
Staged: 1 file
Untracked: 2 files
Unpushed commits: 2
Files:
M src/api/users.ts
M tests/users.test.ts
?? docs/API.md
Step 2: Branch Creation
Create feature branch following naming conventions:
git checkout -b feature/feature-name
git checkout -b fix/bug-description
git checkout -b docs/topic
git checkout -b test/test-description
git checkout -b refactor/refactor-description
Step 3: Stage Files
Intelligently stage relevant files:
git add src/api/users.ts src/models/user.ts
git add src/
git diff --cached
Avoid staging:
- Build artifacts (dist/, build/)
- Dependencies (node_modules/)
- Secrets (.env, credentials.json)
- Temporary files (*.tmp, *.log)
Step 4: Generate Conventional Commit Message
Follow conventional commit format:
Format: <type>(<scope>): <description>
Types: