ワンクリックで
draft-pr
Stage, commit, push, and open a draft PR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Stage, commit, push, and open a draft PR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | draft-pr |
| description | Stage, commit, push, and open a draft PR |
| allowed-tools | Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(git diff:*), Bash(git branch:*), Bash(git log:*), Bash(gh pr create:*), mcp__gitea__pull_request_write |
git remote -vgit statusgit diff HEADgit branch --show-currentgit log --oneline -5Check the git remotes above to determine the platform:
github.com → use gh CLImcp__gitea__pull_request_write with method createBased on the changes above:
Stage changes: Review the unstaged changes and stage appropriate files using git add. Use your judgment - stage files that are part of logical changes, skip generated files or unintended changes.
Commit: Create a commit with an auto-generated message that:
Push: Push to remote. If no upstream is set, use git push -u origin <branch>.
Create draft PR:
GitHub: Use gh pr create --draft
Gitea: Use mcp__gitea__pull_request_write with method create, setting the owner/repo from the remote URL and head/base branches accordingly
A descriptive title
Reference any Linear (e.g., ENG-123) or Sentry issues mentioned in the code, commits, or branch name
Use a HEREDOC for the body (GitHub) or pass body directly (Gitea)
Body structure:
Summary (prose): What the PR does. This should also include a description of the motivation: what the problem was previously, and what effects it had. If the motivation is obvious (e.g., "implements the new feature"), it can be left out.
Changes (bullets): list of significant changes. Use sub-bullets to reference parts of the motivation, if applicable. Use sub-bullets to break down changes with substantial complexity, if applicable. Reference file paths, endpoints, types, and fields as needed, using code spans.
Validation (prose or bullets, as applicable): Anything the author did, beyond the standard running the tests and linter. "Tests pass" and "linter is clean" are baseline requirements for every PR — never list them as validation steps. Only include genuinely notable validation (e.g., manual testing of a specific scenario, load testing, testing against a staging environment). If you can't think of anything beyond the basics, write TODO: validate as a reminder for the author.
Post-Merge (bullets): checklist of action items needed after merge. If there are no post-merge steps, this section can be left out.
General notes:
Report the PR URL when done.
Generate a single-file HTML artifact (status report, slide deck, prototype, throwaway editor, flowchart, etc.) and open it in the browser. Use when the user wants a one-off visual artifact instead of markdown — for sharing, reference, or interactive exploration.
Gather context from the codebase and (optionally) the web, then propose multiple ways to move forward with tradeoffs, relative impact, and effort. Use when user wants to explore options, weigh approaches, or asks "what are my options" / "how should I tackle this" before committing to a plan.
Propose a concrete plan to cut a branch and implement a change as one or more atomic commits, grounded in the current codebase and (optionally) outside research. Use when user wants a step-by-step implementation plan, asks "propose a plan" / "how would you implement this", or is ready to move from discussion to execution.
Summarize what shipped over a date range, commit range, or release tag — synthesizes git log, GitHub PRs, and Linear issues into a single markdown brief.
View a Sentry issue by short ID (e.g. PROJECT-123) or URL. Shows details, status, latest event, and tag distribution. Use when user wants to view, check, or look up a Sentry issue, error, or event.
Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.