From bf18d62ed9c518ae5c53959db24091b88a752eea Mon Sep 17 00:00:00 2001 From: lukabor Date: Mon, 8 Jun 2026 22:57:41 +0200 Subject: [PATCH] =?UTF-8?q?jj-atomic:=20add=20step=206=20=E2=80=94=20open?= =?UTF-8?q?=20new=20change=20after=20describe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/productivity/jj-atomic/SKILL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/skills/productivity/jj-atomic/SKILL.md b/skills/productivity/jj-atomic/SKILL.md index 3234012..5bf9e4f 100644 --- a/skills/productivity/jj-atomic/SKILL.md +++ b/skills/productivity/jj-atomic/SKILL.md @@ -70,8 +70,14 @@ jj diff # 1. read every line jj split # 2. one concern per change jj describe -m '...' # 3. semantic message jj diff --revision @- # 4. verify the message matches what shipped +jj new -m 'WIP' # 5. open a fresh empty @ for the next unit ``` +**Step 5 is not optional.** After `jj describe`, the current change is +sealed; without `jj new`, every subsequent edit accumulates into a +change with an outdated message. Open a fresh empty `@` immediately so +the next concern starts in a clean working copy. + ## Anti-patterns - **`jj describe` before `jj diff`.** You'll commit debug `cat()`s, stray `browser()` calls, and TODO scratchpads. @@ -83,6 +89,8 @@ jj diff --revision @- # 4. verify the message matches what shippe OAuth2 login flow`. Scope is the smallest area the change touches. - **Docs in the next commit.** "I'll update the README after." You won't. Same change or it doesn't ship. +- **Skipping `jj new` after describe.** Edits land in the just-described + change; its message rots into a lie. Always open a fresh `@`. ## Examples See [examples.md](examples.md) for a real before/after where a