Generates emoji-prefixed Conventional Commit messages or creates focused local commits from staged or user-authorized unstaged changes. Handles scope selection, sensitive file detection, and ignore-vs-commit decisions without pushing.
Ships in adonis-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
这个 skill 的产出是一次范围正确的本地提交(或一条只读生成的消息)。三件事决定成败:选对变更集、消息符合 emoji + Conventional Commits、报告与 Git 实际结果一致。不 push。
git status、git diff --cached、git diff 和必要文件;不 git add、不 git commit、不改 .gitignore 或其他工作树/index。默认分析 staged changes;用户点名另一组 unstaged/untracked 变更时只分析该范围,并说明 staged 内容被排除。范围不唯一时只说明需要选哪组。第一次探测合并成一次调用:
git status --short --branch && git diff --cached --stat
按顺序判断:
| 状态 | 做法 |
|---|---|
| 有 staged,用户没点名别的范围 | 只提交 staged。unstaged 不自动加入,报告里提醒仍未提交的文件。 |
| 有 staged,但用户授权的是另一组路径 | 停下报告范围错位。不提交已有 staged,不 stage 新范围,不替用户 unstage;请用户选择或拆分 index。 |
| 无 staged,只有一个 unstaged/untracked 文件 | 看该文件 diff 或内容,无敏感风险就 git add -- <path> 后继续,不要求用户再跑一次。 |
| 无 staged,多个文件 | 用户点名的范围,或本会话刚完成、目的单一且能从 diff 核对的变更集,就是提交范围,不需要用户再说“全部提交”。无法归属的既有修改先排除;范围仍不唯一才询问,不凭同目录推断同属本任务。 |
| 什么都没有 | 告诉用户没有可提交内容。 |
用户要求拆成多个提交时,每个提交各自用明确路径 stage,逐个完成下面的流程。
git add -- <path...>。把 git status 的全部条目批量喂给 git add(如 --pathspec-from-file)等同 git add -A,同样跳过了逐项分类;除非用户明确要求提交全部变更,否则不用。.env、credential、token、cookie、private key、secret、证书或私密数据时,停下请用户确认。?? untracked、依赖/构建/缓存/OS 噪音或疑似密钥时,先读 references/ignore-vs-commit.md 再分类;该忽略的补 .gitignore 且不 stage,已跟踪的密钥停下上报。候选全是已跟踪的源码/文档改动时不用读它。.gitignore、或因 ignore 规则没纳入的路径,当轮告诉用户路径/pattern、原因、做了什么。用 git diff --cached 看已确定范围的内容,再写消息:
commitlint 配置、CONTRIBUTING、AGENTS.md/CLAUDE.md 中的规定)时服从仓库。emoji type(scope): subject。emoji 只能取下表对应项,并由你写进消息;不要依赖 hook 自动补 emoji,没有这类 hook 的仓库会留下格式不一的历史。| type | emoji | 用于 |
|---|---|---|
| feat | ✨ | 新功能 |
| fix | 🐛 | Bug 修复 |
| docs | 📝 | 仅文档 |
| style | 🎨 | 不改语义的格式调整 |
| refactor | ♻️ | 非新功能、非修复的代码调整 |
| perf | ⚡️ | 性能 |
| test | ✅ | 测试 |
| build | 🏗️ | 构建系统或依赖 |
| ci | 👷 | CI 配置和脚本 |
| chore | 🔧 | 其他杂项(配置、同步等) |
🐛 fix(payment): handle zero-amount refunds。git commit -m "$(cat <<'EOF'
✨ feat(auth): add user login feature
EOF
)"
--no-verify 或 HUSKY=0,除非用户明确要求。--amend);没成功就不报告成功。git status --short --branch && git log -1 --format='%h %s'
给出:提交 hash 和实际 subject、跑过的检查、仍未提交的文件,以及本次 Ignore vs Commit 处理过的路径(忽略了什么、为什么、是否改了 .gitignore)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/adonis-skills:commitfrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchChoose the lightest agent setup for a coding, review, drafting or design-research task: do it yourself, fan out to 2-3 workers with independent parts across the Claude Code, Codex, Grok Build, Cursor or other CLIs and accounts on this machine, run a scoped architecture loop, or send one brief to independent researchers; pick a cross-model reviewer, test budget and cleanup; track dispatched work, external waits and user decisions on a Run Board. Use when work may need delegation, or the user asks to dispatch, fan out, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or asks how dispatched work is going. Chinese triggers: 派活、并行、要不要多开几个 agent、分给多个 Claude 账号 / codex / grok、找另一个 AI 审、对比优秀设计、多方意见、进度看板、派出的任务进行到哪了。Not for unrelated read-only questions, trivial edits, research with no delegation, a single review of an existing diff (agentic-review-handoff), or the machine-wide session list (sideby sessions). Inside another named workflow, only size its workers./agentic-review-handoffValidate pasted review findings before fixes; run same-session automatic Git review-fix-re-review with a headless Reviewer and no redundant confirmation; start fresh-eyes Git diff Review Intake; resume review-loop sessions or packets; get a DecisionConsult from another AI; or run first-principles/DDD/high-cohesion review. Requires Git and review/consult intent; ordinary implementation or commit-only requests do not start a review loop.Other plugins' skills for the same job