← スキル一覧に戻る
Example of

git-commit
by kompox
Kompox SSH Bastion
⭐ 0🍴 0📅 2026年1月10日
SKILL.md
name: git-commit description: Suggest commit messages based on staged changes and assist with committing using an editor.
Tasks
- Suggest commit messages based on staged changes in the current branch.
Basic Steps
- Get staged changes
- Use the following command to get staged changes:
make git-diff-cached - This command will:
- Display the diff of staged changes (if any)
- Show the next commit message file path to create (e.g.,
_tmp/git-commit/0038.txt) - Display "No staged changes to commit." if nothing is staged
- Use the following command to get staged changes:
- Handle case when there are no staged changes
- If there are no staged changes, ask the user if they want to stage all files.
- Only if the user agrees, run the following to get the diff:
git add -A && make git-diff-cached
- Create new file
_tmp/git-commit/NNNN.txtwith commit message suggestions.- Use the file path shown by
make git-diff-cached(e.g.,_tmp/git-commit/0038.txt) NNNNis a 4-digit zero-padded sequence number (e.g.,0001,0002, ...,0038)- Suggest 3 commit message options.
- Label each suggestion with
# Plan A/B/C(see the example in the next section).
- Use the file path shown by
- Commit with editor assistance.
- Execute one of the following:
- Task
Git: Commit with editor - Terminal command
make git-commit-with-editor
- Task
- An editor will open for the user to edit the commit message file. Wait until the user closes the editor, which will complete the commit.
- Execute one of the following:
- Confirmation
- Report the success or failure of
git commit. - Run
make git-showto check the latest commit message and confirm that one of Plan A/B/C is reflected. If it appears that the commit was made without selecting a plan, warn the user.
- Report the success or failure of
Example of _tmp/git-commit/NNNN.txt
# Plan A
docs: git-commit skill and AGENTS.md improvements
- git-commit/SKILL.md: Organize steps in a bulleted list
- AGENTS.md: Clarify document structure
# Plan B
docs(dev): Project document structure maintenance
- .github/skills/git-commit/SKILL.md: Organize basic steps in a bulleted list and add confirmation step
- AGENTS.md: Clarify document classification for users and developers, specify placement of ADR/specs/tasks
# Plan C
docs: Document organization and skill step improvements
- git-commit/SKILL.md: Structure steps for better readability
- AGENTS.md: Clarify document placement rules
Commit Message Guidelines
- Commit messages should be written in English.
- The title should be within 50 characters for English.
- Insert a blank line after the title.
- Use bullet points in the body to concisely explain the summary of changes.
- Add reasons based on past discussions with users (if possible).
- Follow Conventional Commits.
- type:
feat | fix | refactor | perf | chore | docs | test - Use directory names as scopes when necessary (e.g.,
_dev/design).
- type:
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です