Skip to content

Commit 711bccc

Browse files
tahierhussainclaude
andcommitted
fix(claude): correct gh pr create snippet and allow AskUserQuestion in /ship skill
- Fix line-continuation bug in the Phase 6 gh pr create example: move the FEAT/FIX note above the block so every flag carries a backslash. - Resolve --base dynamically via `gh repo view` so the skill works on repos whose default branch is not `main`. - Add `AskUserQuestion` to allowed-tools so the secrets-scan hard-stop can present its structured three-option prompt. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f689a08 commit 711bccc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.claude/skills/ship/SKILL.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: ship
33
description: Create a branch, atomic commits, push, and open a draft PR using the project template
44
disable-model-invocation: true
5-
allowed-tools: Bash, Read, Edit
5+
allowed-tools: Bash, Read, Edit, AskUserQuestion
66
---
77

88
# /ship
@@ -133,10 +133,12 @@ Use `TODO` as a marker for any section that can't be filled confidently.
133133
1. Write the rendered body to `/tmp/pr-body-<branch>.md`
134134
2. Run:
135135
```bash
136+
# Title prefix: "FEAT: <summary>" for features, "FIX: <summary>" otherwise
137+
BASE=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
136138
gh pr create --draft \
137-
--title "FEAT: <summary>" # or "FIX: <summary>"
139+
--title "FEAT: <summary>" \
138140
--body-file /tmp/pr-body-<branch>.md \
139-
--base main
141+
--base "$BASE"
140142
```
141143
3. If `gh` is not authenticated (`gh auth status` fails), instruct the user to run
142144
`gh auth login` and stop. Do not retry silently

0 commit comments

Comments
 (0)