بنقرة واحدة
commit
Write detailed commit messages and create commits
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Write detailed commit messages and create commits
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | commit |
| description | Write detailed commit messages and create commits |
| triggers | ["commit","git commit","write commit","commit message","create commit"] |
Use this skill to analyze staged changes and write detailed, meaningful commit messages.
Run these commands in parallel to understand what's being committed:
# See all changes (staged and unstaged)
git status
# See staged changes (what will be committed)
git diff --cached
# See unstaged changes
git diff
# See recent commits for style reference
git log --oneline -10
Use AskUserQuestion if there are unstaged changes:
Question: "There are unstaged changes. What would you like to commit?" Header: "Scope" Options:
If user wants to choose files, ask:
Question: "Which files should be staged?" Header: "Files" (Show list of modified files as options with multiSelect: true)
Read the diff carefully and identify:
Type of change:
feat: New featurefix: Bug fixrefactor: Code restructuring without behavior changeperf: Performance improvementtest: Adding or updating testsdocs: Documentation changeschore: Build, config, or tooling changesstyle: Formatting, whitespace (no code change)Scope: What component/area is affected (e.g., microbench, runner, config, reporting)
Summary: What was done and why (not how)
Key changes: Bullet points of significant modifications
Structure the commit message:
<type>(<scope>): <concise summary>
<detailed explanation of what changed and why>
Key changes:
- <change 1>
- <change 2>
- <change 3>
Guidelines:
Show the proposed message and use AskUserQuestion:
Question: "How would you like to proceed?" Header: "Action" Options:
If user approves:
git commit -m "$(cat <<'EOF'
<commit message here>
EOF
)"
Then verify:
git log -1
Before committing, verify:
make lintmake test/unit or make test/failed-onlyIf any check fails, inform user and offer to fix before committing.
Run CodeRabbit CLI code review and interactively fix issues
Run formatters and linters, then fix reported issues
Generate PR title and description from branch diff against origin/main
Comprehensive PR review with detailed explanations and constructive feedback
Analyze and resolve git merge conflicts with guided assistance
Split a bloated PR into a stack of small, reviewable PRs