/murnana-github:stack-pr-message [optional intent hint for the whole stack]from murnana-github
Write titles and bodies for every PR in a GitHub stack and apply them with gh pr edit
Ships in murnana-github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write a title and body for each open PR in the current stack — each describing its own layer and where it sits in the stack — and apply them with gh pr edit.
Run these first, each as its own Bash call, exactly as written:
gh auth status 2>&1 || true
gh stack view --json
Treat $ARGUMENTS (if any) as a hint about the overall goal of the stack — it doesn't override the steps below.
gh pr view <n> --json <fields>, gh pr diff <n> --name-only first, the full diff only when the file list doesn't explain the layer.Copy this checklist into your response and tick it off:
- [ ] 1 Read the stack
- [ ] 2 Read each layer
- [ ] 3 Project rules and template
- [ ] 4 Draft all layers
- [ ] 5 Approval
- [ ] 6 Apply
AskUserQuestion tool, never as a plain-text question at the end of a reply. This includes every "wait for approval" and every "ask how to proceed": show the plan or the failure in the reply, then call AskUserQuestion with options such as 「この内容で進める」 and 「修正する」. The dialog can hide the reply, so say in the question itself, in one line, what is being approved.$ARGUMENTS, the conversation, the files or command output already answer. Where a step gives a default, use it and state it in the plan instead of asking.AskUserQuestion is unavailable (a non-interactive run), don't guess: stop before changing anything and list the questions in the reply.gh stack view --json failed (exit 2) → the current branch isn't in a stack. Stop and say so.branches[] (bottom to top), take the layers that have pr.number and pr.state == "OPEN". Skip merged and queued PRs; they are not edited./murnana-github:stack-create (or gh stack submit --auto) first; draft messages only for layers that have PRs.gh auth status reported no login, or gh is missing → stop and ask, per ${CLAUDE_PLUGIN_ROOT}/skills/pr-create/references/gh-fallback-mcp.md.For each open PR:
gh pr view <n> --json number,title,body,baseRefName,headRefName,isDraft,assignees,commits
gh pr diff <n> --name-only
gh pr diff shows only that layer's diff (base = the branch below), which is exactly what the message must describe. Read the commit subjects too; they often state the layer's intent.
Apply the same discovery as pr-create, reading the shared references:
${CLAUDE_PLUGIN_ROOT}/skills/pr-create/references/project-rules.md — project conventions are authoritative.${CLAUDE_PLUGIN_ROOT}/skills/pr-create/references/pr-template-discovery.md — if a template exists, use it for every layer.${CLAUDE_PLUGIN_ROOT}/skills/pr-create/references/pr-message.md (emoji title + なぜ / 影響範囲 / デバッグ方法).In every case, add the stack section from references/stack-message.md — unless the project's own rules forbid extra sections.
Follow references/stack-message.md. Draft the bottom layer first: upper layers reference what lower ones provide.
submit --auto placeholder), keep it and merge your sections around it; never silently drop it.Show, for every layer bottom to top: PR number, branch, new title, and the full new body exactly as it will be submitted. Wait for approval. Apply only the layers the user approves.
Run git rev-parse --absolute-git-dir once; the body file is <that dir>/PR_BODY.md (inside .git/, so it is never committed). Then, for each approved layer:
Write the layer's body to that file with the Write tool, exactly as approved (overwrite it for each layer).
Run, as a Bash call of its own:
gh pr edit <n> --title "<title>" --body-file <git dir>/PR_BODY.md
--body argument, through $(...), or on stdin with a heredoc.assignees was empty and the user didn't say otherwise, add --add-assignee @me in the same call.gh pr ready / gh stack submit --open).2/3, Part 2) in the title: layers get inserted, folded and merged, and titles go stale. Keep the position in the body's stack section only.gh pr merge can't merge a stack and is out of scope here anyway.gh fallback):
${CLAUDE_PLUGIN_ROOT}/skills/pr-create/references/What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub murnana/murnana-claude-code-plugin --plugin murnana-github5 skills in this plugin
/stack-rebaseCascade-rebase a GitHub stack with gh stack rebase / sync, resolve conflicts, and pushOther plugins' skills for the same job