From Toru Claude Agents
Enforces safe git workflow: one branch per task, no force pushes, atomic commits. Useful when coding autonomously and branches need human review before merging.
How this skill is triggered — by the user, by Claude, or both
Slash command
/toru-claude-agents:branch-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
All work happens on branches. Main stays clean. The user reviews before merge.
All work happens on branches. Main stays clean. The user reviews before merge.
feat/TASK-ID-short-description # New features
fix/TASK-ID-short-description # Bug fixes
docs/TASK-ID-short-description # Documentation
research/TASK-ID-description # Exploration
refactor/TASK-ID-description # Code improvements
Examples:
feat/API-142-rate-limitingfix/WEB-87-login-redirectdocs/API-150-auth-guideTASK-ID: Brief description of change
- Detail 1
- Detail 2
Co-Authored-By: Claude <co-author>
Good commits:
git checkout main
git pull origin main
git checkout -b feat/TASK-ID-description
# Commit often
git add -A
git commit -m "TASK-ID: Implement X"
# Push periodically
git push -u origin feat/TASK-ID-description
# Ensure tests pass
cargo test # or npm test, pytest, etc.
# Push final state
git push
# Log completion (megg or BACKLOG.md)
git push --force).megg/blocked.md or commit messageThe user reviews branches by:
# See all work
git branch -a
# Review specific branch
git log main..feat/BRANCH-NAME
git diff main..feat/BRANCH-NAME
# Merge if good
git checkout main
git merge feat/BRANCH-NAME
For OpenSpec changes:
feat/add-plugin-systemFor critical bugs in production:
hotfix/description branchnpx claudepluginhub toruai/toru-claude-agents --plugin toru-claude-agentsStructures git workflow practices for committing, branching, resolving conflicts, and organizing work across parallel streams. Use for any code change.
Structures git workflow practices for committing, branching, resolving conflicts, and organizing work across parallel streams. Use when making any code change.
Implements git branching strategies like Git Flow with naming conventions, prefixes, and best practices for clear development narratives and parallel workflows.