/snail:snail-prfrom Snail
Create or update a GitHub pull request via gh CLI. Use when the user wants a PR, pull request, gh pr create/edit, or provides a PR number or URL.
Ships in Snail. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create or update a GitHub PR for the current branch.
From the project working directory, run node <skill-dir>/scripts/artifact-path.mjs using this skill's absolute installed path; store its output as <flow-root>. In every shell command double-quote expanded paths, e.g. init "$flow_root/snail-$slug"; for scans quote the root but leave the wildcard outside: "$flow_root"/snail-*/. It resolves project-specific $XDG_STATE_HOME/snail state (fallback ~/.local/state/snail). Discover and write all workflow artifacts there, including standalone use. Pass --in-repo only on an explicit user request, never because old files or policy exist. Leave old artifacts untouched; ask before moving, deleting or resuming them. On errors stop, never fall back to the repo.
<flow-root>/snail-<slug>/.node ../snail-flow/scripts/flow-state.mjs check <dir> on each <flow-root>/snail-*/ that has a runbook.yaml (skip runbook-less folders such as the standalone snail-review location) and pick the flow whose next is 6 (a standalone install skips every flow-state.mjs call and works flow-less). For external artifacts no git ignore configuration is needed. With explicit --in-repo and no flow-state script, first check that git rev-parse --git-common-dir succeeds; outside git there is nothing to ignore. Inside git, add the flow root's repo-relative path on its own line to $(git rev-parse --git-common-dir)/info/exclude before writing (escape gitignore special characters); warn if artifacts are already tracked. Do not change .gitignore. Require missing 6 - PR.yaml there.2 - PLANNING.yaml) and other phase docs in the selected flow.6 - PR.yaml from ../snail-flow/templates/6 - PR.yaml (with the real url, status, number) and node ../snail-flow/scripts/flow-state.mjs advance <dir>.gh pr view --json number,headRefName,title from the repo root. If it succeeds, use update.Update guard: before editing, confirm gh pr view <n> --json headRefName -q .headRefName matches git branch --show-current. If not, stop and tell the user.
gh from the repo root with network access.main or master unless the user overrides.git diff origin/<default>...HEAD, where <default> is gh repo view --json defaultBranchRef -q .defaultBranchRef.name (fallback main, then master).PR_SKIP_JIRA (non-empty) → off. PR_REQUIRE_JIRA → on even on github.com.gh repo view --json url -q .url and parse the host. Corporate is off for github.com, gist.github.com, gitlab.com, codeberg.org, bitbucket.org, dev.azure.com, ssh.dev.azure.com. On for any other host.gh repo view fails, default off.In corporate mode, link any ticket key/URL found in user input, branch, or commits; use a placeholder like PROJ-123 if none found. On gh pr create, append --label "code-review:request" if the repo supports it.
In OSS/standard mode, use a conventional-commit title (e.g. feat(scope): add thing). Add one linked issue/ticket line in the body only if the user provided it. Do not add the code-review:request label.
<KEY>: <summary> (e.g. PROJ-123: feat(auth) add sso login — omit a second colon after type/scope to avoid ::).<conventional-commit-style summary> (e.g. feat(auth): add sso login).PULL_REQUEST_TEMPLATE.md under .github/, docs/, and .gitlab/.- [x] only when clearly supported by evidence; leave - [ ] when unsure..pr-body-temp.md in the repo root.gh pr create --title "<title>" --body-file .pr-body-temp.md (append --label "code-review:request" in corporate mode).gh pr edit <n> --title "<title>" --body-file .pr-body-temp.md.6 - PR.yaml and advance <dir>..pr-body-temp.md last, even on failure.gh not found/auth errors: tell the user to run gh auth login (and gh auth refresh if needed).gh pr view <n> --repo owner/name when the user specifies the repo.Each PR is its own flow. After writing 6 - PR.yaml and advancing to done, start the next PR's flow at the row the masterplan names.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yoglib/snail --plugin snail11 skills in this plugin
/snailExperimental single-skill workflow from investigation to PR, with approval stops or explicit auto mode./snail-ai-toolbeltPointer to external AI tools and MCPs. Use when the user asks about the toolbelt, which tools are used, or how to install a recommended tool. This skill does not install tools./snail-alternativesSuggest up to 3 viable alternatives for a code or design decision. Includes mandatory independent review. Use when the user asks for alternatives, options, "better ways", or review of supplied options.