/cc-best:commitfrom cc-best
Generates conventional commit messages and executes git commits following the Conventional Commits spec. Includes type prefix guidance and best practices.
Ships in cc-best. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
执行 Git 提交操作,遵循 Conventional Commits 规范。
1. 检查状态
└─ git status 查看变更文件
└─ git diff 查看具体变更
2. 暂存文件
└─ git add <files>
3. 生成提交信息
└─ 分析变更内容
└─ 选择合适的类型前缀
└─ 编写简洁的描述
4. 执行提交
└─ git commit -m "type: description"
| 类型 | 说明 | 示例 |
|---|---|---|
feat | 新功能 | feat: 添加用户登录功能 |
fix | Bug 修复 | fix: 修复音频播放崩溃问题 |
docs | 文档更新 | docs: 更新 API 文档 |
style | 代码格式 | style: 格式化代码 |
refactor | 重构 | refactor: 重构音频处理模块 |
test | 测试 | test: 添加用户服务单元测试 |
chore | 构建/工具 | chore: 更新依赖版本 |
perf | 性能优化 | perf: 优化图片加载速度 |
<type>(<scope>): <subject>
[optional body]
[optional footer]
# 简单提交
git commit -m "feat: 添加语音识别功能"
# 带范围的提交
git commit -m "fix(auth): 修复 token 过期处理"
# 带详细说明的提交
git commit -m "$(cat <<'EOF'
feat(audio): 实现实时音频处理
- 添加 AudioProcessor 类
- 支持 PCM 和 WAV 格式
- 集成 FunASR 进行识别
Closes #123
EOF
)"
git push --forcegit reset --hard(已推送的提交)git commit --amend(已推送的提交)提交完成后根据当前状态决定下一步:
在 /iterate 模式中:
├─ 还有待办任务 → 更新 progress.md → 执行下一任务
├─ 所有任务完成 → /cc-best:checkpoint 保存检查点
└─ 上下文较长 → /cc-best:compact-context 压缩后继续
skills/git/SKILL.md记住: 好的提交是原子的、清晰的,每个提交只做一件事,message 说明"为什么"而非"做了什么"。
7-day visitors to each command page
44 commands in this plugin
/analyze/analyze - 代码库分析代码库分析,从 Git 历史和代码结构提取编码模式/build/build - 构建项目构建项目并检查错误(修复错误见 /cc-best:fix)/catchup/catchup - 快速恢复上下文快速恢复上下文,了解项目当前状态/cc-ralph/cc-ralph - CC-Best Ralph Loop 集成CC-Best Ralph Loop 集成,长时间自主循环/checkpoint/checkpoint - 检查点管理检查点管理,保存和恢复进度/clarify/clarify - 需求澄清智能体需求澄清智能体,解决 REQ 文档中的待澄清项Claude Code refuses to install this plugin
.claude-plugin/plugin.json: userConfig.hookProfile.description: Invalid input: expected string, received undefined
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' commands for the same job