提交所有工作区改动到当前 git 分支并生成规范的提交消息。当用户输入 "commit" 时使用
/plugin marketplace add GmwEnterprise/cc-plugins/plugin install gmwenterprise-git-commit-helper-plugins-git-commit-helper@GmwEnterprise/cc-pluginsThis skill is limited to using the following tools:
并行运行以下命令获取变更信息:
git status
git diff --staged
git diff
根据文件变更,确定提交类型和作用域:
提交类型 (type):
feat: 新功能(如新增 export_service.py)fix: 错误修复refactor: 代码重构(不改变功能)docs: 文档更新(如修改 CLAUDE.md)test: 测试相关(如添加 test_*.py)perf: 性能优化chore: 构建、依赖更新、配置作用域 (scope):
agent: Agent 工厂或工具service: 业务服务层router: FastAPI 路由db: 数据库相关export: 文档导出test: 测试docker: Docker 配置遵循 Conventional Commits 格式,使用中文描述:
<type>(<scope>): <简短描述>
<详细说明>
<footer>
规则:
示例:
feat(export): 添加文档导出服务
- 实现 ExportService 类支持多格式导出
- 添加 export_to_docx() 方法转换 Markdown 到 Word
- 集成 Mermaid 图表转图片功能
- 添加相应的单元测试
Closes #123
使用 HEREDOC 格式执行提交(确保格式正确):
git add .
git commit -m "$(cat <<'EOF'
<type>(<scope>): <简短描述>
<详细说明>
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
EOF
)"
运行 git status 和 git log -1 确认提交已创建,并告知用户执行结果。
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.