conventional-commit
Write a commit message following the Conventional Commits specification with scope and body
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write a commit message following the Conventional Commits specification with scope and body
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Health check procedures D1–D14 for the Audit agent — structural validation, attention budget, version checks, workspace integrity, and static audit
Configure and manage Model Context Protocol servers for external tool access
Review a UI for accessibility — WCAG 2.1 AA compliance, semantic HTML, ARIA usage, keyboard navigation, focus management, colour contrast, and screen reader compatibility
Design or review a REST or GraphQL API — resource modeling, versioning strategy, error contract, OpenAPI/schema-first workflow, and security baseline
Generate a CHANGELOG.md entry from staged changes, a commit range, or a PR diff — following Keep a Changelog format with conventional commit classification
Set up and audit environment variable management — create .env.example, add startup validation, separate secrets from config, and document every variable
| name | conventional-commit |
| description | Write a commit message following the Conventional Commits specification with scope and body |
| compatibility | >=1.4 |
Skill metadata: version "1.2"; license MIT; tags [git, commit, conventional-commits, changelog, versioning]; compatibility ">=1.4"; recommended tools [codebase, runCommands].
Write a well-structured commit message following the Conventional Commits specification.
Read the staged changes — Run git diff --cached --stat to see which files changed, then git diff --cached for the full diff.
Determine the type — Choose the most appropriate type:
| Type | When to use |
|---|---|
feat | A new feature or capability |
fix | A bug fix |
docs | Documentation-only changes |
style | Formatting, whitespace, semicolons — no logic change |
refactor | Code change that neither fixes a bug nor adds a feature |
perf | Performance improvement |
test | Adding or correcting tests |
build | Build system or external dependency changes |
ci | CI configuration changes |
chore | Maintenance tasks that don't modify src or test files |
revert | Reverts a previous commit — subject should reference the reverted hash or subject |
Determine the scope — Primary area affected (directory or module name). Omit if change spans many areas.
Write the subject line — <type>(<scope>): <imperative summary>. Imperative mood, lowercase after colon, no period, ≤72 chars.
Write the body (non-trivial changes): blank line after subject, explain what and why (not how), wrap at 72 chars, reference issues (Fixes #123).
Breaking change (if applicable): ! after type/scope + BREAKING CHANGE: <description and migration path> footer.
Present the message — Show the complete commit message for user review:
<type>(<scope>): <subject>
<body>
<footer>
Approval gate — Use askQuestions before committing. If called from the Commit agent, the agent's approval gate (commit workflow step 6) runs instead; skip this step in that context.
header: "Commit: <type>(<scope>): <subject>"
question: "Approve this commit message, or type an edited version below."
allowFreeformInput: true
options:
- label: "Approve as-is"
recommended: true
- label: "Skip this commit"
description: "Leave these files staged but do not commit them now"
- label: "Abort"
description: "Stop here without committing"
git commit.Execute — Once approved, prefer mcp_git_git_commit for multi-line messages (handles newlines safely). When using the terminal, write the message to a temp file and use git commit -F <tmpfile>, then remove the file. Do NOT use git commit -m "subject\n\nbody" — shell newline escaping is unreliable across platforms.
# Subject only
git commit -m "<type>(<scope>): <subject>"
# Subject + body/footer via temp file
tmp=$(mktemp); printf '%s\n\n%s\n\n%s' "<subject>" "<body>" "<footer>" > "$tmp"
git commit -F "$tmp"; rm -f "$tmp"
Confirm the commit was created: git log --oneline -1
VS Code 1.110+ git.addAICoAuthor (enabled by default) auto-appends Co-authored-by: GitHub Copilot. Check/change in VS Code Settings.
! marker and BREAKING CHANGE: footergit log --oneline -1 confirms the commit was created