一键导入
git-commit
Use when the user wants to commit staged changes, asks for a commit message, or wants a concise summary of the staged diff before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to commit staged changes, asks for a commit message, or wants a concise summary of the staged diff before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Creates a new GitHub pull request with `gh pr create` using title and body from the branch commits and diff. If the current branch is main or master, checks out a new branch whose name is a short kebab-case slug derived from the changes, then proceeds. PR title is one simple sentence over all commits in the range, preserving emoji from those commits. Use when opening a new PR, running `gh pr create`, or publishing a branch without an existing PR.
Automate desktop operations via keyboard/mouse simulation and macros on Linux and macOS. Current support wechat-app send message
Use when deploying a repository to GitHub Pages from the `main` branch and guiding users to complete required setup in GitHub repository Settings.
Extract tweet/post text and long-form article content from X/Twitter status URLs and save it as Markdown. Use when the user provides an `x.com` or `twitter.com` status link and wants the tweet body, article body, author metadata, or media links captured locally without browser login.
| name | git-commit |
| description | Use when the user wants to commit staged changes, asks for a commit message, or wants a concise summary of the staged diff before committing. |
Use this skill to turn the staged diff into a short, human-readable commit message with a leading emoji, then create the commit without pushing.
This repo prefers the staged-diff helper in this skill over raw git diff --staged so common lockfiles do not dominate the summary.
Use this skill when:
Do not use this skill for:
<emoji> <summary>
[body]
Scoped subject:
<emoji> [scope]: <summary>
Format details:
emoji is required and should match the dominant change.summary is required and should be a single concise sentence in present tense and active voice.scope is required when the current workspace is a monorepo. Use the affected package, app, or subsystem name.scope is optional and should be used only when it adds clarity.body is optional. Add it only when the reason or impact would be unclear from the subject alone.Made-with: Cursor.Gather the staged diff with the helper script.
skills/git-commit/scripts/git-diff.sh.pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lockb, Gemfile.lock, uv.lock, composer.lock, go.sum, and Cargo.lock.Stop cleanly when nothing is staged.
No changes to commit, tell the user there are no staged changes and do not run git commit.Derive the message from the staged diff.
scope from the staged paths and include it in the subject.Commit with safe quoting.
git commit -F - <<'EOF'
📝 Update commit message guidance
EOF
[scope] in the subject.Choose the closest match when there is no perfect option.
| Change type | Emoji | Example |
|---|---|---|
| New feature | ✨ | ✨ Add commit message scope support |
| Bug fix | 🐛 | 🐛 Fix staged diff parsing for empty output |
| Documentation | 📝 | 📝 Rewrite git-commit skill guidance |
| Refactor | ♻️ | ♻️ Simplify commit message selection flow |
| Tests | ✅ | ✅ Add coverage for emoji mapping |
| Build / CI | 👷 | 👷 Add workflow for release validation |
| Performance | ⚡️ | ⚡️ Speed up diff filtering |
| Configuration | 🔧 | 🔧 Add repo-level commit config |
| Developer tooling | 🔨 | 🔨 Add staged diff helper script |
| Dependencies | ⬆️ / ⬇️ / ➕ / ➖ | ⬆️ Upgrade dev dependencies |
| Text / copy | 💬 | 💬 Update default commit prompt |
| Minor fix | 🩹 | 🩹 Fix wording in commit output |
| Breaking change | 💥 | 💥 Change commit config schema |
If a more specific emoji is clearly better, use it.