create-pr
БесплатноБез исполняемых скриптовНе проверенCreate and package React Router pull requests. Use when the user asks to create, open, prepare, or finish a PR for this repository, including…
от remix-run★ 56 659 звёзд на GitHubОб этом скилле
Create React Router PR
Create the pull request handoff for completed React Router work. Default to a draft PR targeting main unless the user explicitly asks for a ready PR or a different base branch.
Preconditions
- Inspect
git status --short --branchandgit branch --show-current. - Do not include unrelated dirty files. If unrelated changes are present, leave them unstaged and mention them.
- If the worktree is detached, create a branch from the current
HEADbefore committing. Use the branch name requested by the user, an existing repository convention, or<author>/<semantic-name>when no stronger convention is available. - If already on a suitable named branch, use it.
- Confirm appropriate automated coverage exists or was added. Do not list routine CI-covered checks in the PR body.
- If user-facing functionality is being updated, check that the appropriate package has a change file under
packages/<package>/.changes/. This is not necessary for docs-only, GitHub Actions/workflow-only, or dependency-maintenance PRs unless the dependency change itself has user-facing impact.
Context
- Capture what changed, why it changed, and who it affects.
- Find related issues, discussions, or PRs and include links when relevant.
- Prefer
git diff --statplus focusedgit diffover broad repo archaeology when the change is small. - If the user supplies a report, issue, discussion, or related PR, treat that as the primary context source.
- For new feature work, include a concise usage snippet. If the feature replaces or improves an older approach, include before/after examples when they help reviewers.
Commit and Push
- Review the diff with
git diff --statand focusedgit diffas needed. - Stage only the intended files.
- Commit with a concise imperative subject.
- Push the branch before creating the PR.
PR Creation
Save the PR body to a temporary file, then use gh pr create with:
gh pr create --draft --base main --head <branch> --title "<title>" --body-file <file>
- Omit
--draftonly when the user explicitly asks for a ready PR. - Change
--baseonly when the user explicitly requests a different base branch. - Keep shell quoting simple. Prefer a body file if the body contains backticks, quotes, or multiple paragraphs.
- Include issue/discussion links when known. Use
Closes #NNNNfor bug fixes the PR should close; useImplements #NNNNor a plain link for RFCs/discussions when closing semantics are not appropriate. - Include testing notes only for manual checks, unusual verification, skipped non-CI checks, or failures that reviewers should know about.
- If
gh pr createfails, leave the branch pushed when possible and give the user a ready-to-open compare URL plus the prepared title and body.
Recommended PR body shape:
This change ...
- Optional extra detail when useful.
```tsx
// Optional feature usage example
```
// Optional before/after example
Testing
- Optional manual or non-CI verification notes only.
- Do not use a `## Summary` heading. Start with one or two short sentences explaining what the change accomplishes.
- Add bullets after the opening only when more detail is useful.
- Include usage examples for new features, and before/after examples for replacements or improvements, when they help reviewers understand the change.
- Add `**Testing**` with bullets below the description only when there are manual checks, unusual verification steps, skipped non-CI checks, or failures reviewers should know about. Omit it for routine automated coverage.
## Testing Notes
- Do not list linting, typechecking, unit test, or integration test commands in the PR body, even if they were run locally. CI runs these automatically.
- Do not say that CI will run routine linting, typechecking, unit tests, or integration tests. That is assumed for every PR.
- Do not add manual testing instructions by default.
- Add manual testing instructions only when necessary, such as visual/UI behavior that needs human review, environment-specific behavior not covered by CI, release/publish dry-run steps, external service integration, or a reproduction that cannot be expressed reliably in automated tests.
- When manual testing is necessary, keep the instructions minimal and directly tied to the uncovered risk.
## Labels
Apply labels after the PR exists. Rely on the stable labels listed in this skill for normal PRs.
Apply labels with:
```sh
gh pr edit <number-or-url> --add-label "<label>"
If gh pr edit --add-label fails because the specified label is invalid or missing, run:
gh label list --limit 200
Then choose the correct label from the live list and update this skill in place so the stable label guidance stays current. Use real labels only. If the right label does not exist, do not invent one; mention the missing label.
Package Labels
Add every applicable pkg:* label based on touched package paths:
| Touc
Установить create-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-pr?
Create and package React Router pull requests. Use when the user asks to create, open, prepare, or finish a PR for this repository, including branch/commit/push handoff, draft PR creation, PR body writing, and applying GitHub labels such as pkg:*, feat:*, docs, github-actions, or dependencies.
Как установить скилл create-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic