$npx -y skills add Archive228/loopkit --skill clean-commitsTurn messy WIP into clean, atomic commits with messages that explain why. Use before opening a PR.
| 1 | # Clean Commits |
| 2 | - **Atomic** — one logical change per commit. Refactor and behavior change go in separate commits. |
| 3 | - **Message** — subject says WHAT in imperative ("Fix null pointer in user lookup"), body says WHY. "Fix bug" is useless. |
| 4 | - **Specific** — "Fix login failing when email has uppercase chars" tells the next person exactly what happened. |
| 5 | - Reorder/squash WIP and "fix typo" commits into the real changes (`git rebase -i`). |
| 6 | - Never mix an unrelated fix into a feature commit. |
| 7 | A good history is a debugging tool: `git bisect` and `git blame` only work if commits are atomic and messages explain intent. |