Command Palette

Search for a command to run...

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

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от 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-changed and spell-changed diff against origin/main. If origin is your fork, sync its main with 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 for MoneyRequestReportUtils). 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, // Then comments 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.connectWithoutView has a comment justifying it. In a component it also needs @frontend-performance approval linked in the PR body.
  • New strings go in src/languages/en.ts only. The other locales are generated from it by scripts/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, useCallback or React.memo in a file the React Compiler handles.
  • The Mobile-Expensify submodule pointer didn't move by accident: git diff --ignore-submodules=none upstream/main...HEAD -- Mobile-Expensify. Stage by path, never git add -A, git add . or git 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 main later costs a fresh npm install in 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:

  1. Bug hunt: give it references/review-prompt.md with <base> and <triage-file> filled in.
  2. Rules: have it check the local diff (git diff $(git merge-base upstream/main HEAD), since there is no PR for gh pr diff yet) 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/review-prompt.md

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), без исполняемых скриптов.

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

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