pr-delivery
БесплатноЗапускает вложенные скриптыНе проверенOpen, update, and deliver pull requests to Pedro's house standard: body from the repository template, R2-hosted screenshots for UI changes, green CI on the…
от pedronauck★ 661 звезда на GitHubОб этом скилле
PR Delivery
A PR is how Pedro reviews and approves agent work, often without the conversation that produced it. The body must let him judge the result alone: what changed and why, how it was verified, what it affects, and, for UI, what it looks like.
Repository instructions (CLAUDE.md/AGENTS.md) win where they are more specific: verification commands, whether checks run locally or only in CI, language, extra checklist items, and merge policy.
Done means an open, ready PR on its final head with the body current, every required CI check green on that head, and every actionable review finding fixed or answered. A draft PR or a first push is a checkpoint, not delivery.
Pull request
Write the body from .github/PULL_REQUEST_TEMPLATE.md. Keep its exact ## headings and checklist, replace every guidance paragraph with real content, and fill every section. The PR body CI check (.github/scripts/check-pr-body.py) fails a missing or empty template section, an HTML comment, a host path, a GitHub-hosted image, or a body with no issue link. Without a template, use assets/PULL_REQUEST_TEMPLATE.md.
- Title: the repository's commit convention, usually
<type>: <description>withfeat|fix|refactor|perf|docs|test|build|ciand no scope. It becomes the squash commit and release-note line, so describe the result, not the activity. - Issue link:
Closes #<n>, orRefs #<n>when closing needs a check you cannot make. Work without an issue carries an explicitNo issue: <reason>line. - What & why: the trigger, root cause, observable before and after, and tradeoffs, for a reader without this conversation.
- How you verified it: commands, CI runs, and scenarios with their actual results, plus the screenshots below. Never list a check that did not run; explain missing tests.
- Impact: public routes and APIs, schema and migrations, config and environment variables, docs, and anything else the template names. Say what is not affected only after checking.
- Name the agent that wrote or co-wrote the change. Tick a checklist box only with evidence.
- Omit host paths (
/Users/...), credentials, tokens, and private identifiers. - Pass the body with
gh pr create --body-file <file>/gh pr edit --body-file <file>. Keep it current as later rounds change the work.
Screenshots
Every user-visible UI change ships screenshots of the real running app in How you verified it, so Pedro can see the result before approving. The template states the required viewports and themes; default to desktop 1440×900, plus mobile 390×844 and the dark theme when the app has them. A visual fix also shows the before state. An interaction is better as a short mp4/webm recording.
Host evidence only in the public R2 bucket through the bundled helper. Never use gh pr create --attach, drag-and-drop, or GitHub uploads: those URLs expire or need a GitHub session, and the PR body check rejects them.
- Capture with the repository's own screenshot tooling when it has one (a screenshot skill, Playwright config, or an examples verifier). Otherwise use the Playwright CLI against the running dev server:
npx --yes playwright@latest screenshot --viewport-size=1440,900 --wait-for-timeout=2000 [--color-scheme=dark] [--full-page] <url> <abs-out.png>Authenticated pages need the repository's seeded/dev login; script it with Playwright when the CLI cannot reach the state. - Open every image and confirm it shows the intended screen, state, theme, and loaded fonts. A blank, error, or loading frame is not evidence.
- The bucket is public: capture seeded or demo data only, never real customer data, secrets, or tokens.
- From inside the repository, run
bash <pr-delivery-dir>/scripts/upload-evidence.sh '<file.png>#<alt text>' ..., resolving the path from this skill's directory. It uploads each file under<owner>/<repo>/<branch>/<sha>-<random>/, verifies HTTP 200 and the content type, and prints Markdown lines. Paste those lines into the body; a non-zero exit means no usable URL.
The helper needs wrangler authenticated to the Cloudflare account that owns the bucket (wrangler whoami). PR_EVIDENCE_BUCKET and PR_EVIDENCE_PUBLIC_URL override the defaults.
CI and review
Read every check on the current head; pending, cancelled, missing, or green on an earlier head is not green. Diagnose a finished failure while other jobs run, and read the real conclusion with gh run view / gh pr checks.
Work in rounds: fold in every failed check and every posted finding, then push once, because each push restarts CI and reviewers. Collect all reviews, inline threads, and PR comments, including bot summaries and outdated threads.
- Validate each finding against the current code.
- Fix every valid in-scope finding and failed check, then push one commit for the round. A failed commit hook is repaired in a new commit, not an amend or
--no-verify. - Reply to each thread with the fixing commit or a concrete
Установить pr-delivery в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pr-delivery?
Open, update, and deliver pull requests to Pedro's house standard: body from the repository template, R2-hosted screenshots for UI changes, green CI on the current head, and every review thread answered. Use when opening or updating a PR, attaching UI evidence, handling PR review or CI, declaring PR work done, or adopting this PR standard in a repository.
Как установить скилл pr-delivery?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-delivery запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic