Command Palette

Search for a command to run...

Назад к скиллам
скилл № 63715

open-pr

Push the current branch, open its pull request if it has none, and wait for every PR check to finish. Reports the result without fixing anything.

БесплатноБез исполняемых скриптов
nikeyesот nikeyes★ 24 звезды на GitHub

Установить open-pr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Open PR

Push the current branch, make sure it has a pull request, wait until every check on it has finished, and report the result. Do not ask for confirmation and do not change any file.

Rules

  • Uncommitted changes: they are not part of the PR. List them in the report and carry on with what is committed.
  • Nothing to open: if the branch has no commits ahead of the default branch and no open PR, say so and stop.
  • Branch: if you are on the repository's default branch, create type/short-description from the main commit with git switch -c; the commits come with it. Do not reset the local default branch: report that it is still ahead of its remote. On any other branch, use it as it is.
  • Push: git push -u origin <branch>. Never force-push. If the push is rejected, stop and report why.
  • Existing PR: if the branch already has an open PR, leave its title and body alone.
  • New PR: ready for review (not a draft), against the default branch.
    • Title: one Conventional Commits subject (type(scope): description) that covers the whole branch. With a single commit, use its subject. It becomes the squash commit in many repos.
    • Body: if the repo has a pull request template, fill it in. Otherwise write ## Summary (what changes and why) and ## Testing (what was run and its result; only what actually ran).
    • Never include: ticket identifiers, Claude attribution, "Generated with" lines.
  • Waiting:
    • Checks take a few seconds to register after a push. If none are reported, retry for up to 2 minutes before concluding that the repo has no checks.
    • Wait with gh pr checks <pr> --watch, in stretches shorter than your command timeout, repeating until no check is pending or 30 minutes have passed in total.
    • A check that failed, was cancelled or timed out has finished. Do not wait for reviews that are not checks.
  • Failed checks: for each one, get the end of its log with gh run view <run-id> --log-failed. If it is not a GitHub Actions run, give its details URL instead.
  • Report:
    • the PR URL, and whether you created it or it already existed
    • every check with its result
    • for each failed check, the end of its log
    • the checks still pending if the 30 minutes ran out
    • uncommitted changes you left out

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(git status:*)
  2. 02Bash(git branch:*)
  3. 03Bash(git switch:*)
  4. 04Bash(git log:*)
  5. 05Bash(git diff:*)
  6. 06Bash(git push:*)
  7. 07Bash(gh repo view:*)
  8. 08Bash(gh pr view:*)
  9. 09Bash(gh pr create:*)
  10. 10Bash(gh pr checks:*)
  11. 11Bash(gh run view:*)
  12. 12Read
  13. 13Glob

FAQ

Что делает скилл open-pr?

Push the current branch, open its pull request if it has none, and wait for every PR check to finish. Reports the result without fixing anything.

Как установить скилл open-pr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл open-pr запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить open-pr с