gh-create-pr
БесплатноБез исполняемых скриптовНе проверенCreate or update GitHub pull requests using the repository-required workflow and template compliance. Use when asked to create/open/update a PR so the…
от CherryHQ★ 54 038 звёзд на GitHubОб этом скилле
GitHub PR Creation
Stack tooling
This repository ships .agents/skills/gh-stack/SKILL.md as a public project skill; developers do not install the agent skill separately. Read it before operating on stacked branches or PRs. Agents that consume .agents/skills/ discover it directly. If a Claude checkout is missing .claude/skills/gh-stack, run pnpm skills:sync followed by pnpm skills:check; do not download a separate global copy.
Before the first gh stack command in a task, verify the GitHub CLI and install the official extension if it is missing:
command -v gh >/dev/null 2>&1 || {
echo "GitHub CLI is required: https://cli.github.com/" >&2
exit 1
}
gh auth status
if ! gh stack --help >/dev/null 2>&1; then
gh extension install github/gh-stack
fi
gh stack --help >/dev/null
Stop if authentication, installation, or the final verification fails. Do not infer a stack with ad hoc Git commands. For human-authored Cherry PRs, use gh stack push, create each compliant PR through this skill from bottom to top, then link the existing PRs with gh stack link; gh stack submit --auto creates PRs outside the template-compliant body flow and must not bypass this workflow.
Workflow
- Read
.github/pull_request_template.mdbefore drafting the PR body. - Collect PR context from the current branch (base/head, scope, linked issues, testing status, breaking changes, release note content). Resolve the live base and run
pnpm change:scope --base <verified-base-ref>; do not infer scope from the latest commit alone. - Read
.agents/notes/README.mdand classify the change:- Fill
Agent Notewith the repository path, orN/A — <reason>for a local/mechanical change. - For a Spec PR, fill
Spec PR: This PRand list every AC. - For an implementation layer, link the Spec PR and list only the AC IDs covered by this layer. Implementation may start and be published for review without waiting for Spec Approval or merge.
- For a direct bug fix with durable rationale, link its implemented
bug-fixnote and useSpec PR: N/A. - Automation-authored PRs (repository workflows and Dependabot) are exempt from these metadata fields. Do not make their bodies imitate a human-authored PR.
- Fill
- For an implementation PR, complete the stack tooling preflight, then run
gh stack view --json. If it exits 2, follow thegh-stackskill's remote-discovery procedure; missing local metadata does not prove the PR is standalone. Inspect every downstack implementation PR and aggregate only ACs backed by actual verification. Keep the note proposed on intermediate layers. If the current PR is the final layer and cumulative evidence covers the complete current Spec, move the bilingual triplet toimplemented/and runpnpm agent-notes:check-transition --base <verified-spec-ref>before publishing. - Fill
Verificationwith commands and scenarios actually run. Never present a planned, pending, skipped, or CI-only check as passed.- Use verification to collect replayable evidence for the full scope. Include before/after screenshots or video for user-visible changes, including fixes outside UI files, and comparable before/after measurements for every performance optimization.
- Reuse existing evidence when it covers the revisions and scenarios in scope. Embed or link artifacts reviewers can open and put the measured values directly in
Verification. - Collect missing evidence before publishing a ready-for-review PR or marking a draft ready. If collection is blocked, report the exact gap. For an explicitly requested draft, list missing evidence as pending in
Verification. Applicable evidence may never be markedN/A. - Use UI capture to frame the affected region so the difference reads at a glance. Reuse an issue's baseline capture only if it shows the same scene on the relevant baseline. Label any annotations that show otherwise invisible input, such as keys pressed. Place stills or GIFs side by side and check each at about 450 px wide. Place each MP4 in its own paragraph under a "Before" or "After" line.
- Check if the current branch has been pushed to remote. If not, push it first:
- Default remote is
origin, but ask the user if they want to use a different remote.
git push -u <remote> <head-branch> - Default remote is
- Determine the base branch:
- Inspect the head branch before applying any default. If the head is
release/v<version>, stop: never open a pull request from a release branch, especially not tomain. Put an isolated fix on a topic branch and target the release branch, or let Post Release create the metadata sync branch. - Before defaulting an arbitrary topic branch to
main, inspect its merge base and upstream. A product-code fix that started fromrelease/v<version>must stop and be recreated frommainas a hotfix; only a release-only repair or explicit backport recovery topic
- Inspect the head branch before applying any default. If the head is
Установить gh-create-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gh-create-pr?
Create or update GitHub pull requests using the repository-required workflow and template compliance. Use when asked to create/open/update a PR so the assistant reads `.github/pull_request_template.md`, fills every template section, preserves markdown structure exactly, and marks missing data as N/A or None instead of skipping sections.
Как установить скилл gh-create-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gh-create-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic