SKILL

smart-commit

Create clean, atomic git commits with Conventional Commit messages, and write PR descriptions and release notes from the actual diff. Use whenever the user says commit, "commit-in", "bikin commit", push, prepare a PR, write a PR description, changelog, or release notes.

原文 · 译文尚未补齐

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Smart Commit
  • Safety rules (always)
  • 1. Look at what changed
  • 2. Split into atomic commits
  • 3. Write the message (Conventional Commits)
  • 4. PR description (when asked)
  • 5. Release notes (when asked)

Never commit secrets. Before committing, scan the staged diff for things like APIKEY=, sk-, -----BEGIN, password =, .env files. If found, stop and tell the user. Never git push --force, reset --hard, or rewrite history unless the user explicitly asks. Never commit without showing the user the plan first if there are >1 commits or unrelated changes. Read the actual diff — messages are written from the code, not from file names. If the changes mix concerns (a feature + an unrelated fix + formatting), propose a split: Stage per commit with git add (or git add -p for partial files). If everything is one concern, one commit is fine. Types: feat, fix, refactor, perf, test, docs, build, ci, chore, style, revert. Scope = the module/area (api, auth, ui, deps). Check git log --oneline -20 and follow the repo's existing style if it differs (language, scope format, emoji usage). Good: fix(cart): prevent negative quantity when removing last item Bad: update files, fix bug, WIP Base it on git log main..HEAD and git diff main...HEAD: If gh is available and the user wants it, gh pr create --title ... --body-file .... Group commits since the last tag (git describe --tags --abbrev=0) into ✨ Features

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
KILN-skills/kiln
源文件
skills/smart-commit/SKILL.md
固定版本
555d7ea59d05910b4ef6fb39780da5f906be832b
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:KILN-skills/kiln · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T04:00:15.464Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。