etc/claude/skills/create-pr/SKILL.md
Reviews committed changes and creates a pull request on GitHub. Use when the user wants to create a PR, push changes for review, or open a pull request. Requires a GitHub repository. Supports --japanese flag for Japanese descriptions, --base flag to specify target branch, and --update flag to update an existing PR.
npx skillsauth add shuymn/dotfiles create-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<skill-root> means the directory containing this SKILL.md.scripts/... and references/... relative to <skill-root>, not the caller's current working directory.<skill-root>/scripts/....git branch --show-currentgit branch -rgit symbolic-ref --short refs/remotes/origin/HEAD | sed 's@^origin/@@'git rev-parse --show-toplevelgit log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null || echo "Branch not pushed yet"git status -sb | head -1Note: Replace origin/HEAD with origin/<base-branch> if --base=<branch> is specified
git log origin/HEAD..HEAD --onelinegit rev-list --count origin/HEAD..HEADgit diff --name-status origin/HEAD..HEADgit diff --shortstat origin/HEAD..HEADgit diff origin/HEAD..HEADNote: Replace origin/HEAD with origin/<base-branch> if --base=<branch> is specified
git log origin/HEAD..HEAD --format="### %s%n%n%b%n"git log origin/HEAD..HEAD --format="%an <%ae>" | sort | uniqcat .github/pull_request_template.md 2>/dev/null || echo "No GitHub template"cat .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null || echo ""cat README.md 2>/dev/null | head -50 || echo "No README"Default: English --japanese: Creates PR in Japanese
Default: Repository's default branch (usually main or master)
--base=<branch>: Specify target branch for the pull request
--base=<branch> to create PR against a specific branchgit symbolic-ref --short refs/remotes/origin/HEAD/create-pr → Creates PR to default branch/create-pr --base=develop → Creates PR to develop branch/create-pr --base=release/v2.0 → Creates PR to release branch/create-pr --japanese --base=develop → Japanese PR to develop branch--update: Updates an existing pull request instead of creating a new one
/create-pr --update → Updates existing PR for current branch/create-pr --update --japanese → Updates PR with Japanese descriptionBased on the above context (focusing ONLY on committed changes), create and submit a pull request on GitHub:
.github/pull_request_template.md), follow it strictly but delete empty/non-applicable optional sections when the template allows it.--japanese, use the Japanese format from the same file.English:
@import, path/@fileJapanese:
。)Escaping Rules (Important):
mcp__github__create_pull_request, mcp__github__update_pull_request):
body as raw Markdown text`code`, never \code``)\ before backticks, normalize it to plain backticks before tool callgh CLI commands:
--body-file to avoid shell-escaping issues<<'EOF') so backticks are preserved as-isDetermine base branch:
--base=<branch> specified: Use the specified branchgit symbolic-ref --short refs/remotes/origin/HEAD | sed 's@^origin/@@')Ensure changes are pushed:
git push -u origin [current branch name]
Prepare PR content:
gh)Create pull request:
mcp__github__create_pull_request:
- title: [Generated title in selected language]
- body: [Raw Markdown body in selected language; do NOT escape backticks]
- head: [Current branch]
- base: [Determined base branch from step 0]
After creation:
Get current branch:
git branch --show-current
Find existing PR for current branch:
mcp__github__list_pull_requests:
- state: open
- head: [repository owner]:[current branch]
Verify PR exists:
Ensure latest changes are pushed:
git push origin [current branch name]
Prepare updated PR content:
gh)Update pull request:
mcp__github__update_pull_request:
- pull_number: [PR number from step 2]
- title: [Generated title in selected language]
- body: [Raw Markdown body in selected language; do NOT escape backticks]
After update:
Q1, Q2, ...); require QID: <answer> responses and allow QID: OTHER(<concise detail>) when no option fitsdevelopment
Simplifies recently changed code by running three parallel reviews (reuse, quality, efficiency) and applying only behavior-preserving fixes. Use when the user asks to simplify, clean up, reduce duplication, improve code reuse, or optimize recently changed code, a staged diff, a branch diff, or explicitly listed files. Also use when the user says things like 'simplify this', 'まとめて整理して', 'コードをスリムにして', or invokes `/simplify`.
tools
Use when the user invokes /workflow. Injects project workflow methodology as context. Accepts argument: plan, exec, review (default: all).
development
Processes AI reviewer feedback and applies only verified fixes. Works in two modes: (1) fetches comments from a PR URL or current branch, (2) processes feedback pasted directly into the conversation. Trigger when the user wants to bulk-process or apply AI review suggestions — from a GitHub PR or pasted text. Do NOT trigger for single questions about what a bot said, or general code review discussion.
testing
Prepares .ralph/ runtime state from an approved and reviewed plan bundle. Syncs plan tasks into prd.json and updates prompt.run.md with project-specific context and quality gates. Use after plan approval, decompose-plan review PASS, and ralph init.