콘텐츠로 이동

Git Plugin

TBD 브랜치 전략 강제 + gh/gt 통합 Git 워크플로우 플러그인.

Why this domain exists

Git 워크플로우를 단일 플러그인으로 통합하여 TBD(Trunk-Based Development) 정책을 강제한다. gh(GitHub CLI)와 gt(Graphite)를 하나의 /git 서브커맨드로 관리.

구조

plugins/git/
├── .claude-plugin/
│   └── plugin.json
└── skills/
    ├── conventions/SKILL.md    # TBD 정책 anti-patterns (auto-loaded)
    └── git/SKILL.md            # /git <subcommand> (user-invoked)

서브커맨드

Command Tool Description
/git commit gh Conventional commit (Problem/Solution)
/git pr gh Pull request 생성
/git merge gh Squash merge (tech lead only)
/git issue gh Issue 생성 (issue-first)
/git stack gt Stacked PRs via Graphite

정책

  • TBD: main 단일 브랜치, short-lived feature branches
  • Squash merge only: --squash --delete-branch
  • Branch naming: <type>/<description> — 이슈 번호 없음
  • Commit: Problem/Solution 바디, Refs: #N 푸터
  • Title: 50자 target, 72자 hard max
  • Merge 권한: tech lead (pabloism0x) only
  • AskUserQuestion: 모든 git 작업 전 프리뷰 확인 필수
  • Hook 강제: 직접 git commit/push/merge 차단, /git skill만 허용

관련 문서