How this skill is triggered — by the user, by Claude, or both
Slash command
/fota-code-bundles:smart-commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
将 `.claude/rules/git-commit.md` 转换为可执行的提交技能流程。
将 .claude/rules/git-commit.md 转换为可执行的提交技能流程。
提交代码、commit)创建提交前,必须按顺序执行:
git status(查看工作区状态)git diff(审查改动内容)git log -5 --oneline(对齐项目提交风格)code-reviewer 智能体完成代码审查统一格式:
<type>(<scope>): <subject>
| 值 | 说明 |
|---|---|
feat | 新功能 |
fix | 修复 Bug |
improve | 功能改进(非新功能) |
opt | 代码优化(逻辑简化、可读性提升) |
refactor | 重构 |
perf | 性能优化 |
style | 代码格式(不影响功能) |
test | 测试相关 |
docs | 文档 |
chore | 构建/工具链 |
device、upgrade、cache)示例:
feat(device): 增加设备批量导入fix(cache): 修复策略缓存失效条件反例:
feat(device): 增加了设备批量导入feat(device): 增加设备批量导入功能。Co-Authored-By 签名执行以下操作前,必须先做风险沟通:
git commit --amendgit rebase -igit reset --soft前置要求:
npx claudepluginhub leiax00/wewins-fota-new --plugin fota-code-bundlesAutomates safe git commits: runs CLAUDE.md lint checks, scans staged files for secrets like API keys and .env, summarizes changes with git diff, generates conventional Chinese commit messages (feat/fix/etc.), and executes git commit after confirmation.
Manages Git commit workflow using Conventional Commits format with safety protocols. Creates, validates, executes commits; handles hooks, PRs, and safety checks before operations.