Agent skill

Gh Create PR

by antdigital-ai in antdigital-ai/agentic-ui

使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

MITAuto-check passedDevelopment

Install Gh Create PR

skills CLI
$ npx skills add antdigital-ai/agentic-ui --skill gh-create-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install antdigital-ai/agentic-ui gh-create-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/antdigital-ai/agentic-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/gh-create-pr .claude/skills/gh-create-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-create-pr
GitHub stars
224
Token cost
~416 tokens
SKILL.md length
121 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

  • Works in 4 steps: 确认状态 → 推送当前分支 → 创建 PR → …
  • Tasks that involve Pull requests
  • SKILL.md covers 何时使用, 流程, 提交信息规范(本仓库) and 命令速查, plus 1 more section
  • Calls git and gh

What it does

Gh Create PR is an agent skill from antdigital-ai/agentic-ui. 使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with GitHub. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/gh-create-pr”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 确认状态
  2. 推送当前分支
  3. 创建 PR
  4. 标题与正文

What it can do on your machine

Read from SKILL.md and the folder at commit cc659da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gh Create PR loads about 416 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 121 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~416

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from antdigital-ai/agentic-ui at commit cc659da, republished under its MIT licence (© antdigital-ai). 121 words, ~416 tokens.

Download SKILL.mdSave it as .claude/skills/gh-create-pr/SKILL.md (or your agent's skills folder).
name
gh-create-pr
description
使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

使用 gh 创建 / 更新 PR

何时使用

  • 用户说:提 PR、新建 PR、用 gh 建 PR、submit PR、create pull request、开 PR
  • 当前分支有未推送提交,需要推送到 origin 并创建或更新 PR

流程

1. 确认状态
bash
git status -sb
git log -1 --oneline
  • 若有未提交变更,先按项目规范提交(见下方「提交信息规范」)。
  • 若 [ahead N],需要先 push。
2. 推送当前分支

若当前分支领先 origin:

bash
git push -u origin <当前分支名>

或简写(当前分支已跟踪 origin 时):

bash
git push origin
3. 创建 PR
bash
gh pr create --base main --head <当前分支名> --title "<标题>" --body "<正文>"
  • --base:目标分支,一般为 main 或 master,可与仓库默认分支一致。
  • --head:当前分支;不写时 gh 会使用当前检出分支。
  • 若该分支已有开放中的 PR,gh 会提示已存在并给出链接,不会重复创建。
4. 标题与正文
  • 标题:简短说明变更,可与最近一次 commit 的 summary 一致或稍作归纳。
  • 正文:可选;可包含「变更说明」「测试说明」「关联 Issue」等。若用户未指定,可用简洁模板,例如:
markdown
## 变更说明

- (根据 commit 或改动简要列出)

> Submitted by Cursor

提交信息规范(本仓库)

提交时遵循既有规范:

  • 格式:Component: Emoji 描述 或 type(scope): description
  • Props、组件名用反引号;中英文之间加空格
  • 多类变更按组件/类型分条写

示例:MarkdownEditor: 优化 Jinja 模板(可访问性、错误处理、样式与单测)

命令速查

步骤命令
看状态git status -sb
推送git push -u origin $(git branch --show-current)
建 PRgh pr create --base main --title "标题" --body "正文"
查看已有 PRgh pr list --head $(git branch --show-current)

注意

  • 执行 gh 前需已登录:gh auth login。
  • 若遇 TLS / 证书错误,可带 required_permissions: ["all"] 再试。
  • 创建 PR 需要网络权限。

© antdigital-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/gh-create-pr of antdigital-ai/agentic-ui.

Open the folder on GitHubat commit cc659da

Compare with similar skills

Gh Create PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gh Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh Create PR this skillantdigital-ai/agentic-ui224—~416Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed

More from antdigital-ai/agentic-ui

All 22 skills in this repo
  • Markdown Syntax Guide

    antdigital-ai/agentic-ui

    指导用户使用 @ant-design/agentic-ui 的 Markdown Editor / Renderer 扩展语法。图表场景优先使用内置 chart(HTML 注释 chartType + 表格),只有当内置 chartType 都不能表达诉求时才回退 Mermaid。Triggers on keywords like 表格, 视频, 图表, 卡片, 提示块, 流程图, 语法…

    224 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Agentic UI Usage

    antdigital-ai/agentic-ui

    Guides how to use @ant-design/agentic-ui in applications (install, import, layout, chat, editor, i18n).

    224 GitHub stars~691 tokensUpdated today
    Auto-check passed
  • Component Bubble

    antdigital-ai/agentic-ui

    Develop and extend Bubble components (AIBubble, UserBubble, Bubble list) for AI chat messages in @ant-design/agentic-ui.

    224 GitHub stars~283 tokensUpdated today
    Auto-check passed
  • Component Schema

    antdigital-ai/agentic-ui

    Develop SchemaForm, SchemaEditor, SchemaRenderer and validator in @ant-design/agentic-ui for low-code and JSON Schema.

    224 GitHub stars~247 tokensUpdated today
    Auto-check passed
  • Agentic UI Development

    antdigital-ai/agentic-ui

    Guides development workflow, design system, scripts, and component inventory for @ant-design/agentic-ui.

    224 GitHub stars~555 tokensUpdated today
    Auto-check passed
  • Component Agentic Layout

    antdigital-ai/agentic-ui

    Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui.

    224 GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Gh Create PR

What does Gh Create PR do?

使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。. Gh Create PR is an agent skill from antdigital-ai/agentic-ui.

When should I use Gh Create PR?

Gh Create PR fits situations like: tasks that involve Pull requests.

How do I install Gh Create PR in Claude Code?

Run `npx skills add antdigital-ai/agentic-ui --skill gh-create-pr -a claude-code`. Or copy the skill folder (.cursor/skills/gh-create-pr in antdigital-ai/agentic-ui) into .claude/skills/gh-create-pr in your project. Claude Code loads it when a task matches its description.

How do I install Gh Create PR in Codex?

Run `npx skills add antdigital-ai/agentic-ui --skill gh-create-pr -a codex`. Or copy the skill folder (.cursor/skills/gh-create-pr in antdigital-ai/agentic-ui) into .agents/skills/gh-create-pr in your project. Codex loads it when a task matches its description.

Can I use Gh Create PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antdigital-ai/agentic-ui --skill gh-create-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-create-pr, .gemini/skills/gh-create-pr, .github/skills/gh-create-pr and .opencode/skills/gh-create-pr in your project.

What does Gh Create PR need to run?

Going by SKILL.md and its folder, Gh Create PR needs the command-line tools its instructions call (git and gh).

Does Gh Create PR access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gh Create PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gh Create PR use?

Gh Create PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gh Create PR use?

About 416 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gh Create PR?

Skills that share tags, products or a category with Gh Create PR: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh Create PR?

antdigital-ai (a GitHub organization) maintains it in antdigital-ai/agentic-ui, which has 224 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 9, 2026.

Source: antdigital-ai/agentic-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.