galaxy-dawn/claude-scholar/git-workflow
Claude Code and agent skill by galaxy-dawn/claude-scholar
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team collaboration.
Install
npx vskill@latest install galaxy-dawn/claude-scholar/git-workflowSKILL.md
The same SKILL.md was published earlier as galaxy-dawn/claude-scholar/git-workflow.
Git Workflow Standards
This document defines the project's Git usage standards, including commit message format, branch management strategy, workflows, merge strategies, and more. Following these standards improves collaboration efficiency, enables traceability, supports automation, and reduces conflicts.
Commit Message Standards
The project follows the Conventional Commits specification:
Type Reference
| Type | Description | Example | |
|---|---|---|---|
feat | New feature | feat(user): add user export functionality | |
fix | Bug fix | fix(login): fix captcha not refreshing | |
docs | Documentation update | docs(api): update API documentation | |
refactor | Refactoring | refactor(utils): refactor utility functions | |
perf | Performance improvement | perf(list): optimize list performance | |
test | Test related | test(user): add unit tests | |
chore | Other changes | chore: update dependency versions |
Subject Rules
- Start with a verb: add, fix, update, remove, optimize
- No more than 50 characters
- No period at the end
For more detailed conventions and examples, see references/commit-conventions.md.
Branch Management Strategy
Branch Types
| Branch Type | Naming Convention | Description | Lifecycle | |
|---|---|---|---|---|
| master | master | Main branch, releasable state | Permanent | |
| develop | develop | Development branch, latest integrated code | Permanent | |
| feature | feature/feature-name | Feature branch | Delete after completion | |
| bugfix | bugfix/issue-description | Bug fix branch | Delete after fix | |
| hotfix | hotfix/issue-description | Emergency fix branch | Delete after fix | |
| release | release/version-number | Release branch | Delete after release |
Branch Naming Examples
Branch Protection Rules
master branch:
- No direct pushes allowed
- Must merge via Pull Request
- Must pass CI checks
- Requires at least one Code Review approval
develop branch:
- Direct pushes restricted
- Pull Request merges recommended
- Must pass CI checks
For detailed branch strategies and workflows, see references/branching-strategies.md.
Workflows
Daily Development Workflow
Hotfix Workflow
Release Workflow
Merge Strategy
Merge vs Rebase
| Feature | Merge | Rebase | |
|---|---|---|---|
| History | Preserves complete history | Linear history | |
| Use case | Public branches | Private branches | |
| Recommended for | Merging to main branch | Syncing upstream code |
Recommendations
- Feature branch syncing develop: Use
rebase - Feature branch merging to develop: Use
merge --no-ff - develop merging to master: Use
merge --no-ff
Project convention: Use --no-ff when merging feature branches to preserve branch history.
For detailed merge strategies and techniques, see references/merge-strategies.md.
Conflict Resolution
Identifying Conflicts
Resolving Conflicts
Conflict Resolution Strategies
Preventing Conflicts
- Sync code regularly - Pull latest code before starting work each day
- Small commits - Commit small changes frequently
- Modular features - Implement different features in different files
- Communication - Avoid modifying the same file simultaneously
For detailed conflict handling and advanced techniques, see references/conflict-resolution.md.
.gitignore Standards
Basic Rules
Common .gitignore
For detailed .gitignore patterns and project-specific configurations, see references/gitignore-guide.md.
Tag Management
Uses Semantic Versioning:
Version Change Rules
- MAJOR: Incompatible API changes (v1.0.0 → v2.0.0)
- MINOR: Backward-compatible new features (v1.0.0 → v1.1.0)
- PATCH: Backward-compatible bug fixes (v1.0.0 → v1.0.1)
Tag Operations
Team Collaboration Standards
Pull Request Standards
PRs should include:
Code Review Standards
Review focus areas:
- Code quality: Clear and readable, proper naming, no duplicate code
- Logic correctness: Business logic correct, edge cases handled
- Security: No security vulnerabilities, sensitive information protected
- Performance: No obvious performance issues, resources properly released
For detailed collaboration standards and best practices, see references/collaboration.md.
Common Issues
Amending the Last Commit
Push Rejected
Rollback to Previous Version
Stash Current Work
View File Modification History
Best Practices Summary
Commit Standards
✅ Recommended:
- Follow Conventional Commits specification
- Write clear commit messages describing changes
- One commit for one logical change
- Run code checks before committing
❌ Prohibited:
- Vague commit messages
- Multiple unrelated changes in one commit
- Committing sensitive information (passwords, keys)
- Developing directly on main branch
Branch Management
✅ Recommended:
- Use feature branches for development
- Regularly sync main branch code
- Delete branches promptly after feature completion
- Use
--no-ffmerge to preserve history
❌ Prohibited:
- Developing directly on main branch
- Long-lived unmerged feature branches
- Non-standard branch naming
- Rebasing on public branches
Code Review
✅ Recommended:
- All code goes through Pull Requests
- At least one reviewer approval before merging
- Provide constructive feedback
❌ Prohibited:
- Merging without review
- Reviewing your own code
Additional Resources
Reference Files
For detailed guidance on specific topics:
- `references/commit-conventions.md` - Commit message detailed conventions and examples
- `references/branching-strategies.md` - Comprehensive branch management strategies
- `references/merge-strategies.md` - Merge, rebase, and conflict resolution strategies
- `references/conflict-resolution.md` - Detailed conflict handling and prevention
- `references/advanced-usage.md` - Git performance optimization, security, submodules, and advanced techniques
- `references/collaboration.md` - Pull request and code review guidelines
- `references/gitignore-guide.md` - .gitignore patterns and project-specific configurations
Example Files
Working examples in examples/:
- `examples/commit-messages.txt` - Good commit message examples
- `examples/workflow-commands.sh` - Common workflow command snippets
Summary
This document defines the project's Git standards:
- Commit Messages - Follow Conventional Commits specification
- Branch Management - master/develop/feature/bugfix/hotfix/release branch strategy
- Workflows - Standard processes for daily development, hotfixes, and releases
- Merge Strategy - Use rebase to sync feature branches, merge --no-ff to merge
- Tag Management - Semantic versioning, annotated tags
- Conflict Resolution - Regular syncing, small commits, team communication
Following these standards improves collaboration efficiency, ensures code quality, and simplifies version management.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-workflow/SKILL.md
Popularity
- Repository stars
- 4,335
- Repository forks
- 379
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/galaxy-dawn/claude-scholar/git-workflow)