← Back to list

commit-msg
by cm-yoshikikasama
⭐ 1🍴 0📅 Jan 22, 2026
SKILL.md
name: commit-msg description: Generate commit message from git diff with security check allowed-tools: Bash(git status *), Bash(git diff *), Bash(git log *), Read, Grep, Glob, LS disable-model-invocation: true
Git Add, Commit, Push Command Generator
Your task
- Check git status and diff to understand changes
- Analyze recent commits for style reference
- Security check for confidential information
- Generate a single-line commit message
- Output 3 executable git commands (add, commit, push)
Step 1: Check Git Status and Changes
git status
git diff --cached
git diff
Step 2: Analyze Recent Commits (for style reference)
git log --oneline -10
Step 3: Security Check (IMPORTANT)
Before generating commands, verify the diff does NOT contain:
- Real project/client names (actual company names, project codes)
- Personal information (real names, emails, phone numbers)
- Credentials (API keys, passwords, tokens)
- Internal URLs or IP addresses
- Confidential business information
If any confidential information is found:
- List the specific items found
- DO NOT output git commands
- Ask user to remove confidential information first
Step 4: Generate Single-Line Commit Message
Generate a single-line commit message following these rules:
-
Format:
<type>(<scope>): <description>- Type: feat, fix, docs, style, refactor, test, chore, etc.
- Scope (optional): component or file affected
- Description: concise summary of changes in English
-
Best Practices:
- Use imperative mood ("add" not "added")
- Keep under 72 characters
- No period at end
- Focus on what changed
Step 5: Output Executable Commands
Only if security check passes, output exactly 3 lines of executable git commands:
git add .
git commit -m "<generated commit message>"
git push
IMPORTANT:
- Do NOT execute the commands
- Only output the 3 command lines
- User can copy and execute them manually
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon