pr
БесплатноБез исполняемых скриптовНе проверенCreate a pull request
от adamayoung★ 182 звезды на GitHubОб этом скилле
Create a pull request
I'll create a pull request for the current branch by following these steps. If any steps fail, stop.
Mode — check the arguments passed to this skill (shown at the end). If they
include reviewed (or skip-review), an upstream step already ran the review
and fixed its findings (e.g. /deliver's code-review phase via
/review-changes), so skip steps 5–7 to avoid reviewing identical code
twice. Otherwise (standalone /pr), run the internal review as normal.
Also skip steps 5–7 when the branch changes no reviewable code. Use
/review-changes' own gate set, not a narrower one — committed scripts under
.claude/workflows/ and Scripts/ are reviewable too, and a PR editing only
Scripts/check-defaulted-witnesses.py changes a CI gate:
git diff --name-only origin/main...HEAD \
| grep -qE '\.swift$|^\.claude/workflows/|^Scripts/' \
|| echo "no reviewable code → skip review"
(If the change rewrites the pipeline's own skills, don't skip — pass
force-review to /review-changes; see its §0.)
Run
/formatto format codeCommit all outstanding work. Run
git status. If the working tree has any uncommitted or unstaged changes (the feature work, plus the formatting from step 1), stage and commit them — the PR reflects committed history only, so anything left uncommitted will be missing from the PR. First verify no secrets,.env, or build artifacts are included (per CLAUDE.md —.envmust stay gitignored; checkgit statusbeforegit add). Use a descriptive gitmoji message (or several logical commits if the work spans concerns); formatting-only changes can use "🎨 apply code formatting". If the tree is already clean (e.g. work was committed during/deliver), this is a no-op.Rebase onto the latest
origin/main. Fetch the remote and rebase the feature branch directly ontoorigin/main— do this beforemake ciso the gate (and the eventual PR) reflects the real merge result, not stale code:git fetch origin git rebase origin/main- Rebase onto
origin/main, not localmain— this is worktree-safe. A/deliverruns inside a git worktree, andgit checkout mainthere fails (fatal: 'main' is already used by worktree …) whenever the main checkout is onmain; rebasing ontoorigin/mainavoids checkingmainout at all and uses the true remote base directly. - If
git rebasereports conflicts, stop, resolve them, then continue. Never skip or force past a conflict you don't understand. - The rebase rewrites the branch tip, so a branch that was already pushed will need
git push --force-with-leaseat the push step below. - Already branched off an up-to-date
origin/mainwith nothing to replay → this is a fast no-op.
- Rebase onto
Run the pre-PR gate — MANDATORY; it must pass before going further. Run it directly (do not delegate). If it fails, stop and fix — commit the fixes — then re-run; never open a PR on a red gate. Scale the gate to the diff:
Default — full
make ci. The gate CLAUDE.md requires before any PR: lint, markdown lint, unit tests, integration tests, the release build, and the docs build. Use this whenever any code or build-affecting file changed.Docs/config-only fast gate. When the diff touches no build- or test-affecting files — i.e. no
*.swiftand none ofMakefile,Package.swift,Package.resolved,*.xctestplan,.github/workflows/**, orTests/TMDbTests/Resources/**— the test/release-build legs ofmake cihave nothing to exercise. Run only the meaningful checks instead:make lint && make lint-markdown && make build-docs(dropbuild-docsif no*.docc/**changed). Detect this with:git diff --name-only origin/main...HEAD \ | grep -qE '\.swift$|^Makefile$|^Package\.(swift|resolved)$|\.xctestplan$|^\.github/workflows/|^Tests/TMDbTests/Resources/' \ && echo "code/build touched → full make ci" \ || echo "docs/config-only → fast gate"JSON fixtures count as test-affecting. They are a build input of the
TMDbTeststarget via.process("Resources")(Package.swift), so a fixture-only diff still has to run the unit suites — a re-captured value can break a decode assertion that no amount of lint will catch..github/workflows/ci.yml'sswiftpaths filter carries the same path for the same reason; keep the two in step.The PR's own CI still runs the full matrix regardless, so this only trims the local gate; it never lowers what actually guards
main. When in doubt, run fullmake ci.Re-lint new Swift files without the cache.
make ci's lint leg isswiftlint --strict .(Makefile), and SwiftLint caches results (~/Library/Caches/SwiftLint). On newly-added.swiftfiles this has been seen to report a false green locally — passingfile_length/type_body_length
Установить pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr?
Create a pull request
Как установить скилл pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic