
generate-git-commit-message
by Efterklang
window & unix dotfiles
SKILL.md
name: generate-git-commit-message description: Generate and execute git commit messages for the current repository based on staged changes. Use when you need to commit staged files with an automatically generated conventional commit message.
Generate git commit message for current repo
Overview
This skill automates the process of generating a conventional commit message based on staged changes in a git repository and executes the commit.
Workflow
Follow these steps to generate and execute a commit:
-
Check staged changes: Run
git statusto verify there are staged files. If no staged changes, inform the user. -
Analyze changes: Run
git --no-pager diff --cachedto examine the staged modifications. -
Generate message: Create a conventional commit message based on the changes using the format:
- Determine type:
feat,fix,docs,style,refactor,test,chore - Add optional scope in parentheses if applicable, for example,
doc(api) - Write concise description (50 chars max)
- Add body if explanation needed, separated by blank line, prefer to explain WHY something was done from an end user perspective instead of WHAT was done.
- The output language should be English if not specified otherwise.
- Determine type:
-
Execute commit: Run
git commit -m "generated message"
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon


