create-pr
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or…
от fcakyon★ 1 223 звезды на GitHubОб этом скилле
Create PR
Open a pull request a reviewer can understand and check without reading the chat history. Follow the target repository's rules and template.
These rules apply to pull requests. For problem reports, use create-issue.
Workflow
Inspect repository rules, scope, and base
- Read
AGENTS.md,CONTRIBUTING.md, and.github/pull_request_template.mdwhen present. - Check
git status, staged changes, and the current branch. Honor staged-only requests and preserve unrelated changes. - Before branching from
mainormaster, fetch the target remote and fast-forward (git merge --ff-only <remote>/<base>). Stop rather than discarding dirty local work. - Never push commits directly to the default branch. Keep each PR focused on one coherent change.
- Read
Finish and verify the branch
- Commit staged work per commit-staged. When
/code-reviewis installed and you are pushing to or targeting the default branch (or repo rules require it), run/code-review --fixacrossgit diff <remote>/<base>...HEAD. Feature-branch commits do not require it. - Update docs only when the branch changes documented behavior or setup.
- Read the full diff against the intended base. Exercise the changed behavior on the final head and save the output or captures while you have them. For a regression, use the same input on the base when feasible.
- Commit staged work per commit-staged. When
Draft and sanitize the body
- Write the PR body to a temporary file outside the repository and pass
--body-file. Never interpolate multi-line Markdown directly in shell flags. - Remove leftover HTML template comments (
<!-- ... -->). - Redact tokens, credentials,
Bearerheaders,file://URIs, and personal home directories (/Users/<name>/,/home/<name>/) to~/or<repo>/.
- Write the PR body to a temporary file outside the repository and pass
Publish across supported clients
- Push the branch, then create with an explicit base,
--title,--body-file, and-a @me. Check reviewer conventions (gh pr list --author @me --limit 5 --json reviewRequests) before tagging reviewers. - In T3 Code, use
pull_request_createandlink_pull_requestfor text-only PRs. Whenever screenshots or videos are attached, create or update withgh pr create|edit --body-file ... --attach ...and calllink_pull_requestwith the resulting URL. - Read back the published body and open the evidence links. Confirm a reviewer can see the result without access to your workspace.
- Push the branch, then create with an explicit base,
Title and Body Rules
- Title starts with a capitalized verb naming concrete behavior, such as
Fix pasted commands losing line breaks. Use a Conventional Commit prefix when the repo squash-merges and recent merged titles use one. - Open with the user action, the observed problem and the expected outcome. Explain the change that accounts for the result. When several components changed, say why the fix needs each one.
- Give the shortest reproduction a reviewer can repeat. Name the relevant platform or version, supply the fixture or link, and show the command or clicks. For a feature, use its normal entry point. For a prose or metadata correction, a rendered before/after or a single relevant validator invocation and its output can cover both reproduction and proof.
- Put inspectable proof beside the claim. For a visual change, use the captures below. For a CLI, API, or backend change, paste the decisive redacted output or link to the exact log step. For docs or prompts, show the rendered example, a sample response to the same input, or the relevant validator output for the claim being made.
- Say how you verified the result. Label base and head observations and keep the input comparable. Include the workload and sample count for performance claims. Name any environment or path you could not exercise. Follow the repository's body format.
Reviewer check
Before publishing, read the body as a reviewer seeing the change for the first time. Can you reproduce the trigger, inspect the visual or log, and tell what changed from that evidence? If the proof is only a command, a code excerpt, a test count, or “verified,” run the relevant check and include what it showed. A fixture proves the behavior exercised by that fixture. A claim about the live product needs a check through its actual entry point. When a check was unavailable, say which claim remains unverified.
Visual Proof
- UI, layout, stylesheet, or plot changes need Before/After images or short video/GIF recordings in a two-column
| Before | After |table using matching viewports and scenarios. - Never commit screenshots or assets into the repo (including
.github/pr-assets/) and never upload visuals to GitHub releases (releases/download/). - Verify
gh --versionis2.99.0or newer (upgradeghfirst when possible). Pass local image or video paths via--attach <path>(up to 50 files per command) and reference the exact local path inline in--body-file(such as `, либо поставь как плагин.
Скилл create-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic