Skip to main content

clean-commits

Turn messy WIP into clean, atomic commits with messages that explain why. Use before opening a PR.

来源信息

仓库
Archive228/loopkit
最近来源活动
2026年6月29日 21:52
检测到的 SKILL.md 语言
英语
星标
757
Forks
124

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
clean-commits
description
Turn messy WIP into clean, atomic commits with messages that explain why. Use before opening a PR.
when_to_use
before a PR, messy history, "squash this", commit message help
# Clean Commits - **Atomic** — one logical change per commit. Refactor and behavior change go in separate commits. - **Message** — subject says WHAT in imperative ("Fix null pointer in user lookup"), body says WHY. "Fix bug" is useless. - **Specific** — "Fix login failing when email has uppercase chars" tells the next person exactly what happened. - Reorder/squash WIP and "fix typo" commits into the real changes (`git rebase -i`). - Never mix an unrelated fix into a feature commit. A good history is a debugging tool: `git bisect` and `git blame` only work if commits are atomic and messages explain intent.
在 GitHub 查看