← ClaudeAtlas

commit-pushlisted

Commit and push changes with commitlint-compliant messages. Blocks direct commits to main branch — automatically creates a new branch first via the "new" skill. Use when the user says "커밋", "푸시", "commit", "push", "커밋푸시", "올려줘", or wants to commit and push changes.
teamBuzzle/asdf · ★ 1 · Code & Development · score 65
Install: claude install-skill teamBuzzle/asdf
Commit staged/unstaged changes with a commitlint-compliant message and push to remote. **CRITICAL: main 브랜치 보호** — main 브랜치에서는 절대로 커밋/푸시하지 않는다. main에서 감지되면 자동으로 `/new` 스킬을 실행하여 브랜치를 먼저 생성한다. ## Steps ### 1. Check current branch and PR status ```bash # 현재 브랜치 확인 git rev-parse --abbrev-ref HEAD # 현재 브랜치에 열린 PR이 있는지 확인 gh pr view --json state,url --jq '.state' 2>/dev/null ``` **다음 경우 `/new` 스킬을 먼저 실행한다:** **Case A — main 브랜치인 경우:** > ⚠️ 현재 `main` 브랜치입니다. main에 직접 커밋/푸시할 수 없습니다. 새 브랜치를 생성합니다. **Case B — 이미 병합된 PR이 있는 브랜치인 경우 (state가 `MERGED`):** > ⚠️ 현재 브랜치의 PR이 이미 병합되었습니다. 새 브랜치를 생성합니다. **Note:** PR이 `OPEN` 상태인 경우에는 추가 커밋/푸시를 허용한다. 병합 전까지는 같은 브랜치에서 작업을 계속할 수 있다. 두 경우 모두: 1. `/new` 스킬을 실행하여 새 브랜치를 생성한다. (변경사항이 있으면 자동으로 분석하여 브랜치명을 결정한다) 2. 브랜치 생성이 완료되면 아래 Step 2부터 계속 진행한다. **그 외:** 바로 Step 2로 진행한다. ### 2. Gather current state Run these commands in parallel: ```bash # Check working tree status git status # See staged and unstaged changes git diff git diff --cached # Recent commit messages for style reference git log --oneline -10 ``` If there are no changes (clean working tree), inform the user: > 변경사항이 없습니다. 커밋할 내용이 없어요. And stop here. ### 3. Stage changes 모든 변경사항을 자동으로 스테이징한다. 사용자에게 확인을 묻지 않는다. - Stage all changed/untracked files using `git add <specific files>` (avoid `git add -A` or `git add .`) - 사용자가 별도로 제외를 지시하지 않는 한 모든 파일을 스테이징한다. 바이너리, 생성 파일 등도 포함. - `.env` 파일만 자동 제외하고 경고한다. ### 4. Generate commit message Analyze the staged changes and generate a