Agent skill
git-workflow-automation
Comprehensive Git workflow automation including branching strategies, pull request creation, code reviews, merge strategies, and release management. Use when Claude needs to help with Git operations, branching models (Git Flow, GitHub Flow), pull request creation, code reviews, merge conflicts, or release processes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/git-workflow-automation-majiayu000-claude-skill-regist
SKILL.md
Git Workflow Automation
Overview
This skill automates common Git workflows and provides expert guidance on best practices for version control.
When to Use This Skill
- Creating feature branches with proper naming conventions
- Managing merge conflicts and resolution strategies
- Following Git Flow or GitHub Flow methodologies
- Creating and reviewing pull requests
- Performing release and hotfix operations
- Automating repetitive Git tasks
Branching Strategies
Git Flow
main (production-ready code)
├── develop (integration branch)
│ ├── feature/* (feature branches)
│ └── release/* (release preparation)
└── hotfix/* (urgent fixes)
GitHub Flow
main (always deployable)
└── feature/* (short-lived branches)
Common Operations
Creating a Feature Branch
git checkout -b feature/user-authentication
Syncing with Upstream
git checkout main
git pull origin main
git checkout feature/user-authentication
git rebase main
Resolving Merge Conflicts
- Identify conflicted files:
git status - Open files and look for conflict markers:
<<<<<<<,=======,>>>>>>> - Manually resolve conflicts by keeping desired changes
- Stage resolved files:
git add . - Complete the merge:
git rebase --continueorgit merge --continue
Pull Request Best Practices
- Write clear, descriptive titles and descriptions
- Link to related issues
- Include testing instructions
- Specify reviewers
- Follow conventional commit messages
Release Management
- Tag releases with semantic versioning (v1.2.3)
- Create release notes highlighting changes
- Verify CI/CD pipelines pass before merging
- Coordinate with stakeholders for deployment timing
Scripts Available
scripts/create-feature-branch.sh- Automated feature branch creationscripts/sync-with-main.sh- Sync current branch with mainscripts/prepare-release.sh- Prepare a new release branch
References
references/naming-conventions.md- Git branch naming conventions and best practicesreferences/workflow-patterns.md- Detailed workflow patterns and commands for different Git strategies
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?