Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

create-pr创建公关

Agent Skill

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

总安装

256

周安装

11

GitHub Stars

公开资料未说明

下载量

90
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mguinada/agent-skills --skill create-pr

简介

create-pr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于前端设计相关任务,如页面开发、组件构建和界面优化。
  • 支持仓库状态查询、代码变更分析和协作事项整理。
  • 安装命令:npx skills add https://github.com/mguinada/agent-skills --skill create-pr
  • 建议确认权限范围和维护状态,注意是否会触发命令执行或文件读写操作。

SKILL.md

Create Pull Request

Collaborating skills

  • Git Commit: skill: git-commit for creating well-structured commit messages before opening a PR

Creates GitHub PRs with conventional commit titles and a body that mirrors .github/pull_request_template.md.

PR Title Format

<type>(<scope>): <summary>

Types (required)

TypeDescription
featNew feature
fixBug fix
perfPerformance improvement
testAdding/correcting tests
docsDocumentation only
refactorCode change (no bug fix or feature)
buildBuild system or dependencies
ciCI configuration
choreRoutine tasks, maintenance

Scopes (optional but recommended)

  • backend — Backend/API (apps/backend or apps/api)
  • web — Frontend (apps/web)
  • types — Shared TypeScript types (packages/types)
  • api — Public API contract (serializers, endpoints)
  • infra — Deployment, Docker, Kamal, CI
  • docs — Documentation and strategy files

Summary Rules

  • Use imperative present tense: "Add" not "Added"
  • Capitalize first letter
  • No period at the end
  • Add ! before : for breaking changes (e.g. feat(api)!:...)

Steps

  1. Check current state: git status git diff --stat git log origin/main..HEAD --oneline
  2. Analyze changes to determine:

- Type: What kind of change is this? - Scope: Which area is affected? - Summary: What does the change do?

  1. Push branch if needed: git push -u origin HEAD
  2. Create PR using gh CLI with title and body. If .github/pull_request_template.md exists, use it as the PR body instead of the default template: gh pr create --title "<type>(<scope>): <summary>" --body "<body from template>"
  3. Assign labels by parsing the PR title: See references/labels.md for the complete implementation script. ` gh pr create --title "<type>(<scope>): <summary>" --body "$(cat <<'EOF' ## What <Describe the change concisely. What does this PR do and why?> ## Why <What problem does this solve? Link to issue if applicable.> <!-- Closes #123 / Fixes #123 / Resolves #123 --> ## Type of change - [] Bug fix - [] New feature - [] Refactor - [] Documentation - [] Infrastructure / tooling ## Testing <How was this tested? What cases were covered?> ## Checklist - [] Tests pass (<test command>) - [] No new dependencies introduced without justification - [] Breaking changes are documented below (if any) ## Breaking changes <!-- List any breaking API contracts, renamed fields, removed endpoints, or behaviour changes. Leave blank if none. --> EOF)" `

- Extract <type> from the title - Extract <scope> if present in parentheses - Check for ! prefix indicating breaking change - Create labels if they don't exist - Apply labels using gh pr edit --add-labels

Examples

New feature

feat(auth): Add OAuth2 login support

Bug fix

fix(api): Correct pagination offset calculation

Breaking API change

feat(api)!: Rename response field user_name to username

Infra / tooling

chore(infra): Update Docker base image to node:22-alpine

No scope (affects multiple areas)

chore: Upgrade dependencies and synchronise lockfile

Validation

The PR title must match this pattern:

^(feat|fix|perf|test|docs|refactor|build|ci|chore|revert)(\([a-zA-Z0-9 ]+\))?!?: [A-Z].+[^.]$

Key rules:

  • Type must be one of the allowed types
  • Scope is optional but must be in parentheses if present
  • ! for breaking changes goes before the colon
  • Summary must start with a capital letter
  • Summary must not end with a period

Labels

After creating the PR, assign labels based on the type and scope extracted from the PR title.

Standard labels to apply:

  • Type label (from <type>(<scope>):): feat, fix, perf, test, docs, refactor, build, ci, chore
  • Scope label (if scope present): derived from the scope in the PR title
  • Special labels: breaking (if ! in title), dependencies (for dependency updates), security (for security fixes)

Create labels if they don't exist. See references/labels.md for complete color mapping and implementation script.

Iron Rule

The agentic coding assistant shall never merge to the main branch — create pull requests only. Never use gh pr merge, git merge, or any command that directly merges to main. Pull requests are for human review and merging.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.35%
按下载量换算32

Claude

32.89%
按下载量换算30

Cursor

19.17%
按下载量换算17

Gemini CLI

10.55%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills