From vibe-to-prod-skills
Git workflow management. Triggers when creating branches, preparing PRs, or managing merge decisions.
npx claudepluginhub shimyth/vibe-to-prod --plugin vibe-to-prod-skillsThis skill uses the workspace's default tool permissions.
Manage git branches, commits, and pull requests following project conventions.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Manage git branches, commits, and pull requests following project conventions.
This skill should activate when:
<type>/<short-description>
Examples:
- feature/add-user-profile
- fix/login-redirect-bug
- chore/update-dependencies
type: description
Types:
- feat: New feature
- fix: Bug fix
- docs: Documentation
- style: Formatting (no code change)
- refactor: Code restructuring
- test: Adding tests
- chore: Maintenance
Examples:
- feat: add user profile endpoint
- fix: resolve login redirect issue
- chore: update dependencies
# Ensure main is up to date
git checkout main
git pull origin main
# Create feature branch
git checkout -b feature/description
# Stage changes
git add -p # Interactive staging (review each change)
# Commit with conventional format
git commit -m "type: description"
# Push regularly
git push -u origin branch-name
# Ensure all tests pass
make test # or appropriate test command
# Rebase on latest main (if needed)
git fetch origin main
git rebase origin/main
# Force push after rebase
git push --force-with-lease
# Using GitHub CLI
gh pr create --title "type: description" \
--body "## Summary
- What this PR does
## Test Plan
- How to test"
| Situation | Action |
|---|---|
| Feature branch behind main | Rebase onto main |
| Shared branch (multiple devs) | Merge, don't rebase |
| Before PR | Rebase + squash if messy |
| After PR approved | Squash merge via GitHub |
# During rebase conflict
git status # See conflicted files
# Edit files to resolve conflicts
git add <resolved-files>
git rebase --continue
# If too messy, abort and merge instead
git rebase --abort
git merge origin/main
## Git Workflow
**Branch**: `feature/description`
**Base**: `main`
**Commits**: X commits
### Pre-PR Checklist
- [ ] Tests passing
- [ ] Rebased on latest main
- [ ] Commit messages follow convention
- [ ] No merge conflicts
### Ready for PR
```bash
gh pr create --title "..." --body "..."