gh-pr: auto-approve read-only jj commands
Allow jj diff, log, show, and bookmark list to run without
confirmation. Destructive operations like push, split, and
squash still require approval.
change rntpwsnstkuutxusuttupzoynyzysvvk
commit 567287e628d2cc058bdc907808b5bac92c9f055a
author Alpha Chen <alpha@kejadlen.dev>
date
parent spzztqoo
diff --git a/ai/claude/skills/gh-pr/SKILL.md b/ai/claude/skills/gh-pr/SKILL.md
index c9c9d80e..26c1150e 100644
--- a/ai/claude/skills/gh-pr/SKILL.md
+++ b/ai/claude/skills/gh-pr/SKILL.md
@@ -2,6 +2,7 @@
 name: gh-pr
 description: Use when the user asks to "create a pull request", "create a PR", "/pr", "open a PR", "submit for review", or "push and create PR"
 argument-hint: <revision> [ready|web]
+allowed-tools: Bash(jj diff:*) Bash(jj log:*) Bash(jj show:*) Bash(jj bookmark list:*)
 ---
 
 # Create Pull Request
@@ -21,6 +22,7 @@ Revision must be provided (bookmark, change ID, revset, or commit hash). The rev
 ## Process
 
 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>`