gh-create-pr

gh-create-pr is a skill for Claude Code, Codex, Cursor from antdigital-ai/agentic-ui. It costs 47 tokens per session (691 once invoked), scanned A, original, MIT.

A guide for using GitHub CLI to push the current branch and create or update a pull request. A pull request is a proposed code change that others can review before it is merged into a project.

In plain words
What is it for?
Use it to check branch status, commit outstanding changes when needed, push a branch, create or update a pull request, and write its title and description.
Why use it?
It organizes the steps needed to turn local changes into a reviewable GitHub pull request and helps follow the repository's commit and message conventions.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/antdigital-ai/agentic-ui/gh-create-pr
Any agent
npx skills add antdigital-ai/agentic-ui --skill gh-create-pr
Clone the repo
git clone --depth 1 https://github.com/antdigital-ai/agentic-ui

Made for: Claude Code, Codex, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-create-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/antdigital-ai/agentic-ui/gh-create-pr.svg)](https://agentmods.dev/skills/antdigital-ai/agentic-ui/gh-create-pr)
Your own site
<a href="https://agentmods.dev/skills/antdigital-ai/agentic-ui/gh-create-pr"><img src="https://agentmods.dev/badge/skills/antdigital-ai/agentic-ui/gh-create-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00691
Opus 5 $0.00023 $0.00345
Sonnet 5 $0.00009 $0.00138
Haiku 4.5 $0.00005 $0.00069

Measured 5d ago against content hash ed45abc4c876, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gh-create-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/gh-create-pr/SKILL.md · 86 lines

What it actually says

使用 gh 创建 / 更新 PR

何时使用

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

流程

1. 确认状态

git status -sb
git log -1 --oneline
  • 若有未提交变更,先按项目规范提交(见下方「提交信息规范」)。
  • [ahead N],需要先 push。

2. 推送当前分支

若当前分支领先 origin:

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

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

git push origin

3. 创建 PR

gh pr create --base main --head <当前分支名> --title "<标题>" --body "<正文>"
  • --base:目标分支,一般为 mainmaster,可与仓库默认分支一致。
  • --head:当前分支;不写时 gh 会使用当前检出分支。
  • 若该分支已有开放中的 PR,gh 会提示已存在并给出链接,不会重复创建。

4. 标题与正文

  • 标题:简短说明变更,可与最近一次 commit 的 summary 一致或稍作归纳。
  • 正文:可选;可包含「变更说明」「测试说明」「关联 Issue」等。若用户未指定,可用简洁模板,例如:
## 变更说明

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

> Submitted by Cursor

提交信息规范(本仓库)

提交时遵循既有规范:

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

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

命令速查

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

注意

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

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 86 lines · 47 tokens per session scan A ed45abc4c876

Subscribe to this mod's changes

gh-create-pr is a skill published in the GitHub repository antdigital-ai/agentic-ui (224 stars, last pushed 24d ago), licensed MIT. It adds 47 tokens to every session and 691 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens