| name | commit-skill |
| description | Strict workflow for Git commits: inspect changes since last commit, generate a Conventional Commits message, show summary, and require explicit user confirmation before commit. |
commit-skill
Usage
Use this skill when the user asks to commit or save current git changes.
Trigger Intents
- ์ปค๋ฐ ์งํ
- ์ปค๋ฐ
- commit
- commit ์งํ
- save changes with git
Mandatory Safety Rule
Never run git commit without explicit approval in the current conversation turn.
Change Inspection Rule
Always run the OS-appropriate inspection script first. Base analysis on script output only.
- macOS/Linux: sh copilot/skills/commit-skill/scripts/inspect-changes.sh
- Windows: cmd /c copilot\skills\commit-skill\scripts\inspect-changes.cmd
Workflow
- Inspect working tree and changes since HEAD with the inspection script.
- Summarize changed files and change intent.
- Generate a Conventional Commits candidate message.
- Ask for explicit confirmation before commit and remain in the Tier 1 confirmation gate until the user responds.
- On approval, stage relevant files and execute commit.
Commit Message Rules
- Analyze staged and unstaged changes since HEAD.
- Subject format: (): in English.
- Optional body: concise Korean bullets for change details.
- Allowed types: feat, fix, docs, refactor, test, chore, style, perf.
- If unrelated changes exist, recommend commit split.
Confirmation Rules
- Treat the confirmation step as an explicit
AWAIT boundary: do not stage or commit while approval is pending.
- Approve examples: ์งํ, yes, approve, ์ปค๋ฐํด.
- Reject examples: ์ทจ์, no, cancel, stop.
- Ambiguous input: ask clarification and do not commit.
Failure Handling
- No changes: report and stop.
- Inspection script failure: report script error and stop.
- Commit failure: report error and ask retry intent.
- Protected branch warning: alert for main, master, or develop.
Output Template
๋ณ๊ฒฝ ์์ฝ:
- <file 1>: <short change>
- <file 2>: <short change>
์ ์ ์ปค๋ฐ ๋ฉ์์ง:
<type>(<scope>): <english subject>
- <ํ๊ธ ์ธ๋ถ ๋ณ๊ฒฝ์ฌํญ 1>
- <ํ๊ธ ์ธ๋ถ ๋ณ๊ฒฝ์ฌํญ 2>
์ ๋ฉ์์ง๋ก ์ปค๋ฐ์ ์์ฑํ ๊น์?