Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

pr公关

Agent Skill

pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

776

周安装

33

GitHub Stars

10

下载量

272
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/inkeep/team-skills --skill pr

简介

pr 技能辅助生成标准化 PR 描述文档,提升协作透明度。

  • 适用于记录功能变更背景、技术决策依据与 QA 验证过程。
  • 通过 GitHub 安装后,可自动提取 tmp/ship 目录下的测试证据。
  • 需确保视频录制与配置步骤符合团队审查标准。pr 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议结合 CI/CD 流水线实现自动化校验与合并前检查。

SKILL.md

Pull Request

Write or update a PR body that gives reviewers everything they need to understand the change without reading the spec, commit history, or any other document.


Principles

  • Self-contained. The PR body stands on its own. A reviewer should understand what this PR does, why, and what key decisions were made — without reading a spec, commit history, or anything else.
  • Stateless. The PR body always reflects the current scope of the PR relative to origin/main. It is a snapshot, not a journal. When updating, rewrite affected sections to reflect current reality — do not append change notes or leave revision artifacts.

Create workflow tasks (first action)

Before starting any work, create a task for each step using TaskCreate with addBlockedBy to enforce ordering. Derive descriptions and completion criteria from each step's own workflow text.

  1. PR: Gather context — reconcile spec and implementation
  2. PR: Write body — fill template with conditional sections
  3. PR: Apply — create or update PR

Mark each task in_progress when starting and completed when its step's exit criteria are met. On re-entry, check TaskList first and resume from the first non-completed task.


Workflow

Step 1: Gather context

Determine what this PR does from whatever is available:

InputHow to use it
PR number providedRun gh pr diff <number> and gh pr view <number>. Read changed files to understand what was built.
SPEC.md path providedRead the spec. Cross-reference with the actual implementation — the code is the source of truth, not the spec.
"new" (no PR yet)Run git diff main...HEAD --stat and read changed files. Understand what was built from the code.
No inputInfer from current branch: gh pr view --json number -q '.number' or git diff main...HEAD --stat.

When a SPEC.md exists, use it as source material alongside the implementation. The PR body synthesizes both — spec intent and implementation reality — into a unified narrative. When no SPEC.md exists, derive everything from the code and commit history.

QA screenshot evidence: Check if tmp/ship/screenshots/ exists and has files. If yes, include them in the "Screenshots / recordings" section of the PR body — upload via ship-upload-pr-asset.js or inline as image links. If the directory doesn't exist or is empty, omit the screenshots section.

Step 2: Write the PR body

Fill in each section of the template below. Omit sections that don't apply (noted in each section's guidance). Write for the audience: a reviewer who has not seen the spec or the commit history.

Summary

What this PR does + what problem this solves, why now, who benefits. 1-3 sentences if brief, if multiple pronged, can use numbered list to describe key scenarios/problems being solved. Keep it to the point.

Key decisions

Technical decisions worth scrutinizing: what was chosen, why, and what alternatives were considered. Flag gray areas where reasonable engineers might disagree or where the decision could be revisited. If the implementation diverged from the spec, capture the divergence here with rationale. Omit if the change is straightforward with no meaningful decision points.

Recordings

Video recordings of QA test execution. Omit if no scenarios have evidence[] URLs.

When tmp/ship/qa-progress.json exists, check scenarios for evidence[] arrays containing video URLs. Embed each as a collapsible section:

<details>
<summary>QA-001: settings page renders at mobile viewport</summary>

[Video recording](https://video.bunnycdn.com/play/...)

</details>

When no qa-progress.json exists, omit this section. Video capture is QA's responsibility during execution.

Review setup

Minimal steps to see the change running — env vars, seed data, feature flags, or commands needed to get into a reviewable state. Not a test plan; just how to get the reviewer to a point where they can see the change. Omit if standard dev workflow is sufficient.

Verification

What QA verified and what still needs human eyes. This section covers only scenarios that resist automation — visual correctness, UX flows, integration reality, edge cases, failure modes. Do not restate what the automated test suite covers — reviewers can read the test files.

Source of truth — read in this order:

  1. tmp/ship/qa-progress.json (when it exists): Read the file. Render the following sub-sections in order: Coverage by story — Prepend a story-level rollup table. Group scenarios by tracesTo user story ID: | Story | Tested | Gaps | Fidelity | |-------|--------|------|----------| | US-001: Create project | 4/5 ✅ | 1 blocked | browser | | US-002: Settings page | 2/3 ✅ | 1 coverage gap | shell _(browser unavailable)_ | | _(code-discovered)_ | 3/3 ✅ | — | browser | For each story: count validated vs total scenarios tracing to it. If any have status: "failed", "blocked", or "skipped", note the gap count. Show the highest verifiedVia fidelity for that story's scenarios. Show the fidelity summary line only when bootstrapResult.achievedFidelity < bootstrapResult.targetFidelity: _QA ran at **<achieved>** fidelity (<target> unavailable). N visual scenarios fell back to <fallback>._ Verified by QA (N/M) — scenarios with status: "validated". Group by category. For each: Needs human verification (K/M) — scenarios with status: "failed", "blocked", or "skipped". No category grouping — list flat with the reason prominent: Omit scenarios still in planned status (QA didn't get to them). If any exist, add a note: "*N scenarios not yet executed.*" Gaps — developer action needed — Append after the "Needs human verification" list. Scan scenarios[].enrichment.gapType for non-null values and group by gap type. Render only when at least one scenario has a non-null enrichment.gapType. Map each gap type to an icon and developer action: When no scenarios have a non-null enrichment.gapType (and none are formalizable), omit this sub-section entirely.

- Clean pass (notes empty) → - [x] **<name>** — <verifies> - Pass with notes → - [x] **<name>** — <verifies> · <notes> - failed- [] **<category>: <name>** — FAILED: <notes> - blocked- [] **<category>: <name>** — BLOCKED: <notes> - skipped- [] **<category>: <name>** — Skipped: <notes> - ⚠️ **Implementation gap** (fixable_gap): — "you may need to implement this" - 🔴 **Contradiction** (contradiction): — "the spec assumption was wrong — verify the current behavior is acceptable" - 📂 **Stale** (stale): — "this scenario references something that no longer exists — verify manually if user-facing" - ✅ **Formalized** (enrichment.formalizable: true): — "this became an automated test — no manual action needed" (informational)

  1. Existing ## Verification or ## Manual QA section on the PR body (when no JSON file exists): Read the existing PR body before writing. Incorporate the QA checklist items (with their pass/fail/blocked status) into this section — do not discard them.
  2. Neither exists: Write "No manual QA performed." Do not generate speculative test scenarios. If you believe QA should be run, note: "Consider running /qa to generate and execute a test plan."

Related issues

Links to GitHub issues this PR closes or relates to. Use Closes #123 syntax where applicable. Omit if none.

Future considerations

Items out of scope for this PR but worth tracking. Omit if none.

When tmp/ship/ship-summary.md exists: Read the file and source the "Deferred Scope" and "Surfaced Opportunities" sections from it. Present them as two subsections:

  • Deferred scope — known obligations left behind (work identified as needed during the ship run but consciously not done). These are action items for the team — not blockers for this PR, but things that should be tracked.
  • Surfaced opportunities — informed observations that emerged during implementation, review, or QA. Not obligations — context that would otherwise be lost after merge.

Render each item concisely (one bullet per item). Include the source phase when it adds useful context (e.g., "Phase 5 reviewer flagged"). Do not restate what's already in the Verification section's gaps — Deferred Scope and QA Coverage Gaps are distinct categories.

When no ship-summary.md exists: Derive future considerations from the diff and review context — items surfaced during review that are out of scope but worth tracking. Updated during the review loop as reviewers raise pre-existing or tangential issues.

Step 3: Apply

First, verify gh CLI is available (gh auth status). If unavailable, output the PR body for the user (or the invoking skill) to apply manually — do not fail silently.

Draft vs full PR:

  • Headless mode ($ARGUMENTS includes --headless): Create a full (non-draft) PR. Do not ask.
  • Interactive mode (default): Ask the user whether they want a draft or a full PR before creating.

Dirty working tree check: Before pushing, run git status. If there are uncommitted changes:

  • Interactive mode: Show the user which files have uncommitted changes and ask whether they should be included in this PR. Stage and commit only what the user confirms.
  • Headless mode: Do not commit uncommitted files. Push only what is already committed on the branch. Note any uncommitted changes in the completion output — they may need manual attention.
  • Never stash, reset, or discard uncommitted changes. If the working tree state is too complex to resolve cleanly (e.g., merge conflicts, mixed staged/unstaged in the same file), stop and report the situation rather than attempting to fix it.

Creating a new PR:

git push -u origin <branch>
gh pr create [--draft] --title "<concise title>" --body "$(cat <<'EOF'
<filled-in PR body>
EOF
)"

Include --draft only if the user chose draft (interactive) or omit it entirely (headless).

Updating an existing PR:

gh pr edit <number> --body "$(cat <<'EOF'
<updated PR body>
EOF
)"

When updating, rewrite the full body to reflect current reality. Do not patch individual sections — the body is stateless.


When invoked by other skills

When /review-cloud or another skill delegates PR body work:

  • Accept any context they provide (SPEC.md path, PR number, QA results, review feedback).
  • Return the filled-in PR body for them to apply, or apply it directly if a PR number is available.
  • The invoking skill decides *when* to update the PR body; this skill handles *how*.
  • After /ship: The developer invokes /pr after pushing the branch and creating a PR. /ship produces code, tests, docs, and local review — the developer handles PR creation. Check tmp/ship/ for artifacts: qa-progress.json (QA results), review-output.md (local review summary), screenshots/ (QA evidence), ship-summary.md (deferred scope and surfaced opportunities from the ship run).

Calibrating depth

Match PR body depth to what changed:

What changedPR body depthVerification depth
New feature, all scenarios validated, no gapsAll sectionsStory table + verified list (compact)
New feature, some blocked/failed/gapsAll sectionsStory table + verified list + needs-verification list + gaps sub-section (full)
Enhancement, few scenariosSummary, verification. Key decisions if design choices were made.Flat verified/needs-verification lists (no story table)
Bug fixSummary, verification.Flat list only
Config / infra / refactorSummary only."No manual QA performed."

After PR creation

Keeping the body current

When you push subsequent commits to this branch in the same session (fixes, reviewer feedback, QA improvements, polishing), re-invoke /pr to refresh the body before the conversation ends. The PR body is a stateless snapshot of current scope — a stale body forces reviewers to re-derive context from the diff, defeating the purpose. Not every trivial fix requires a refresh (typo fixes, lint cleanup), but any change that alters what the PR does, what was tested, or what decisions were made warrants an update.

Offer review-cloud

Ask the user: "Would you like me to monitor and auto-address cloud reviewer feedback using /review-cloud?"

Wait for the user's response. Do not invoke /review-cloud automatically.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.09%
按下载量换算95

Claude

31.08%
按下载量换算85

Cursor

17.56%
按下载量换算48

Gemini CLI

9.06%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills