Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

open-pr

БесплатноЗапускает вложенные скриптыНе проверен

Open every pull request through this skill. It self-reviews the diff, proves the change, runs the project's verify skills, measures the merge danger, and…

AojdevStudioот AojdevStudio★ 336 звёзд на GitHub

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

open-pr

Use Claude Code 2.1.295 or newer. Earlier versions do not enforce onFailure: "block", so a hook crash or timeout can allow a command to run.

The PR body is a briefing for a reviewer who has one minute. A gate checks the body on create, edit, and merge, and the pr-kit CI check checks it again. A body that breaks the contract does not open.

Steps

  1. Rebase. Fetch the base and rebase onto it. Stop on a conflict you cannot prove correct.
  2. Self-review with the review-gate skill. Its pre-push receipt already needs a second-model review, so that review is the only one. Do not run /code-review as well.
    • Run the checks: bun ~/.agents/skills/review-gate/scripts/review-receipt.ts run.
    • Review the diff against the merge base with the reviewer that review-gate step 3 names. Give the reviewer what Pullfrog reads in this repo: the repo's AGENTS.md (and CLAUDE.md when AGENTS.md is absent), plus any file under .github/pullfrog/. A local pass then predicts a Pullfrog pass.
    • Give every finding one disposition: Fix (fix it now, then review again), Decline (write why), or Defer (open an issue and link it).
    • A Decline that states a fact about the code must cite the path:line or command that proved it in its Reason cell.
    • Record it: bun ~/.agents/skills/review-gate/scripts/review-receipt.ts review --skill <interrogate|code-review> --act-on N --closed N --notes "<one line>".
    • The receipt stores only the counts. Fill the Review table from that same review, one row per finding, so the rows match the receipt.
    • Where the review-gate skill is absent, as in a cloud session, give one fresh-context reviewer the same inputs and skip the receipt commands.
  3. Prove it. Show evidence that could fail, best first. Evidence that passes while the real goal fails is a Goodhart test, so prove the behavior a user sees, not a mock.
    • For a bug fix, reproduce the reported behavior on the base first and keep it as the before. Check the report against what really happens, since it may not be exact.
    • For a UI or API change, walk the real user path on the base and on the branch, and show the before and after: a screenshot pair or a 15 to 45 second walkthrough for UI, the request and response for an API. Use the repo's recorder script when it has one.
    • For a performance change, a chart or table of the before and after numbers.
    • The test that fails on the base and passes on the branch. Quote the failure.
    • Command output in a code block.
  4. Run the project's verify skills. Run bun <this skill's dir>/verify.ts --base origin/<base> in the repo. It lists the verify-* skills this diff needs, in order: the skill of each app the diff touches, then the repo-level skills.
    • Read each listed SKILL.md in full and run it against this branch, in the listed order. The listed paths are relative to the repo root. Its evidence goes in Proof.
    • When one fails, stop. Do not open the PR. Report the skill, the failing step, and its output. A skill that cannot start counts as a failure, and so does a non-zero exit from verify.ts. Never read a verify.ts error as nothing to run.
    • When it prints verify: none., put that line in Proof and go on.
  5. Measure the merge danger.
    • Door. Two-way when a revert undoes it. One-way when it deletes something you didn't make (dead entries that point at nothing stay two-way), deletes data or work that cannot be put back, migrates a schema, publishes, sends, deploys to users, spends money, changes prod user data, or changes a contract that others consume. The door rates the change, not the merge.
    • Blast radius. Find what the change can break outside the diff: callers, consumers, config, jobs, other repos. Prove the one fact that makes it safe by running code, not by reading it. Name the radius in one word: none, low, medium, high. Rate it honestly, and include the rating in the local review. A radius of medium or lower lets the agent merge without asking, and high waits for the owner's word and gets an explainer video before he decides (see land-pr).
  6. Write the body to a file with the template below. Write in ASD-STE100:
    • Start with the problem. No preamble, no "This PR".
    • One topic per sentence, at most 25 words. Active voice, present tense.
    • Periods and commas. No em dashes.
    • Problem uses at most four sentences.
  7. Check the body. Run bun <this skill's dir>/check.ts body.md --title "<title>". Fix every violation it names.
  8. Open the PR ready for review. Never a draft.
    • gh pr create --title "<title>" --body-file body.md --base <base>
    • Run the push in its own call before the create, since the alone rule refuses git push && gh pr create ....
    • To write the body in the same call, put the heredoc first and join it with &&: cat > body.md <<'EOF' && gh pr create --title "<title>" --body-file body.md --base <base>, with the body lines and `EO
Полный SKILL.md на GitHub

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.pr-kitVERSIONcheck.tscommand.tscontext.tscontract.tsgate.tskit.tspr-kit.ymlverify.ts

FAQ

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

Open every pull request through this skill. It self-reviews the diff, proves the change, runs the project's verify skills, measures the merge danger, and writes the fixed PR body (Problem, Change, Proof, Review, Merge danger) that the PR gate and the pr-kit CI check require. Use before any `gh pr create`, `gh api .../pulls`, or PR body edit.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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