โ Back to list

git-workflow
by eco2-team
๐ฑ ์ด์ฝ์์ฝ(Ecoยฒ) BE
โญ 0๐ด 0๐
Jan 25, 2026
SKILL.md
name: git-workflow description: Git Flow ๋ธ๋์น ์ ๋ต ๋ฐ PR ์ ์ฐจ ๊ฐ์ด๋. ๋ธ๋์น ์์ฑ, ์ปค๋ฐ, PR ์์ฑ ์ ์ฐธ์กฐ. "branch", "commit", "PR", "pull request", "merge", "git flow" ํค์๋๋ก ํธ๋ฆฌ๊ฑฐ.
Git Workflow Guide
Branch Strategy (Git Flow)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Branch Flow โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ main โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โ (release merge) โ
โ โ โ
โ develop โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ โ โ
โ โ โ โ (PR merge) โ
โ โ โ โ โ
โ feature/ refactor/ fix/ โ
โ xxx xxx xxx โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Branch Naming Convention
| Type | Pattern | Example |
|---|---|---|
| Feature | feature/{scope}-{description} | feature/chat-crud-api |
| Refactor | refactor/{scope}-{description} | refactor/reward-fanout-exchange |
| Fix | fix/{scope}-{description} | fix/auth-token-refresh |
| Hotfix | hotfix/{description} | hotfix/critical-security-patch |
| Release | release/v{version} | release/v1.2.0 |
Branch Rules
- Base Branch:
develop(NOTmain) - Feature/Refactor/Fix: Branch from
develop, merge back todevelop - Hotfix: Branch from
main, merge to bothmainanddevelop - Release: Branch from
develop, merge tomainafter QA
โ ๏ธ CRITICAL: PR์ ๋ฐ๋์
develop๋ธ๋์น๋ฅผ base๋ก ์์ฑํด์ผ ํฉ๋๋ค.
gh pr create --base develop(NOT--base main)- main์ผ๋ก ์๋ชป ๋จธ์งํ๋ฉด main โ develop PR์ ์ถ๊ฐ๋ก ์์ฑํด์ผ ํฉ๋๋ค.
Commit Convention (Conventional Commits)
<type>(<scope>): <description>
[optional body]
[optional footer]
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Types
| Type | Description | Example |
|---|---|---|
feat | New feature | feat(chat): add message persistence |
fix | Bug fix | fix(auth): resolve token refresh race condition |
refactor | Code refactoring | refactor(chat_worker): apply Clean Architecture |
docs | Documentation | docs: add API specification |
test | Tests | test(chat_worker): add unit tests for intent classifier |
chore | Maintenance | chore: update dependencies |
style | Formatting | style: fix linting errors |
perf | Performance | perf(rag): optimize vector search |
Scope Examples
auth,users,chat,chat_worker,location,characterinfra,k8s,terraform,helmci,cd,pipeline
PR Procedure
1. Create Branch
# From develop branch
git checkout develop
git pull origin develop
git checkout -b feature/chat-crud-api
2. Work & Commit
# Make changes
git add .
git commit -m "feat(chat): add message persistence"
3. Push & Create PR
# Push to remote
git push -u origin feature/chat-crud-api
# Create PR via gh CLI
gh pr create --base develop --title "feat(chat): add CRUD API for messages" --body "$(cat <<'EOF'
## Summary
- Add message persistence endpoints
- Implement ChatRepository with PostgreSQL
## Test plan
- [ ] Unit tests pass
- [ ] Integration tests with DB
- [ ] Manual API testing
๐ค Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
4. PR Review & Merge
- Wait for CI checks (GitHub Actions)
- Request review from team members
- Address review comments
- Squash and merge to
develop
PR Template
## Summary
<1-3 bullet points describing changes>
## Related Issue
Closes #123
## Test plan
- [ ] Unit tests pass (`pytest apps/{service}/tests/unit -v`)
- [ ] Integration tests pass
- [ ] Manual testing completed
## Checklist
- [ ] Code follows project conventions
- [ ] Tests added/updated
- [ ] Documentation updated (if needed)
- [ ] No breaking changes (or documented)
๐ค Generated with [Claude Code](https://claude.com/claude-code)
CI/CD Integration
GitOps ํ๋ก์ฐ
ArgoCD๊ฐ
develop๋ธ๋์น๋ฅผ ๋ฐ๋ผ๋ด (Staging ์๋, Dev ํ๊ฒฝ ์ง์ ๋ฐฐํฌ)
PR โ develop ๋จธ์ง โ ArgoCD auto-sync โ Dev ํด๋ฌ์คํฐ ๋ฐ์
Branches Triggering CI
| Branch | CI Trigger | Deploy Target |
|---|---|---|
main | Push | (์๋น, ํ์ฌ ๋ฏธ์ฌ์ฉ) |
develop | Push, PR | Dev (ArgoCD sync) |
feature/* | PR only | - |
refactor/* | PR only | - |
fix/* | PR only | - |
Quality Gates
- Linting (ruff, black)
- Type checking (mypy)
- Unit tests (pytest)
- Security scan (SonarCloud)
Quick Reference
Common Commands
# Start new feature
git checkout develop && git pull && git checkout -b feature/new-feature
# Sync with develop
git fetch origin develop && git rebase origin/develop
# Create PR
gh pr create --base develop
# Check PR status
gh pr status
# View PR in browser
gh pr view --web
Useful gh CLI Commands
# List open PRs
gh pr list
# Check out PR locally
gh pr checkout 123
# Approve PR
gh pr review --approve
# Merge PR
gh pr merge --squash --delete-branch
Reference Files
- Branch naming: See branch-naming.md
- Commit examples: See commit-examples.md
- Token streaming fix: See token-streaming-fix.md - Worktree + ํธ๋ฌ๋ธ์ํ ์ฌ๋ก
- PR templates: See
.github/PULL_REQUESTS/ - Issue templates: See
.github/ISSUE_TEMPLATE/
Score
Total Score
60/100
Based on repository quality metrics
โSKILL.md
SKILL.mdใใกใคใซใๅซใพใใฆใใ
+20
โLICENSE
ใฉใคใปใณในใ่จญๅฎใใใฆใใ
+10
โ่ชฌๆๆ
100ๆๅญไปฅไธใฎ่ชฌๆใใใ
0/10
โไบบๆฐ
GitHub Stars 100ไปฅไธ
0/15
โๆ่ฟใฎๆดปๅ
3ใถๆไปฅๅ ใซๆดๆฐใใใ
0/10
โใใฉใผใฏ
10ๅไปฅไธใใฉใผใฏใใใฆใใ
0/5
โIssue็ฎก็
ใชใผใใณIssueใ50ๆชๆบ
+5
โ่จ่ช
ใใญใฐใฉใใณใฐ่จ่ชใ่จญๅฎใใใฆใใ
+5
โใฟใฐ
1ใคไปฅไธใฎใฟใฐใ่จญๅฎใใใฆใใ
0/5
Reviews
๐ฌ
Reviews coming soon