asiaostrich/universal-dev-standards/git-workflow-guide
Claude Code and agent skill by asiaostrich/universal-dev-standards
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Guide Git branching strategies, branch naming, and merge operations. Use when: creating branches, merging, pull requests, Git workflow questions. Not for: composing the commit message — use /commit; the safety checks around pushing — use /push. Keywords: branch, merge, PR, pull request, GitFlow, GitHub Flow.
Install
npx vskill@latest install asiaostrich/universal-dev-standards/git-workflow-guideSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as asiaostrich/universal-dev-standards/git-workflow-guide.
Git Workflow Guide
Language: English | 繁體中文
Version: 1.0.0 Last Updated: 2025-12-24 Applicability: Claude Code Skills
Core Standard: This skill implements Git Workflow. For comprehensive methodology documentation, refer to the core standard.
Purpose
This skill provides guidance on Git branching strategies, branch naming conventions, and merge operations.
Quick Reference
Workflow Strategy Selection
| Deployment Frequency | Recommended Strategy | |
|---|---|---|
| Multiple times/day | Trunk-Based Development | |
| Weekly to bi-weekly | GitHub Flow | |
| Monthly or longer | GitFlow |
Branch Naming Convention
| Type | Usage | Example | |
|---|---|---|---|
feature/ | New functionality | feature/oauth-login | |
fix/ or bugfix/ | Bug fixes | fix/memory-leak | |
hotfix/ | Urgent production fixes | hotfix/security-patch | |
refactor/ | Code refactoring | refactor/extract-service | |
docs/ | Documentation only | docs/api-reference | |
test/ | Test additions | test/integration-tests | |
chore/ | Maintenance tasks | chore/update-dependencies | |
release/ | Release preparation | release/v1.2.0 |
Naming Rules
- Use lowercase
- Use hyphens for spaces
- Be descriptive but concise
Detailed Guidelines
For complete standards, see:
AI-Optimized Format (Token-Efficient)
For AI assistants, use the YAML format files for reduced token usage:
- Base standard:
ai/standards/git-workflow.ai.yaml - Workflow options:
- GitHub Flow:
ai/options/git-workflow/github-flow.ai.yaml - GitFlow:
ai/options/git-workflow/gitflow.ai.yaml - Trunk-Based:
ai/options/git-workflow/trunk-based.ai.yaml - Merge strategy options:
- Squash Merge:
ai/options/git-workflow/squash-merge.ai.yaml - Merge Commit:
ai/options/git-workflow/merge-commit.ai.yaml - Rebase + FF:
ai/options/git-workflow/rebase-ff.ai.yaml
Pre-branch Checklist
Before creating a new branch:
- Check for unmerged branches
``bash git branch --no-merged main ``
- Sync latest code
``bash git checkout main git pull origin main ``
- Verify tests pass
``bash npm test # or your project's test command ``
- Create branch with proper naming
``bash git checkout -b feature/description ``
Merge Strategy Quick Guide
| Strategy | When to Use | |
|---|---|---|
Merge Commit (--no-ff) | Long-lived features, GitFlow releases | |
| Squash Merge | Feature branches, clean history | |
| Rebase + FF | Trunk-Based, short-lived branches |
Examples
Creating a Feature Branch
Merge Workflow (GitHub Flow)
Handling Merge Conflicts
Configuration Detection
This skill supports project-specific workflow configuration.
Detection Order
- Check
CONTRIBUTING.mdfor "Git Workflow" or "Branching Strategy" section - If found, use the specified strategy (GitFlow / GitHub Flow / Trunk-Based)
- If not found, default to GitHub Flow for simplicity
First-Time Setup
If no configuration found:
- Ask the user: "This project hasn't configured a Git workflow strategy. Which would you prefer? (GitFlow / GitHub Flow / Trunk-Based)"
- After selection, suggest documenting in
CONTRIBUTING.md:
Next Steps Guidance | 下一步引導
After /git-flow completes, the AI assistant should suggest:
Git 工作流程已設定。建議下一步 / Git workflow configured. Suggested next steps:- 執行git checkout -b feature/<描述>建立功能分支開始開發 ⭐ Recommended / 推薦 — 立即套用所選的分支策略 / Apply the chosen branching strategy immediately- 執行/commit學習提交訊息規範 — 確保提交訊息格式一致 / Ensure consistent commit message format- 執行/checkin了解簽入品質門檻 — 在提交前確保程式碼品質 / Ensure code quality before commits
Related Standards
- Git Workflow - Core Git workflow standard
- Commit Message Guide - Commit message conventions
- Checkin Standards - Pre-commit quality gates
Version History
| Version | Date | Changes | |
|---|---|---|---|
| 1.0.0 | 2025-12-24 | Added: Standard sections (Purpose, Related Standards, Version History, License) |
License
This skill is released under CC BY 4.0.
Source: universal-dev-standards
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-guide/SKILL.md
Popularity
- Repository stars
- 75
- Repository forks
- 13
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
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/asiaostrich/universal-dev-standards/git-workflow-guide)