How this skill is triggered — by the user, by Claude, or both
Slash command
/dev:prThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [GitHub CLI (`gh`)](https://cli.github.com/) 설치 및 인증 필요 (`gh auth login`)
gh) 설치 및 인증 필요 (gh auth login)git branch --show-currentgit log main..HEAD --onelinegit diff main..HEAD위 명령의
main은base-branch슬롯 값으로 대체한다.
gh pr view 2>&1 || echo "PR 없음"프로젝트의 CLAUDE.md에 ## mccm:PR Conventions 섹션이 있으면, 아래 슬롯 중 명시된 항목만 대체한다. 명시되지 않은 슬롯은 기본값을 사용한다.
| 슬롯 | 키 | 기본값 |
|---|---|---|
| 베이스 브랜치 | base-branch | main |
| 언어 | language | 영문 |
| PR 제목 형식 | title-format | {타입}: {제목} |
| 타입 목록 | types | feat, fix, refactor, test, docs, chore, ci |
| 제목 최대 길이 | title-max-length | 70자 |
| 본문 형식 | body-format | ## Changes\n- ...\n\n## Test Plan\n... |
| 라벨 매핑 | label-map | feat→feature, fix→bugfix, refactor→refactoring, test→test, docs→documentation, chore→chore, ci→ci/cd |
| 자동 assignee | auto-assignee | true (현재 GitHub 사용자) |
| 체크 타임아웃 | checks-timeout | 600000 (ms, 10분) |
CLAUDE.md 작성 예시:
## mccm:PR Conventions
- language: 한글
- title-format: [{타입}] {제목}
- title-max-length: 60
- body-format: ## 변경 내용\n- ...\n\n## 테스트 계획\n...
- label-map: feat→enhancement, fix→bug
- auto-assignee: false
- checks-timeout: 300000
base-branch 슬롯의 브랜치이면 중단하고 사용자에게 알린다.git push -u origin HEAD
브랜치 이름과 커밋 목록을 바탕으로 PR 제목을 작성한다.
title-format 슬롯 사용types 슬롯 사용language 슬롯 사용title-max-length 슬롯 사용커밋 목록과 diff를 분석해 본문을 작성한다.
body-format 슬롯 사용language 슬롯 사용label-map 슬롯 사용. 매핑된 라벨이 저장소에 존재하지 않으면 --label 옵션을 생략한다.auto-assignee 슬롯이 true이면 현재 GitHub 사용자를 할당gh api user --jq '.login'
gh pr create --title "{제목}" --assignee "$(gh api user --jq '.login')" --label "{라벨}" --body "$(cat <<'EOF'
{본문}
EOF
)"
push 후 전체 커밋 목록과 diff를 재분석하여 제목과 본문을 업데이트한다.
gh pr edit --title "{제목}" --body "$(cat <<'EOF'
{본문}
EOF
)"
PR 생성(또는 업데이트) 후 GitHub Actions 체크가 완료될 때까지 대기한다.
gh pr checks --watch --fail-fast
이 명령은
run_in_background로 실행하고, 완료되면 결과를 확인한다. 타임아웃은checks-timeout슬롯 값을 사용한다.
npx claudepluginhub kang-jacob-gitlb/mccm --plugin devGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.