Token导航 LogoToken导航

Agent Skill · 前端设计

ah-create-pr(啊创建公关)

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

ah-create-pr 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 9,602。

总安装 210周安装 9GitHub Stars 公开资料未说明下载 73核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/arinhubcom/arinhub --skill ah-create-pr

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

自动创建或更新 GitHub Pull Request,基于当前分支差异生成结构化描述。适用于持续集成和自动化开发流程中的 PR 生命周期管理。通过 npx 命令安装,需提供目标分支和可选 Issue 编号作为输入参数。建议在使用前验证分支状态和权限,避免重复创建或合并冲突。

ah-create-pr 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ah-create-pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/arinhubcom/arinhub --skill ah-create-pr;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ah-create-pr 怎么安装?

在终端执行 npx skills add https://github.com/arinhubcom/arinhub --skill ah-create-pr。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ah-create-pr 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ah-create-pr 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

ah-create-pr 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ah-create-pr 用的人多吗?

公开数据是累计安装 210 次,近一周安装 9 次,下载 73 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ah-create-pr 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
ah-create-pr

啊创建公关 · 本页

210—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Create or Update GitHub Pull Request

Analyze the current branch and create or update a well-structured GitHub Pull Request. If an open PR already exists for the current branch, it is updated instead of creating a duplicate. The diff against the base branch is the single source of truth for all PR content.

Input

  • Base branch (REQUIRED): The target branch this PR will merge into (e.g., main, develop). If the user did not provide it, STOP and ask before proceeding. Never assume or default to any branch.
  • Issue number (optional): The GitHub issue number this PR addresses (e.g., 42, #42). If not provided by the user, do not attempt to infer it from the branch name -- simply omit issue references from the PR.
  • Labels (optional): Comma-separated list of labels to apply to the PR (e.g., bug,urgent, feature,frontend). If not provided by the user, auto-detect labels in step 2.
  • Current Git branch with unmerged commits
  • Git diff against the base branch

Procedure

0. Preparation

Verify GitHub CLI authentication and check for uncommitted changes before proceeding.

gh auth status

# Warn if there are uncommitted changes that won't be included in the PR
git status --porcelain

If gh auth status fails, stop and ask the user to authenticate with gh auth login. If there are uncommitted changes (staged or unstaged), warn the user that these changes will not be included in the PR and ask whether to continue or wait.

Run quality checks to catch issues before creating the PR. If any check fails, report the failure and ask the user how to proceed.

pnpm preflight
pnpm preflight:build

Also compare .env* files in the repo root: identify missing keys across them and flag any security risks or naming inconsistencies.

1. Gather Context

If the user did not provide a base branch, STOP and ask for it before proceeding.

BASE_BRANCH=<user-provided base branch>
CURRENT_BRANCH=$(git branch --show-current)

# Compute merge base for reliable diffing (works even if origin isn't fetched)
git fetch origin "${BASE_BRANCH}" --quiet
MERGE_BASE=$(git merge-base "origin/${BASE_BRANCH}" HEAD)

# Full diff against merge base (primary source of truth)
git diff "${MERGE_BASE}" --stat
DIFF=$(git diff "${MERGE_BASE}")

# Commit history on this branch
git log "${MERGE_BASE}"..HEAD --no-decorate

# Branch tracking status
git status -sb

# Check for existing open PR on this branch
EXISTING_PR_NUMBER=$(gh pr list --head "${CURRENT_BRANCH}" --state open --json number --jq '.[0].number')
EXISTING_PR_URL=$(gh pr list --head "${CURRENT_BRANCH}" --state open --json url --jq '.[0].url')
EXISTING_PR_BASE=$(gh pr list --head "${CURRENT_BRANCH}" --state open --json baseRefName --jq '.[0].baseRefName')

If an open PR already exists for the current branch, the skill will update it in Step 4 instead of creating a new one. If the existing PR targets a different base branch than the one the user provided, warn the user and ask how to proceed before continuing.

If the user provided an issue number, use it for the PR references. Do not infer issue numbers from the branch name or commit messages.

2. Analyze Changed Files

  • Categorize changes by functional area (features, components, API, config, tests, etc.).
  • Identify patterns -- look for related changes that form logical blocks (e.g., "Auth flow refactor", "Error handling improvements").
  • Validate scope -- verify all changes contribute to the same feature/fix. Flag unrelated changes that may need separate PRs.
Determine Labels

If the user provided labels, use them as-is. Otherwise, auto-detect labels by analyzing:

  1. Fetch available labels from the repository: gh label list --limit 100 --json name,description
  2. Match labels based on the PR content:

- PR title type -- map the commit type (feat, fix, refactor, docs, test, perf, chore) to matching labels (e.g., feat -> feature/enhancement, fix -> bug/bugfix, docs -> documentation) - Changed file paths -- infer domain labels from directories (e.g., changes in apps/app-name/ -> app-name, changes in src/api/ -> api/backend, changes in src/components/ -> frontend/ui, changes in infra/ -> infrastructure) - Diff content -- detect patterns like security fixes, dependency updates, breaking changes, and match to corresponding labels

  1. Select only labels that exist in the repository. Never create or suggest labels that do not exist.
  2. Limit to 1-4 labels -- pick the most relevant ones. Prefer specific labels over generic ones.

3. Generate PR Content

Read the PR body template from references/pr-body.md and follow its structure and rules exactly.

4. Create Pull Request

Title format: <type>: <brief description> -- keep under 70 characters.

  • Types: feat, fix, refactor, chore, test, docs, perf
  • For monorepos, prefix with app name: app-name/feat: description
  • Extract from the first commit if it already follows this format.

Draft mode: Create as draft if any of these apply:

  • TODOs identified in commit messages
  • Tests missing for new features
  • Scope seems too large (>20 files changed)

Push the branch to the remote if it has not been pushed yet or is behind:

git push -u origin ${CURRENT_BRANCH}
If an open PR already exists (EXISTING_PR_NUMBER is set)

Update the existing PR with the newly generated content:

gh pr edit ${EXISTING_PR_NUMBER} \
  --title "<type>: <brief description>" \
  --add-label "<label1>" --add-label "<label2>" \
  --body "$(cat <<'EOF'
<PR body from references/pr-body.md>
EOF
)"

Omit --add-label flags entirely if no labels were determined.

If no open PR exists

Create a new PR (include --label flags for each determined label):

gh pr create \
  --base "${BASE_BRANCH}" \
  --head "${CURRENT_BRANCH}" \
  --title "<type>: <brief description>" \
  --label "<label1>" --label "<label2>" \
  --body "$(cat <<'EOF'
<PR body from references/pr-body.md>
EOF
)"

Omit --label flags entirely if no labels were determined.

5. Report to User

After creating or updating the PR, provide:

  1. PR URL -- direct link to the created or updated pull request
  2. Status -- whether the PR was created or updated (existing PR detected)
  3. Summary -- brief recap of what was included
  4. Labels -- list the labels applied and briefly explain why each was chosen (or note that none were applicable)
  5. Action Items -- any TODOs or follow-ups identified
  6. Review Checklist -- quick reminders for self-review before requesting reviewers

Validation Checks

Before submitting the PR, verify:

  • All applicable sections are populated (Summary, Changes, Tests, and GH if an issue was provided)
  • No placeholder text like "TODO" or "TBD" remains (unless in explicit TODO checkboxes)
  • If an issue number was provided, closing keywords are correctly formatted
  • Changes align with branch name and commit messages
  • Test coverage is addressed (present or explicitly noted as TODO)

Error Handling

  • If no base branch was provided, STOP and ask the user for it
  • If no commits exist ahead of the base branch, abort and inform user
  • If diff is empty, check for unstaged changes and prompt user
  • If an existing open PR targets a different base branch than the user provided, warn the user and ask whether to update the existing PR's base or create a new PR

Best Practices

  • Atomic PRs: Warn if scope seems too broad (suggest splitting if >30 files or multiple unrelated features)
  • Conventional Commits: Use semantic versioning-friendly titles
  • Self-Review: Suggest the author review the generated content before requesting reviewers

平台分布

Codex

38.17%
按下载量换算28

Claude

27.61%
按下载量换算20

Cursor

16.63%
按下载量换算12

Gemini CLI

9.49%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills