โ† Back to list
eco2-team

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

TypePatternExample
Featurefeature/{scope}-{description}feature/chat-crud-api
Refactorrefactor/{scope}-{description}refactor/reward-fanout-exchange
Fixfix/{scope}-{description}fix/auth-token-refresh
Hotfixhotfix/{description}hotfix/critical-security-patch
Releaserelease/v{version}release/v1.2.0

Branch Rules

  1. Base Branch: develop (NOT main)
  2. Feature/Refactor/Fix: Branch from develop, merge back to develop
  3. Hotfix: Branch from main, merge to both main and develop
  4. Release: Branch from develop, merge to main after 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

TypeDescriptionExample
featNew featurefeat(chat): add message persistence
fixBug fixfix(auth): resolve token refresh race condition
refactorCode refactoringrefactor(chat_worker): apply Clean Architecture
docsDocumentationdocs: add API specification
testTeststest(chat_worker): add unit tests for intent classifier
choreMaintenancechore: update dependencies
styleFormattingstyle: fix linting errors
perfPerformanceperf(rag): optimize vector search

Scope Examples

  • auth, users, chat, chat_worker, location, character
  • infra, k8s, terraform, helm
  • ci, 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

  1. Wait for CI checks (GitHub Actions)
  2. Request review from team members
  3. Address review comments
  4. 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

BranchCI TriggerDeploy Target
mainPush(์˜ˆ๋น„, ํ˜„์žฌ ๋ฏธ์‚ฌ์šฉ)
developPush, PRDev (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