From ccpp
Automates Git commit with conventional messages, push to feature branch, and GitHub PR creation. Performs branch safety checks, sensitive file warnings, and status previews. Ideal for rapid PR workflows on non-main branches.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ccpp:commit-push-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
현재 변경사항을 커밋하고 푸시한 후 PR을 생성합니다.
현재 변경사항을 커밋하고 푸시한 후 PR을 생성합니다.
# 현재 브랜치 확인 — main/master면 STOP
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
echo "BLOCKED: main/master 브랜치에서 직접 커밋 금지"
exit 1
fi
# 상태 확인
git status
git diff --stat
git log --oneline -5
# 민감한 파일이 staged 되었는지 검사
git diff --cached --name-only | grep -E '\.(env|pem|key|credentials)' && echo "WARNING: 민감 파일 포함!"
# 변경 파일 선택적 staging (git add -A 지양)
git add [specific-files]
# 커밋 메시지 작성
git commit -m "$(cat <<'EOF'
[타입] 제목 (50자 이내)
본문 (선택 — 무엇이 아닌 왜를 설명)
Co-Authored-By: Claude <[email protected]>
EOF
)"
타입: feat, fix, docs, style, refactor, test, chore
# 원격 브랜치 설정 + 푸시
git push -u origin $(git branch --show-current)
gh pr create --title "[타입] 제목" --body "$(cat <<'EOF'
## 요약
- 변경 내용 1
- 변경 내용 2
## 테스트
- [ ] typecheck 통과
- [ ] lint 통과
- [ ] test 통과
EOF
)"
완료 시 PR URL을 반환합니다.
npx claudepluginhub jh941213/my-cc-harness --plugin ccppCommits changes to a new git branch (if on main), pushes to origin, and creates or views GitHub PR with gh CLI. Activates on 'commit and push', 'open PR', 'ship it'.
Creates new git branch if on main, commits and pushes changes, adapts PR template to git diffs, and opens GitHub pull request with conventional commit title.
Automates Git workflow: creates new branch if on main, commits changes with short imperative message, pushes to origin, and opens GitHub PR via gh CLI. Use after code changes.