engram-commit-hygiene
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen to Use
使用场景
Use this skill when:
- Creating commits
- Reviewing commit history in a PR
- Cleaning up staged changes
在以下场景使用本规范:
- 创建代码提交
- 在PR中审核提交历史
- 清理暂存的变更
Rules
规范规则
- Use conventional commit format.
- Keep one logical change per commit.
- Message should explain why, not only what.
- Never include in this repo.
Co-Authored-By - Never commit generated/temp/local files.
- 采用Conventional Commit格式。
- 每个提交仅包含一个逻辑变更。
- 提交信息应说明原因,而非仅描述内容。
- 本仓库中禁止包含信息。
Co-Authored-By - 禁止提交生成的/临时的/本地文件。
Pre-Commit Checklist
提交前检查清单
- Diff matches commit scope
- No secrets or credentials
- No binaries, coverage outputs, or local artifacts
- Tests relevant to the change passed
- Commit message is clear and conventional
- 代码差异与提交范围一致
- 不包含密钥或凭证
- 不包含二进制文件、覆盖率输出或本地构建产物
- 与变更相关的测试已通过
- 提交信息清晰且符合Conventional格式