How this command is triggered — by the user, by Claude, or both
Slash command
/claude-plugin-frontend:commit 可选:提交范围或类型提示This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# 生成 Conventional Commit 消息 > 分析 git 变更并生成符合 Conventional Commits 规范的英文提交消息 ## 使用方式 在 Claude Code 中通过命令面板或快捷键调用此命令: --- ## 任务 分析 git 变更并生成符合 Conventional Commits 规范的**英文**提交消息。 当变更涉及多个不相关的改动时,**必须拆分为多个独立的提交**。 ## 执行步骤 1. 运行以下命令查看变更: 2. 分析变更内容,按**逻辑关联性**分组: - 同一功能/修复的文件归为一组 - 不相关的改动(如 UI 修复 vs 数据清理)拆分为不同组 - 每组对应一个独立的 commit 3. 为每组生成一条提交消息(**仅输出消息文本**,不执行 git commit) ## 提交格式 ### 简单变更(单行) ### 复杂变更(多行,带详细说明) **何时使用多行格式:** - 修改了 3+ 个文件 - 删除/添加了依赖 - 重构涉及多个模块 - 需要解释"为什么"而非"做了什么" ## 类型说明 - `feat`: 新功能/com - `fix`: 修复 bug - `refactor`: 重构(无功能变更) - `docs`: 文档更新 - `test`: ...
分析 git 变更并生成符合 Conventional Commits 规范的英文提交消息
在 Claude Code 中通过命令面板或快捷键调用此命令:
/commit # 分析所有变更
/commit feat # 指定类型为 feat
/commit fix: login # 指定类型和范围
分析 git 变更并生成符合 Conventional Commits 规范的英文提交消息。 当变更涉及多个不相关的改动时,必须拆分为多个独立的提交。
运行以下命令查看变更:
git status
git diff # unstaged 变更
git diff --cached # staged 变更
git log -3 --oneline # 参考最近的提交风格
分析变更内容,按逻辑关联性分组:
<type>: <subject>
<type>: <subject>
<body>
- 要点1
- 要点2
- 要点3
何时使用多行格式:
feat: 新功能/comfix: 修复 bugrefactor: 重构(无功能变更)docs: 文档更新test: 测试相关chore: 配置/依赖维护style: 代码格式调整perf: 性能优化当需要拆分为多个提交时,按以下格式输出:
### Commit 1
涉及文件: file1.ts, file2.vue
<commit message>
### Commit 2
涉及文件: file3.ts
<commit message>
feat: add user authentication
refactor: remove redundant default Vite/Nuxt configurations
Remove explicit configurations that match framework defaults:
- cssCodeSplit (defaults to true in Vite)
- typescript.strict (defaults to true in Nuxt 3.12+)
docs: update API documentation
chore: upgrade dependencies to latest versions
最后更新: 2026-06-09 版本: 1.3.0
npx claudepluginhub pancake-q/claude-plugin-frontend --plugin claude-plugin-frontend/commitStages unstaged changes based on git status and diff analysis, then creates a commit with a generated message. Uses current branch and recent commit history for context.
/commitStages changes and commits locally using Conventional Commits format. Analyzes git status/diffs, drafts typed message with scope, confirms with user before git add and commit.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitCreates well-formatted git commits with conventional messages and emojis. Runs pre-commit checks (lint/format/build/docs), auto-stages files if needed, analyzes diffs, and suggests splitting multi-change commits unless --no-verify.
/commitRuns pre-commit git checks, quality gates (lint, typecheck, tests), code review for issues; drafts conventional commit message; stages specific files and commits. Supports --no-verify, --amend, --push options.
/commitAnalyzes current git diff, generates 3 conventional commit message options (concise, detailed, comprehensive), presents for user selection, and executes git commit.