Commit message
コミットメッセージの生成、作成、フォーマット、gitmoji、Conventional Commits、コミットメッセージの規約などをユーザーが求めた際に使用されるスキル。コミットメッセージのスタイルとフォーマット規則に関する知識を提供する。From its SKILL.md
npx -y skills add k-rf/devstone --skill commit-messageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, as published. Nobody here has run it
コミットメッセージ規約
コミットメッセージのスタイル、フォーマット規則、プロジェクト固有の規約に関する知識を提供する。
設定
.agents/configs/commit.json が存在する場合、プロジェクト固有の設定を読み込む。
| フィールド | デフォルト | 説明 |
|---|---|---|
style | gitmoji | コミットメッセージのスタイル: gitmoji、conventional |
language | en | メッセージの言語: en、ja 等の ISO 639-1 コード |
scope | false | スコープをメッセージに含めるか(例: feat(auth):) |
customPrefix | — | 追加プレフィックス(例: チケットキー PROJ-123) |
メッセージ品質ガイドライン
件名
- 72文字以内にする
- 英語の場合は命令形を使用する("Add feature" であって "Added feature" ではない)
- 日本語の場合は動詞終止形(「○○する」)を使用する(体言止めではない)
- 複数のプレフィックスが必要に思える場合、コミットをさらに分割すべき
本文
- 変更のなぜを説明する(差分が何を変えたかを示すため、何をしたかは書かない)
- 件名と本文は空行で区切る
スタイルリファレンス
設定されたスタイルに応じて適切なリファレンスを参照する:
- gitmoji:
references/gitmoji.mdで絵文字の選択とフォーマットを確認する - conventional:
references/conventional-commits.mdでタイププレフィックスとフォーマットを確認する
コミットメッセージのフォーマット
Bash での HEREDOC 形式
Bash 経由でコミットを作成する際は、常に HEREDOC 形式を使用する。 本文には変更の理由を記載する:
git commit -m "$(cat <<'EOF'
<prefix> [customPrefix] <件名>
<この変更が行われた理由を説明する本文>
EOF
)"
追加リソース
リファレンスファイル
references/gitmoji.md— 絵文字リファレンスと選択戦略references/conventional-commits.md— Conventional Commits 仕様