Command Palette

Search for a command to run...

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

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от 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

  1. Read .github/pull_request_template.md before drafting the PR body.
  2. 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.
  3. Read .agents/notes/README.md and classify the change:
    • Fill Agent Note with the repository path, or N/A — <reason> for a local/mechanical change.
    • For a Spec PR, fill Spec PR: This PR and 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-fix note and use Spec 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.
  4. For an implementation PR, complete the stack tooling preflight, then run gh stack view --json. If it exits 2, follow the gh-stack skill'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 to implemented/ and run pnpm agent-notes:check-transition --base <verified-spec-ref> before publishing.
  5. Fill Verification with 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 marked N/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.
  6. 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>
    
  7. 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 to main. 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 from release/v<version> must stop and be recreated from main as a hotfix; only a release-only repair or explicit backport recovery topic
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

agents/openai.yaml

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

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

Сравнить gh-create-pr с