Token导航 LogoToken导航TokenDH.com
开发权限需确认github未标认证来源可访问许可证需确认审计通过

gh-create-prgh 创建公关

Agent Skill

gh-create-pr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

44,716

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gh-create-pr(gh 创建公关)
来源仓库:https://github.com/cherryhq/cherry-studio
仓库路径:skills/gh-create-pr
安装命令:
npx skills add https://github.com/cherryhq/cherry-studio --skill gh-create-pr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cherryhq/cherry-studio --skill gh-create-pr

简介

gh-create-pr 用于创建和管理 GitHub Pull Request,支持分支推送、基准分支选择、模板读取和 PR 内容收集。

  • 适合在需要自动化 PR 提交流程或整合代码变更到宿主环境时使用。
  • 通过交互式提问收集 PR 上下文,自动判断是否需要推送分支或调整目标分支。
  • 安装前请确认仓库权限、远程名称及是否允许执行 git 命令和网络访问。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

GitHub PR Creation

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).
  3. Check if the current branch has been pushed to remote. If not, push it first: git push -u <remote> <head-branch>

- Default remote is origin, but ask the user if they want to use a different remote.

  1. Determine the base branch:

- For official repo(CherryHQ/cherry-studio) as origin: default base is main from origin, but allow the user to explicitly indicate a base branch. - For fork repo as origin: check available remotes with git remote -v, default base may be upstream/main or another remote. Always assume that user wants to merge head to CherryHQ/cherry-studio/main, unless the user explicitly indicates a base branch. - Ask the user to confirm the base branch if it's not the default.

  1. Create a temp file and write the PR body:

- Use pr_body_file="$(mktemp /tmp/gh-pr-body-XXXXXX).md" - Fill content using the template structure exactly (keep section order, headings, checkbox formatting). - If not applicable, write N/A or None.

  1. Preview the temp file content. Show the file path (e.g., /tmp/gh-pr-body-XXXXXX.md) and ask for explicit confirmation before creating. Skip this step if the user explicitly indicates no preview/confirmation is needed (for example, automation workflows).
  2. After confirmation, create the PR: gh pr create --base <base> --head <head> --title "<title>" --body-file "$pr_body_file"
  3. Clean up the temp file: rm -f "$pr_body_file"
  4. Report the created PR URL and summarize title/base/head and any required follow-up.

Constraints

  • Never skip template sections.
  • Never rewrite the template format.
  • Keep content concise and specific to the current change set.
  • PR title and body must be written in English.
  • Never create the PR before showing the full final body to the user, unless they explicitly waive the preview or confirmation.
  • Never rely on command permission prompts as PR body preview.
  • Release note & Documentation checkbox — both are driven by whether the change is user-facing. Use the table below: Change type Release note Docs [x] New user-facing feature / setting / UI Describe the change ✅ Bug fix visible to users Describe the fix ✅ if behavior changed Behavior change / default value change Describe + action required ✅ Security fix in a user-facing dependency Describe the fix ✅ if usage changed CI / GitHub Actions changes NONE ❌ Internal refactoring (user cannot tell) NONE ❌ Dev / build tooling changes NONE ❌ Dev-only dependency bump NONE ❌ Test-only / code style changes NONE

Command Pattern

# read template
cat .github/pull_request_template.md

# show this full Markdown body in chat first
pr_body_file="$(mktemp /tmp/gh-pr-body-XXXXXX).md"
cat > "$pr_body_file" <<'EOF'
...filled template body...
EOF

# run only after explicit user confirmation
gh pr create --base <base> --head <head> --title "<title>" --body-file "$pr_body_file"
rm -f "$pr_body_file"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.84%
按下载量换算52

Claude

29.58%
按下载量换算44

Cursor

20.17%
按下载量换算30

Gemini CLI

9.96%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills