Agent skill
git-workflow
Branch naming, commit conventions, PR process, and issue tracking workflow. Use when creating branches, commits, or PRs.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-workflow-maple-and-spruce-maple-and-spruce
SKILL.md
Git Workflow
When to Use
Use this skill when creating branches, making commits, creating pull requests, or working with GitHub issues.
Branch Protection
main branch is protected. All changes must go through pull requests.
- Direct pushes to
mainare blocked - All work happens on feature branches
- PRs required even for solo development
Branch Naming
git checkout main
git pull origin main
git checkout -b feature/{issue-number}-{short-description}
Patterns:
feature/[issue-number]-[short-description]fix/[issue-number]-[short-description]chore/[description]
Commit Conventions
Format:
<type>: <short description>
[optional body]
[Fixes #123]
Types: feat, fix, refactor, docs, chore, test
Rules:
- Commit frequently with small, focused commits
- Describe what and why
- Reference issues with
#issue-number
Examples:
git commit -m "feat: add artist creation form (#2)"
git commit -m "fix: correct commission calculation (#5)"
Pull Request Process
git push -u origin feature/{branch-name}
gh pr create --title "feat: description (#issue)" --body "..."
PR template:
## Summary
[Brief description]
## Changes
- [Change 1]
- [Change 2]
## Testing
- [ ] Tested locally
Closes #[issue-number]
Working with Issues
Before Starting Work
- Check GitHub issues:
gh issue list - Create or find an existing issue
- Create feature branch referencing the issue
- Reference issue in commits and PR (
Closes #XX)
Creating Issues
gh issue create \
--title "Bug: description" \
--label "bug,phase-X" \
--body "## Description..."
Issue Labels
phase-1throughphase-5: Phase-specific workepic: Large feature area
Checklists
Before Committing
- On feature branch (not main)
- Code follows patterns doc
- No credentials committed
- TypeScript compiles
- Commit references issue
Before PR
- Commits pushed
- PR description complete
- Issue referenced
- Self-reviewed diff
Before Merge
- PR approved (or self-reviewed)
- No conflicts
- CI passes
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?