# Gh Create PR

Create or update GitHub pull requests using the repository-required workflow and...

- Repository: https://github.com/CherryHQ/cherry-studio (53164 stars)
- Category: Git and review
- License: AGPL-3.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add CherryHQ/cherry-studio --skill gh-create-pr -g -a claude-code -y`
Codex: `npx skills add CherryHQ/cherry-studio --skill gh-create-pr -g -a codex -y`
Cursor: `npx skills add CherryHQ/cherry-studio --skill gh-create-pr -g -a cursor -y`
Gemini CLI: `npx skills add CherryHQ/cherry-studio --skill gh-create-pr -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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:

```bash
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

The rest: https://github.com/CherryHQ/cherry-studio/blob/HEAD/.agents/skills/gh-create-pr/SKILL.md
