← スキル䞀芧に戻る
eco2-team

git-workflow

by eco2-team

🌱 읎윔에윔(Eco²) BE

⭐ 0🍎 0📅 2026幎1月25日
GitHubで芋るManusで実行

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

スコア

総合スコア

60/100

リポゞトリの品質指暙に基づく評䟡

✓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

レビュヌ

💬

レビュヌ機胜は近日公開予定です