Skip to main content

commit-message

Generate a concise commit message for the current staged or unstaged changes, written in the user's own style learned from git history. Use when the user asks for a commit message, or invokes /commit-message.

소스 정보

저장소
sheshbabu/riffle
최근 소스 활동
2026년 9월 26일 09:57
감지된 SKILL.md 언어
영어
스타
34
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
commit-message
description
Generate a concise commit message for the current staged or unstaged changes, written in the user's own style learned from git history. Use when the user asks for a commit message, or invokes /commit-message.
# Commit message Write a commit message for the current changes that reads like the user wrote it. Only output the message. Don't stage, commit, or run any git command that changes state. ## 1. Collect the changes - Run `git diff --cached --stat` and `git diff --cached`. - If nothing is staged, use `git diff --stat` and `git diff` instead, and say the message covers unstaged changes. - Include untracked files from `git status --short` when nothing is staged, since new files are usually part of the change. - Ignore `assets/bundle.js` and `assets/bundle.css` and their source maps, since they are build output. - For large diffs, read the stat first and then only the hunks needed to understand intent. ## 2. Learn the style from history Run `git log --format='%s%n%b---' -n 50` and match what you see. If the history disagrees with the defaults below, follow the history. Defaults observed in the user's history: - A single subject line, no body. Median length is around 25 characters. - Starts with a past tense verb, capitalized: Added, Updated, Implemented, Fixed, Improved, Removed, Tweaked, Refactored, Consolidated, Switched, Made. - Describes the outcome from the user's or reader's point of view, not the mechanics. "Fixed lightbox image size", not "Changed max-height calculation in Lightbox.css". - No conventional commit prefixes (`feat:`, `fix:`), no scopes, no emoji, no trailing period, no ticket numbers. - Two unrelated changes are joined with `; ` or `and`, each part starting with its own verb: `Consolidated progress datastructure and implemented global operation lock`. - A short clause may explain intent: `Added stopPropagation to prevent wrong behaviour`. - A body is only used for large, multi-part changes, as a blank line then `- ` bullets, one short fact per line. - No `Co-Authored-By` or other trailers. - Don't use em dashes. ## 3. Write the message - Name the main user-visible change. Leave out incidental edits such as formatting, docs updates, or small refactors unless they are the whole change. - Prefer one clause. Use `; ` for a second unrelated change, and a bullet body only when three or more significant changes can't fit a subject line. - Keep the subject under about 70 characters when possible. ## 4. Output Print the message in a fenced code block so it can be copied as is. If the changes look like they belong in separate commits, say so in one line after the block and suggest a message for each.
GitHub에서 보기