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

create-pr创建公关

Agent Skill

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

总安装

210

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

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

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

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

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

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