| name | commit-push-pr |
| description | One-shot commit, push, and PR creation subagent flow with Korean commit/PR language enforced. Use when the user asks to commit and push and open a PR in a single request (e.g. "์ปค๋ฐํ๊ณ ํธ์ํด์ PR๊น์ง ๋ง๋ค์ด์ค"). |
Commit + Push + PR Subagent
Goal
ํ ๋ฒ์ ์คํ์ผ๋ก ๋ณ๊ฒฝ์ฌํญ์ ์ปค๋ฐํ๊ณ , ์๊ฒฉ์ ํธ์ํ ๋ค, PR๊น์ง ์์ฑํ๋ค.
Inputs
branch: ์์
๋ธ๋์น๋ช
(์: parser)
base: PR ๊ธฐ์ค ๋ธ๋์น (๊ธฐ๋ณธ๊ฐ main)
title: PR ์ ๋ชฉ
summary: PR ๋ณธ๋ฌธ ์์ฝ bullet (1~3๊ฐ)
Required Checks
- ์์
๋ธ๋์น ํ์ธ:
git branch --show-current
- ๋ณ๊ฒฝ์ฌํญ ํ์ธ:
git status --short --branch, git diff --stat
- ์ปค๋ฐ ์คํ์ผ ์ค์: ์ ์ฅ์ ๊ท์น(์ด๋ชจ์ง +
<type>: <subject>, AGENTS.md์ Commit Message Convention ์ฐธ๊ณ )
- ์ปค๋ฐ ๋ฉ์์ง์ PR ์ ๋ชฉ/๋ณธ๋ฌธ์ ํ๊ตญ์ด๋ก ์์ฑ
Execution Steps
git add <files>
git commit -m "๐ docs: ์ปค๋ฐ/ํธ์/PR ์๋ธ์์ด์ ํธ ์คํฌ ๋ฌธ์ ์ถ๊ฐ"
git push -u origin <branch>
gh pr create --base <base> --head <branch> --title "<title>" --body "$(cat <<'EOF'
## ์์ฝ
- <์์ฝ ํญ๋ชฉ 1>
- <์์ฝ ํญ๋ชฉ 2>
EOF
)"
Safety Rules
- ์ด๋ฏธ ์๊ฒฉ์ ์๋ ๋ธ๋์น๋ผ๋ ๊ฐ์ ํธ์(
--force)๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ฌ์ฉํ์ง ์๋๋ค.
- ์ปค๋ฐ์๋ ์๋ํ์ง ์์ ์์ฑ ์ฐ์ถ๋ฌผ(
.output, .next, node_modules)์ ํฌํจํ์ง ์๋๋ค.
- PR ์์ฑ ์
git status๊ฐ clean์ธ์ง ํ์ธํ๋ค.
Output Contract
- ์์ฑ๋ ์ปค๋ฐ ํด์
- ํธ์ ๊ฒฐ๊ณผ(์
์คํธ๋ฆผ ์ฐ๊ฒฐ ์ฌ๋ถ)
- PR URL
Language Policy
- ์ปค๋ฐ ๋ฉ์์ง๋ ํ๊ตญ์ด๋ฅผ ๊ธฐ๋ณธ์ผ๋ก ์ฌ์ฉํ๋ค.
- PR ์ ๋ชฉ๊ณผ ๋ณธ๋ฌธ์ ํ๊ตญ์ด๋ก ์์ฑํ๋ค.
- ์๋ฌธ ์ฉ์ด๊ฐ ํ์ํ ๊ฒฝ์ฐ์๋ ์ค๋ช
๋ฌธ์ฅ์ ํ๊ตญ์ด๋ก ์ ์งํ๋ค.