← スキル一覧に戻る

commit
by kriscard
Personal Claude Code plugin marketplace - skills, commands, and agents for maximum productivity
⭐ 0🍴 0📅 2026年1月22日
SKILL.md
name: commit description: This skill should be used when the user says "commit changes", "commit this", "commit my work", "save to git", "save my changes", "push this", "push my work", "create a commit", or wants to save their work to version control. Handles the full git workflow including staging, committing, and pushing.
Git Commit Workflow
Direct execution of git commit workflow - no agent delegation, fast and simple.
Trigger Phrases
This skill activates on:
- "commit changes", "commit this", "commit my work"
- "save to git", "save my changes", "save this to git"
- "push this", "push my changes", "push my work"
- "create a commit", "make a commit"
- "git commit", "check in my changes"
Proactive Triggering
After completing implementation work, proactively offer to commit:
- "I've finished implementing the feature. Would you like me to commit these changes?"
- Use AskUserQuestion with options: "Yes, commit now" / "No, I'll review first"
Workflow
Step 1: Assess Changes
git status
git diff
If no changes: Report "No changes to commit" and end.
Step 2: Stage Files
Stage logically related changes:
git add <files>
Skip sensitive files: .env, credentials, tokens - warn user if detected.
Step 3: Create Conventional Commit
Analyze changes and determine:
- Type: feat, fix, docs, style, refactor, perf, test, chore
- Scope: Component/area affected
- Subject: Imperative, lowercase, max 50 chars, no period
Commit format:
<type>(<scope>): <subject>
[Narrative body explaining WHAT and WHY - 2-4 sentences, NO bullet points]
Good example:
feat(auth): add session timeout handling
Implements automatic session refresh when user activity is detected
within the timeout window. Sessions now persist across page reloads
using localStorage with encrypted tokens.
Bad example (avoid):
feat(auth): add features
- Added timeout
- Added refresh
- Added localStorage
Step 4: Execute Commit
git commit -m "$(cat <<'EOF'
<commit message here>
EOF
)"
Step 5: Handle Pre-commit Hooks
If hooks modify files:
- Stage the modified files
- Amend the commit:
git commit --amend --no-edit
Step 6: Ask About Push
Use AskUserQuestion:
- "Commit successful! Push to remote?"
- Options: "Yes, push now" / "No, keep local"
Step 7: Push (if confirmed)
git push
# or if no upstream:
git push -u origin <branch>
Safety Rules
- NEVER commit .env files or credentials
- NEVER force push without explicit user request
- NEVER amend commits on shared branches without warning
- Always show what will be committed before committing
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です