ship-pr
БесплатноБез исполняемых скриптовНе проверенTake finished work in Expensify/App to a PR a human can review without fighting CI or bots. Runs the checks, verifies the change in the running app, gets a…
от Expensify★ 5 115 звёзд на GitHubОб этом скилле
Ship a PR
You're done when the human only has judgment calls left on the PR: the checks are green, the change is shown working in the app, a fresh reviewer has read the diff, and every bot comment is handled.
Run every step. If one can't run, say which one and why in the handoff. Nothing gets committed, pushed or posted without the human's approval: they own what goes on the PR (contributingGuides/AI_ETIQUETTE.md).
Commands below use upstream for the Expensify/App remote, which is the usual setup when you work from a fork. If you cloned Expensify/App directly, use origin instead.
1. Checks
Run what CI runs for what you touched, and fix everything:
npm run fmt # oxfmt, a CI gate the CLAUDE.md post-edit checklist doesn't list
npm run lint-changed
npm run typecheck
npm run react-compiler-compliance-check check-changed
npm run spell-changed
npm test -- <test files for the code you changed> # direct test files; CI runs the full suite
lint-changedandspell-changeddiff againstorigin/main. Iforiginis your fork, sync itsmainwith Expensify/App first (git fetch upstream && git push origin upstream/main:main), so they only see your changes.- Skip
--findRelatedTests. Core libs are imported almost everywhere, so it pulls in most of the suite (over 10 minutes forMoneyRequestReportUtils). CI runs everything in about 2.5 minutes.
Then the repo rules the tooling cannot see (CLAUDE.md, tests/README.md):
- Every test has
// Given,// When,// Thencomments explaining why. - A bug fix comes with a test that fails without the fix, or the handoff says why it can't.
- A new
Onyx.connectWithoutViewhas a comment justifying it. In a component it also needs@frontend-performanceapproval linked in the PR body. - New strings go in
src/languages/en.tsonly. The other locales are generated from it byscripts/generateTranslations.ts. On a PR from a fork that doesn't run automatically, so say in the handoff that someone from Expensify has to run it. - No new
useMemo,useCallbackorReact.memoin a file the React Compiler handles. - The
Mobile-Expensifysubmodule pointer didn't move by accident:git diff --ignore-submodules=none upstream/main...HEAD -- Mobile-Expensify. Stage by path, nevergit add -A,git add .orgit commit -a.
2. Verify
Prove the change on the surface it touches. CI can't see this part, so it's the evidence the reviewer needs.
| Change | Run | Evidence |
|---|---|---|
| Web UI | /playwright-app-testing against the local dev server (:8082), never production |
Screenshots or a recording for MacOS: Chrome / Safari |
| Native UI or platform code | /agent-device on the iOS simulator or Android emulator |
/agent-device-evidence MP4s for the native sections |
| Logic with no UI | Jest | The test names, in ### Tests |
| Performance | /measure-telemetry-span, before and after, on realistic data |
A before/after table |
- For a bug fix, capture the bug before fixing it, with the failing test first or a recording of the broken behavior. Checking out
mainlater costs a freshnpm installin another worktree. - The template asks for five platforms. Cover what you can and name the rest in the handoff. Never tick a box for a platform you didn't test.
- Ad hoc builds (the test builds an Expensify employee triggers on a PR) are out of scope. If a change needs one, say so in the handoff.
If you couldn't verify something, say so and name what stopped you. "Inconclusive" is more useful to the reviewer than a confident claim with no evidence.
3. Self-review in a fresh context
The agent that wrote the change doesn't get to judge it. Spawn two reviewers with no memory of this conversation, in parallel:
- Bug hunt: give it references/review-prompt.md with
<base>and<triage-file>filled in. - Rules: have it check the local diff (
git diff $(git merge-base upstream/main HEAD), since there is no PR forgh pr diffyet) against every rule in.claude/skills/app-coding-standards/rules/. claude-review applies the same rules once the PR is out of draft, so fixing them now saves a review round.
Don't fix anything yet. Show the human every critical and important finding with:
- the finding as
file:line, severity, and what breaks - your verdict: agree or disagree, with one line why (check the claim against the code first)
- the fix you'd make, for the ones you agree with
The human decides which to fix. Fix only those, then rerun steps 1 and 2 for what the fixes touched. Keep a one-line reason for every finding left unfixed, for the handoff.
If you can't spawn a reviewer, re-read the whole diff cold against the same prompt yourself and say so in the handoff.
4. Commit and open
- Branch off an up-to-date
upstream/main. Titles and commits use<type>: <description>(fix, feat, refactor, upgrade, chore, docs, test, perf, ci), th
Установить ship-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ship-pr?
Take finished work in Expensify/App to a PR a human can review without fighting CI or bots. Runs the checks, verifies the change in the running app, gets a fresh-context self-review for the human to triage, opens a PR from your fork (draft by default) with the App template, then babysits it. Use whenever you are asked to open, create, ship, or submit a PR, or when implementation is done and the next step is review.
Как установить скилл ship-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ship-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub