Token导航 LogoToken导航

Agent Skill · 前端设计

create-pr(创建公关)

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/squirrel289/pax --skill create-pr

这个 Skill 是做什么的

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

create-pr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。它支持创建和管理 Pull Request,适用于前端设计与开发协作场景。

可通过 npx skills add 命令从 GitHub 安装,具体用法需结合原始 README 进一步确认。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。create-pr 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

create-pr 怎么安装?

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

create-pr 支持哪些 AI 工具?

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

create-pr 需要什么权限?

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

create-pr 是免费的吗?

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

create-pr 用的人多吗?

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

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只读未明确通过
create-pr

创建公关 · 本页

210—需要联网未明确通过

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

SKILL.md 原文

Create PR

Overview

Create a pull request on GitHub from a feature branch, automatically populating PR title and description with work item metadata. Links PR to the associated work item and facilitates smooth transition to review phase.

When to Use

Create a PR when:

  • Implementation is complete and tested locally
  • Feature branch is synced with main and ready for review
  • Work item status is testing (or ready for code review)
  • PR does not already exist for the branch
  • Ready to solicit code review and feedback

When NOT to Use

Skip creating PR for:

  • Work still in progress (use [[update-work-item/SKILL]] to track, submit PR later)
  • Exploring experiment branches (keep as WIP, don't create PR)
  • Pushing emergency hotfixes (create PR directly via GitHub UI or gh pr create manually)

Frontmatter Fields in Work Item

When work item status transitions to testing, [[create-pr/SKILL]] is invoked automatically. It reads:

title: "Implement FilterAdapter"
id: 60
status: testing
feature_branch: feature/60-filter-adapter  # Set by feature-branch-management
related_commit:
  - 6d8c044  # feat(sdk): initial FilterAdapter interface
  - f00459b  # feat(filters): implement selectattr and map
notes:
  - timestamp: 2024-06-01T12:00:00Z
    user: @john
    note: |
      Implementation complete. All filters implemented with type signatures.
      Awaiting code review and merge.

Uses these fields to construct PR title and description.

Workflow: Creating a Pull Request

1. Verify Preconditions

Before creating PR, verify:

  • Feature branch exists and is pushed to remote
  • Branch is synced with main (no conflicts)
  • Work item status is testing (or equivalent ready state)
  • No PR already exists for this branch (check GitHub)

2. Generate PR Title

PR title is auto-generated from work item:

Format: <work-item-id>: <work-item-title>

Examples:

60: Implement FilterAdapter
#59: Fix elif parsing edge case
#61: Evaluate expression engines

Customization: User can override title if provided.

3. Generate PR Description

PR description is auto-generated from work item and commit history.

Template:

## Work Item

Closes #<id> - <title>
See: backlog/<id>_<slug>.md

## Summary

<work_item_notes excerpt (first 200 chars)>

## Implementation Details

<commit messages from related_commit in chronological order>

### Commits
- <commit hash>: <message>
- <commit hash>: <message>
...

## Testing

<test_results if recorded>

## Acceptance Criteria

<acceptance criteria from work item body>

## Related Work

<dependencies if any>

Example:

## Work Item

Closes #60 - Implement FilterAdapter
See: backlog/60_implement_filter_adapter.md

## Summary

Implements core filtering operations for FilterAdapter.
Supports filtering sequences by attribute value and projection.

Initial focus: selectattr and map filters.

### Commits
- 6d8c044: feat(sdk): initial FilterAdapter interface
- f00459b: feat(filters): implement selectattr and map
- a1b2c3d: docs: add filter usage examples

## Testing

Local: All 47 tests pass, coverage 89%
CI: Pending review

## Acceptance Criteria

- [x] FilterAdapter interface designed and documented
- [x] selectattr and map filters implemented
- [ ] Integration tests pass (pending CI)
- [ ] Code review approved

## Related Work

- Dependency: 54 (complete temple_native)

Customization Options

1. Title Override

Allow user to provide custom title:

# Input option:
custom_title: "feat: add FilterAdapter with selectattr and map support"

# Result: Uses custom title instead of auto-generated

2. Template Selection

Support different PR templates for different work item types:

# Work item field:
pr_template: feature  # or "bugfix", "spike", "refactor"

# Result: Uses matching template from .github/PULL_REQUEST_TEMPLATE/

3. Draft PR

Create PR in draft mode for early feedback:

# Input option:
draft: true

# Result: PR created as Draft, marking work-in-progress
# Can be marked ready-for-review later

Integration with PR Management

Linking to Work Item

PR description includes work item link:

Closes #60
See: backlog/60_implement_filter_adapter.md

Enables:

  • GitHub auto-linking (PR references issue #60)
  • Bidirectional traceability (work item ↔ PR)
  • Auto-close on merge (if "Closes" used)

PR Fields

Created PR populates:

repository: squirrel289/pax
base_branch: main
head_branch: feature/60-filter-adapter
title: "60: Implement FilterAdapter"
description: <auto-generated from template>
draft: false  # or true if requested
labels: [feature, testing]  # Optional: auto-applied based on work item
assignee: <creator>  # Optional: auto-assign to work item creator
reviewers: []  # Optional: can be specified in work item or PR template

PR URL

After creation, record in work item:

pr_url: "https://github.com/squirrel289/pax/pull/247"
pr_number: 247

Related skill [[update-work-item/SKILL]] can be invoked to record these.

Workflow: From Work Item to PR

1. update-work-item
   ├─ Status: in_progress → testing
   └─ Invokes: create-pr skill

2. create-pr (automatic execution)
   ├─ Read work item metadata
   ├─ Verify branch exists and is synced
   ├─ Generate PR title and description
   ├─ Call pull-request-tool (via PR_MANAGEMENT_INTERFACE)
   └─ Create PR on GitHub

3. PR Created
   ├─ Title: "60: Implement FilterAdapter"
   ├─ Description: Auto-generated from work item + commits
   ├─ Base: main
   ├─ Head: feature/60-filter-adapter
   └─ Status: Open, ready for review

4. Record PR details (optional)
   ├─ update-work-item again to record pr_number and pr_url
   └─ Or: Work item maintains reference bidirectionally

Interaction Modes (Aspect)

This skill uses the interaction-modes aspect for consistent prompting and decision handling.

  • Aspect: interaction-modes
  • Decision point: confirm_pr_details
  • Parameter: interaction-mode = yolo | collaborative

Error Handling

PR Already Exists

error: "PR already exists for branch feature/60-filter-adapter"
existing_pr: "https://github.com/squirrel289/pax/pull/247"
action: "Use existing PR or delete branch and create new PR"

Branch Not Found or Not Pushed

error: "Branch feature/60-filter-adapter not found on remote origin"
action: "Push branch first: git push origin feature/60-filter-adapter"
hint: "ensure feature-branch-management sync completed successfully"

Work Item Not in Testing Status

warning: "Work item #60 status is 'in_progress', not 'testing'"
action: "Run update-work-item to transition to testing first"
hint: "create-pr triggered automatically on status transition"

Branch Behind Main

error: "Branch feature/60-filter-adapter is behind main"
action: "Sync branch first: feature-branch-management sync"
hint: "ensure rebasing completed before PR submission"

Related Skills

See the dependency matrix in docs/SKILL_COMPOSITION.md for the canonical calling relationships.

  • [[update-work-item/SKILL]]: Triggers PR creation when status → testing; records pr_number and pr_url
  • [[feature-branch-management/SKILL]]: Creates and syncs feature branch before PR creation
  • [[pull-request-tool/SKILL]]: Backend for PR operations (via [[PR_MANAGEMENT_INTERFACE]])
  • [[handle-pr-feedback/SKILL]]: Monitors PR for feedback and triggers rework if needed
  • [[process-pr/SKILL]]: Full PR workflow (includes PR review, feedback, merge)

Tips & Best Practices

1. Commit History Quality

PR description includes commit history. Ensure commits are well-written:

# Good commit messages
git log --oneline feature/60-filter-adapter ^main
# Output:
# a1b2c3d docs: add filter usage examples
# f00459b feat(filters): implement selectattr and map
# 6d8c044 feat(sdk): initial FilterAdapter interface

[[create-pr/SKILL]] will extract these into PR description.

2. Work Item Notes

Keep work item notes concise and review-ready:

notes:
  - timestamp: 2024-06-01T12:00:00Z
    user: @john
    note: |
      Implement FilterAdapter SDK with core filters (selectattr, map, join, default).

      ## Changes
      - temple/sdk/adapter.py: New FilterAdapter class
      - temple/sdk/filters.py: Core filter implementations
      - tests/test_filters.py: Comprehensive test coverage (95%)

      ## Testing
      - All 47 tests pass locally
      - Coverage 89% (target: 85%)

This becomes PR description. Keep it clear for reviewers.

3. Link Work Items

Ensure PR title includes work item ID:

Good:  "60: Implement FilterAdapter"
Good:  "#60 - Implement FilterAdapter"
Avoid: "Implement FilterAdapter"  # No ID, harder to trace

Auto-generation handles this, but verify if customizing.

4. Draft PRs for Early Feedback

Use draft mode for work-in-progress or experimental PRs:

# Input:
draft: true

# Result: PR marked as Draft
# Reviewers see it's not ready; no review requests sent
# Mark ready-for-review when implementation completes

Debugging

PR Not Created Despite Invocation

Check:

  1. Work item status is testing (or ready state)
  2. Feature branch exists locally and on remote
  3. Branch is synced with main (no conflicts)
  4. GitHub authentication works (gh auth status)
  5. Repository has PR creation permissions

PR Description Looks Wrong

Check:

  1. Work item notes field is populated
  2. related_commit field lists implementation commits
  3. Commit messages are clear and follow convention

Customization Not Applied

Check:

  1. Custom options passed correctly (e.g., custom_title=...)
  2. Interaction mode is set (yolo vs collaborative)
  3. Template selection matches available templates in .github/PULL_REQUEST_TEMPLATE/

References

平台分布

Codex

39.54%
按下载量换算29

Claude

27.09%
按下载量换算20

Cursor

17.95%
按下载量换算13

Gemini CLI

9.8%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills