/murnana-github:pr-create [optional scope or intent hint]from murnana-github
Push the current branch and create a pull request (or stacked PRs) after approval.
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.
Create a pull request for the current branch, following the target project's own conventions when they exist, or a sensible generated format otherwise.
Run these first, each line as its own Bash call, exactly as written. Send the first five together in one message, then run the last one on its own (it exits non-zero outside a stack, which is expected):
gh auth status 2>&1 || true
git status --short --branch
git log --format='%s' --no-merges '@{u}..HEAD' 2>/dev/null || true
git log --format='%s' --no-merges -15 2>/dev/null || true
git remote get-url origin 2>/dev/null || true
gh stack view --short
They give, in order: whether gh is logged in, the branch with its upstream (## <branch>...<remote>/<branch> [ahead N]; no ... part means no upstream) and uncommitted files, the unpushed commit subjects (empty when there are none or no upstream), recent subjects for inferring a title format, the remote URL, and the stack tree or an error.
Treat $ARGUMENTS (if any) as an additional hint about the PR's intent — it does not override the steps below.
gh/git log query; never fetch unbounded history or full PR lists.gh pr view --json <fields> over the default human-readable form when only specific fields are needed.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 is usablegh auth status reported no login or a keyring/token error while gh is installed, the sandbox may be blocking the credentials stored on the user's computer. Stop and follow references/sandbox-credentials.md: guide the user to exclude the gh commands from the sandbox, and offer the MCP fallback in the same question.gh is missing (command not found), stop and ask the user (AskUserQuestion) whether to fall back to the GitHub MCP server.
Do not install the gh CLI or configure an MCP server without explicit confirmation — both are environment-level changes.Read the result of gh stack view --short from Current state:
» <branch> (current) line → the current branch is a layer of a GitHub stack. Stack mode: follow references/stack-mode.md, which replaces git push and gh pr create with gh stack submit + gh pr edit in Steps 4–7. Never create a plain PR for a stacked branch.(current) line → the current branch is the stack's trunk; normal mode. gh stack view also succeeds on a trunk that has stacks on top of it.unknown command = gh stack isn't installed) → normal mode, the steps below as written. Don't install gh-stack for this, and don't retry the command.gh is unusable and the branch is stacked, say so when asking in Step 1.Check the sources in references/project-rules.md, in order. If found, it is the only rule that applies for tone/format/required sections — do not blend with the generated fallback in Step 5.
Glob for a candidate file before reading it.
Makefile, .github/workflows/, or any other project-specific tooling — the project may not be Node.js at all, it could be Unity, Unreal Engine, Python, etc.), run the ones relevant to the changed branch. These commands are not pre-authorized in allowed-tools, so they run as ordinary Bash calls subject to the normal permission prompt — never widen allowed-tools to guess a runner in advance.Stack mode: skip this step (gh stack submit pushes). See references/stack-mode.md.
git push -u origin <branch>. Upstream with unpushed commits → git push. Nothing unpushed → skip the push.git push and git push -u origin <branch> are pre-approved; any other form asks for permission..github/PULL_REQUEST_TEMPLATE/), either pick the one whose name most closely matches the change (e.g. bug_fix.md for a fix) or, if ambiguous, ask the user via AskUserQuestion.gh pr create — never create the PR silently, even when a template made the content mostly mechanical.Stack mode: use gh stack submit --auto + gh pr edit per references/stack-mode.md instead of gh pr create.
gh. This keeps Japanese text and line breaks intact and keeps the gh call a single plain command:
git rev-parse --absolute-git-dir and use <that dir>/PR_BODY.md as the path. It lives inside .git/, so it is never committed, and it is overwritten on the next run.Write tool, exactly as approved.gh pr create --title "<title>" --body-file <that path> as a Bash call of its own.--body argument, through $(...), or on stdin with a heredoc.--draft only if the user asked for a draft; do not ask by default.--assignee @me so the skill's operator is assigned automatically.gh pr create fails on authentication, treat it as the sandbox case in references/sandbox-credentials.md.gh pr create's output; do not re-fetch it with a separate gh pr view call.gh unavailable → MCP fallback procedure:
references/gh-fallback-mcp.mdgh stack stack → Steps 4–7 replacements:
references/stack-mode.mdgh login or push fails because the sandbox blocks the computer's credentials → how to guide the user:
references/sandbox-credentials.mdWhat 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