â ã¹ãã«äžèŠ§ã«æ»ã

git-workflow
by eco2-team
ð± ìŽìœììœ(Eco²) BE
â 0ðŽ 0ð
2026幎1æ25æ¥
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/
ã¹ã³ã¢
ç·åã¹ã³ã¢
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
ã¬ãã¥ãŒ
ð¬
ã¬ãã¥ãŒæ©èœã¯è¿æ¥å ¬éäºå®ã§ã