lukabor d6febf78d3 refactor(skills): apply review-driven structural refinements
* refactor(tdd-bdd): extract horizontal-slicing anti-pattern into anti-patterns.md
* refactor(jj-atomic): extract anti-patterns into anti-patterns.md; trim See also list
* refactor(dev-r): split SKILL.md into package-loop.md and analysis-loop.md siblings
* fix(dev-python): repair CLAUDE.md URL mismatch and tdd-bdd self-referential link
* docs(dev-python): rewrite phase 4 to forbid horizontal slicing; inline Karpathy summary
* docs(dev-r): inline Karpathy guardrails summary in phase 0
2026-06-11 12:49:48 +02:00

37 lines
1.2 KiB
Markdown

# jj-atomic anti-patterns
## `jj describe` before `jj diff`
You'll commit debug `cat()`s, stray `browser()` calls, and TODO
scratchpads. Read every line of every diff before you describe.
## "Mixed bag" commits
`refactor + fix + new feature` in one change is three regressions waiting
to happen and an unrevertable mess. If the diff touches more than one
concern, `jj split` before describing.
## Past-tense / declarative messages
`"added auth"`, `"auth now works"`. These don't complete the implicit
prefix *"this change will…"*. Use the imperative — `"add OAuth2 login
flow"`, `"fix token refresh on 401"`.
## No scope
`feat: add login` is weaker than `feat(auth): add OAuth2 login flow`.
Scope is the smallest area the change touches; it makes the log
greppable and the change's footprint visible at a glance.
## Docs in the next commit
"I'll update the README after." You won't. Docstrings, README sections,
CLAUDE.md updates for a new flag or env var — same change or it doesn't
ship. See SKILL.md §5 *"Docs travel with the code"*.
## Skipping `jj new` after describe
Edits land in the just-described change; its message rots into a lie. Always
open a fresh `@` immediately after `jj describe`. See SKILL.md *"Workflow"*
step 5.