| name | create-pr |
| description | Prepare and create a GitHub pull request for the current repository. Use when the user asks to commit, push, open a PR, write a PR description, or share changes for team review. Inspect the actual diff, include only authorized files, run proportionate verification, push the branch, and create a clear Korean PR that an IT Meister high school student can understand. Do not merge the PR unless the user explicitly asks. |
PR ์์ฑ
Create a reviewable pull request from the real branch state. Explain the change in simple Korean without hiding important technical facts.
1. Check the working state
- Read
AGENTS.md and repository Git rules.
- Inspect:
- current branch;
- target base branch;
git status;
- staged and unstaged diffs;
- recent commit style;
- configured remote;
- repository PR template, if present.
- Preserve unrelated user changes.
- If the user asks for only certain files, stage and commit only those files.
- Never include secrets, local environment files, generated caches, or unrelated debug artifacts.
If the current branch contains unrelated work, use a separate branch or worktree instead of stashing or overwriting the user's work.
2. Verify before committing
Choose checks based on the change:
- documentation or skills: format, links, structure validator, and
git diff --check;
- frontend logic: type-check, lint, relevant tests;
- routes, fonts, build configuration, or server/client boundaries: production build;
- API changes: schema/type checks and relevant service tests.
State which warnings existed before the change. Do not claim that a check passed if it was not run.
3. Create the commit
- Review
git diff --cached --name-only.
- Confirm every staged file belongs to the requested change.
- Use a Conventional Commit message:
feat(scope): ...
fix(scope): ...
chore(scope): ...
docs(scope): ...
test(scope): ...
- Commit only after the staged diff and verification are clean.
4. Push safely
- Push the current feature branch with upstream tracking.
- Do not force-push unless the user explicitly authorizes it.
- Do not push directly to protected branches such as
main or dev.
- Confirm the remote branch after pushing.
5. Write an easy PR description
Use short sentences and explain unfamiliar terms once. Prefer the background and solution process over a long file-by-file change list. Help the reviewer understand why the chosen approach is reasonable.
Recommended structure:
## ๋ฐฐ๊ฒฝ
์ด๋ค ๋ถํธ์ด๋ ๋ฐ๋ณต ๋ฌธ์ ๊ฐ ์์๋์ง ์ค๋ช
ํฉ๋๋ค.
์ง๊ธ ํด๊ฒฐํด์ผ ํ๋ ์ด์ ์ ๋ชฉํ๋ฅผ ์ ์ต๋๋ค.
## ํด๊ฒฐ ๊ณผ์
- ํ์ธํ ๊ธฐ์กด ๊ตฌ์กฐ์ ์ ์ฝ
- ๊ฒํ ํ ๋ฐฉ๋ฒ๊ณผ ์ ํํ ๋ฐฉ๋ฒ
- ๊ทธ ๋ฐฉ๋ฒ์ ์ ํํ ์ด์
- ๊ตฌํํ๋ฉด์ ํจ๊ป ๋ง์ ์ค์๋ ์ํ
## ๊ฒฐ๊ณผ
- ์ต์ข
์ ์ผ๋ก ๊ฐ๋ฅํด์ง ์ผ
- ํต์ฌ ๋ณ๊ฒฝ ์์ฝ
- ํ์ ๋ฏธ์น๋ ์ํฅ
## ์ด๋ป๊ฒ ์ฌ์ฉํ๋์?
๋ช
๋ น์ด๋ ์ค์ ์ฌ์ฉ ์์๋ฅผ ์ ์ต๋๋ค.
## ํ์ธํ ๋ด์ฉ
- [x] ์คํํ ๊ฒ์ฌ
- [x] ํ
์คํธ ๋๋ validator
## ๋ฆฌ๋ทฐํ ๋ ๋ด์ฃผ์ธ์
- ํ์์ด ๊ฒฐ์ ํ๊ฑฐ๋ ํ์ธํ ๋ถ๋ถ
## ์์ง ํ์ง ์์ ๊ฒ
- ์ด๋ฒ PR ๋ฒ์ ๋ฐ์ ์์
์ด๋ ์๋ ค์ง ์ ํ
Keep ๊ฒฐ๊ณผ shorter than ๋ฐฐ๊ฒฝ and ํด๊ฒฐ ๊ณผ์ unless the change itself requires detailed migration instructions.
For a repository skill PR, also explain:
- what a Codex skill is;
- where the skills are stored;
- whether teammates need installation;
- explicit invocation examples using
$skill-name;
- how to update and validate a skill;
- what behavior remains controlled by
AGENTS.md.
6. Create and verify the PR
- Use
gh pr create with the correct base and head.
- Avoid shell interpolation hazards when the body contains
$skill-name; use a safely quoted temporary body file.
- Open or inspect the created PR with
gh pr view.
- Return:
- branch name;
- commit hash and message;
- PR title and URL;
- verification results;
- any follow-up decision.
Do not merge, add reviewers, labels, or assignees unless requested or required by an existing repository rule.