fix: Use --named instead of -b for untracked bookmarks
-b refuses to push local-only bookmarks, erroring with "Refusing to
create new remote bookmark". --named pushes and auto-tracks in one step.

Assisted-by: Claude Opus 4.6 via pi
change okkkvpypvslvvupvwkryzlqlymvwyumu
commit 0603a82cf4bd377ce46ef3581078afe5c8737bfb
author Alpha Chen <alpha@kejadlen.dev>
date
parent umpoosqk
diff --git a/ai/claude/skills/gh-pr/SKILL.md b/ai/claude/skills/gh-pr/SKILL.md
index 3469b972..4c8aec21 100644
--- a/ai/claude/skills/gh-pr/SKILL.md
+++ b/ai/claude/skills/gh-pr/SKILL.md
@@ -24,8 +24,8 @@ Revision must be provided (bookmark, change ID, revset, or commit hash). The rev
 1. Push revision and get bookmark name:
    - First, run `jj log -r '<revision>' --no-graph` to check for existing bookmarks
    - If revision has a remote-tracked bookmark: `jj git push --bookmark <name>`
-   - If revision has a local-only bookmark: track then push:
-     `jj bookmark track <name>@origin && jj git push --bookmark <name>`
+   - If revision has a local-only bookmark (no `@origin`): push with
+     `jj git push --named <name>=<revision>` (pushes and auto-tracks)
    - If revision has no bookmark: `jj git push -c <revision>` (creates and pushes)
    - Retrieve the bookmark name from the output
 2. Run `jj log -r 'trunk()..<bookmark>'` to list commits between trunk and the bookmark
diff --git a/ai/claude/skills/jj/SKILL.md b/ai/claude/skills/jj/SKILL.md
index 70a9f6e4..98dfa2c1 100644
--- a/ai/claude/skills/jj/SKILL.md
+++ b/ai/claude/skills/jj/SKILL.md
@@ -54,7 +54,7 @@ jj bookmark set feature-auth -r <rev>      # Move bookmark to different commit
 # Push existing tracked bookmarks
 jj git push -b <bookmark-name>
 
-# Create and push new bookmark in one step (preferred)
+# Create and push new bookmark in one step (preferred for PRs)
 jj git push --named <bookmark-name>=<revision>
 
 # Push all bookmarks including new ones
@@ -63,6 +63,12 @@ jj git push --all
 
 **Note:** `--named` creates the bookmark, pushes it, and auto-tracks it. Use this for PRs.
 
+**`-b` / `--bookmark` refuses to push untracked (local-only) bookmarks.** If a
+bookmark exists locally but has never been pushed, `-b` will error with
+"Refusing to create new remote bookmark". Use `--named` instead to push and
+auto-track it in one step. Use `-b` only for bookmarks that are already tracked
+(previously pushed or fetched).
+
 ## Common Pitfalls
 
 **Quote revsets containing parentheses.** Bash interprets `()` as subshell