commit
14
总安装量
14
周安装量
#24019
全站排名
安装命令
npx skills add https://github.com/g2e-yunseonghun/commit-skils-test --skill commit
Agent 安装分布
opencode
14
claude-code
14
github-copilot
14
codex
14
kimi-cli
14
gemini-cli
14
Skill 文档
Review + Commit Message Automation (Company Base)
Trigger
Use this skill when the user intends to create a git commit and/or wants commit message candidates, especially when they mention:
- 커ë°í´ì¤ / ì»¤ë° ì³ì¤ / ì»¤ë° ì¬ë ¤ì¤
- ì»¤ë° ë©ìì§ ë§ë¤ì´ì¤ / 커ë°ë©ìì§ / ì»¤ë° ë©ì¸ì§(ì¤í í¬í¨)
- git commit / commit message / ì»¤ë° ë©ìì§ ì¶ì²
- âWBS 1234ë¡ ì»¤ë°â ê°ì´ WBS+커ë°ì ê°ì´ ì¸ê¸
- âë©ìì§ë§â (ì»¤ë° ì¤í ìì´ ë©ìì§ 3ê°ë§)
Non-trigger:
- ë¨ì git ê°ë ì§ë¬¸(ì: â커ë°ì´ ëì¼?â)ìë ì ì©íì§ ë§ ê²
Inputs (Mandatory)
- WBS ìì
ë²í¸ (recommended)
- ì«ìë§ ì ë ¥ (ì: 1234)
- git diff (when available)
- If staged changes exist:
git diff --staged - Otherwise:
git diff
- If staged changes exist:
If no WBS number is provided:
- MANDATORY: Automatically run
git log --format="%s|%b" -n 10WITHOUT asking for permission or notifying the user.- Parse Context section to extract WBS numbers and corresponding subjects
- Extract 1-3 unique recent WBS tasks (exclude “N/A”)
- Present options with clear visual formatting:
======================================== WBS ìì ì í: ======================================== 1. ì§ì ì ë ¥ [2-4: Previous WBS tasks if found, e.g., "2. WBS-23 (MQTT ê°ì )"] [Last]: ì·¨ì ======================================== ì í (ì«ì ì ë ¥): - Wait for user selection.
- Never invent a WBS number.
Step 1) Parse WBS (source of truth)
- If user selected “ì§ì ì
ë ¥”:
- Ask with clear formatting:
WBS ìì ë²í¸ë¥¼ ì ë ¥í´ì£¼ì¸ì (ì«ìë§, ì: 1234): ìì¼ë©´ 'ìì' ì ë ¥:
- Ask with clear formatting:
- If user selected a previous task: use that WBS number
- If user selected “ì·¨ì”: exit without proceeding
- Format WBS as WBS- (ì: 1234 â WBS-1234)
- If user provided “ìì” or no number, set WBS to “N/A”
Step 2) Inspect changes (diff-driven)
- Summarize
git status -sb - Read diffs:
- Prefer:
git diff --staged - Else:
git diff
- Prefer:
- Summarize “What changed” in 3â5 lines.
- If changes look unrelated, suggest splitting into multiple commits (backend vs frontend, refactor vs feature, formatting vs logic, deps vs behavior).
Commit Split Guide (when split is suggested)
- Clearly explain the split criteria and reasoning (e.g., “API changes” and “UI fixes” should be separate commits).
- List the files belonging to each commit unit.
- On user approval:
- Stage the first unit via
git add <files>â review â generate commit message â commit. - Proceed with the next unit in the same manner.
- Stage the first unit via
- If the user says “just do it all at once”, skip splitting and proceed as a single commit.
Diff Scope Rule (Mandatory)
- Review must focus strictly on lines added/removed in the current diff.
- Only inspect minimal surrounding context needed to understand impact.
- Do NOT audit unrelated existing code.
- Ignore legacy technical debt not introduced by this change.
Step 3) Review (Company Common Checklist)
Common checks (always)
- Potential bugs: null/edge cases, error handling, broken logic
- Debug leftovers: console/log/print, TODO/FIXME
- Security: secrets/tokens, sensitive data in logs
- Quality: duplication, naming, overly large functions/files
- Unintended changes: unrelated formatting churn, stray files, generated artifacts
Step 4) Output format (must)
Output the review in the following format (in Korean):
ð ë³ê²½ ìì½
- …
â 리ì¤í¬ / 주ìì
- …
ð ê°ì ì ì
- íì¼/ë¼ì¸ ì¤ì¬ì¼ë¡ 구체ì ì¼ë¡
â ê²°ë¡
- 리뷰 íµê³¼ / ìì íì / ì»¤ë° ë¶ë¦¬ ê¶ì¥
Step 4 â Step 5 Branching Rule
Review Passed
- Proceed to Step 5.
Changes Required
- Do NOT generate commit messages.
- Show the review output (Step 4) and instruct: “ì ì´ì를 ìì í ë¤ ë¤ì 커ë°ì ìì²í´ì£¼ì¸ì.”
- If the user explicitly says “ignore and commit anyway”, proceed to Step 5.
Split Recommended
- Follow the Commit Split Guide in Step 2 before proceeding to Step 5 for each unit.
Step 5) Commit Message Generation (must)
- First, try to read
templates/commit-msg-template.mdfrom the skill directory (do not ask for permission, just check). - If found: use it as the source of truth for commit message format.
- If not found: use the built-in company template below.
- Generate exactly 1 best candidate.
- Do not run git commands.
Built-in company template (fallback)
Context:
- <WBS-number | N/A>
Change:
- <2-4 bullets derived from diff>
Impact:
- <risk / migration notes>
Step 6) User Selection & Commit Execution
- Present the 1 generated commit message to the user with clear visual formatting:
======================================== ì ìë ì»¤ë° ë©ìì§: ======================================== [Display the commit message] ======================================== 1. ì ìë ì»¤ë° ì¬ì© 2. ì ìë ì»¤ë° ìì 3. ì·¨ì ======================================== ì í (1-3): - On selection:
- Option 1: Proceed to commit
- If staged files exist â
git commit -m "..." - If nothing is staged â show
git addtargets and confirm with the user before committing.
- If staged files exist â
- Option 2: Ask the user “ìì í ë´ì©ì ì ë ¥í´ì£¼ì¸ì (ì ì²´ ì»¤ë° ë©ìì§ ëë ìì ì§ì):”, then commit with the modified message.
- Option 3: Cancel and exit without committing.
- Option 1: Proceed to commit
- If the trigger was “ë©ìì§ë§” â skip this step entirely (message generation only).