Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

pr-polish公关抛光

Agent Skill

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

总安装

192

周安装

8

GitHub Stars

8

下载量

64
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill pr-polish

简介

pr-polish 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • pr-polish 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/pr-polish

Holistic quality elevation for a PR that already works.

Role

Staff engineer doing a retrospective pass. Not finding bugs — asking "would we build it the same way starting over?"

Objective

Elevate PR $ARGUMENTS (or current branch's PR) from "works" to "exemplary": clean architecture, solid tests, current docs.

Precondition Gate

Before starting, verify:

gh pr view $PR --json mergeable,statusCheckRollup,reviewDecision

Requirements:

  • No merge conflicts
  • CI green
  • No unaddressed critical review feedback

If any fail: Tell user to run /pr-fix first. Do not proceed.

Workflow

1. Context

Read everything about this PR:

gh pr view $PR --json body,commits,files
gh pr diff $PR

Read linked issue(s). Read commit history. Understand the full arc of what was built and why.

2. Hindsight Review

Launch hindsight-reviewer agent via Task tool.

Key question: "Knowing what we know now — the final shape of the code, the edge cases discovered, the patterns that emerged — would you build it the same way?"

Feed it: full diff against main, PR description, linked issue.

Expect back: architectural observations, naming concerns, abstraction boundaries, missed simplifications.

3. Refactor

Invoke /refactor for findings that are addressable now:

  • Naming improvements
  • Shallow module consolidation
  • Unnecessary abstraction removal
  • Code path simplification

For architectural findings that require broader changes: create GitHub issues.

gh issue create --title "[Arch] Finding from PR #$PR hindsight review" --body "..."

3.5. Simplify

Invoke /simplify on the PR's changed files.

The code-simplifier agent reviews recently modified code for clarity, consistency, and maintainability — complementing the architectural lens of hindsight review with line-level refinement:

  • Reduce unnecessary complexity and nesting
  • Eliminate redundant abstractions
  • Improve naming clarity
  • Consolidate related logic
  • Remove obvious comments

This catches things the refactor step doesn't: verbose patterns, inconsistent style, overly compact one-liners, nested ternaries.

4. Test Audit

Review test coverage for the PR's changed files. Look for:

  • Missing edge cases
  • Error path coverage
  • Behavior tests (not implementation tests — per /testing-philosophy)
  • Boundary conditions
  • Integration gaps

Write missing tests. Each test should justify its existence — no coverage-padding.

5. Documentation

Invoke /update-docs for anything the PR affects:

  • ADRs for architectural decisions made during implementation
  • README updates for new features or changed behavior
  • Architecture diagrams if module boundaries changed
  • API docs if endpoints changed

6. Quality Gates

Invoke /check-quality and run project verification:

pnpm typecheck && pnpm lint && pnpm test

All gates must pass. Fix anything that doesn't.

7. Update PR Description with Before / After

Edit the PR body to include (or update) a Before / After section documenting the polish pass:

gh pr edit $PR --body "$(current body + before/after section)"

Text (MANDATORY): Describe the state before polish (e.g., "working but with shallow modules and missing edge-case tests") and after (e.g., "consolidated modules, 12 new edge-case tests, updated architecture docs").

Screenshots (when applicable): Capture before/after for any visible change — refactored UI output, improved error messages, updated docs pages. Use ![before](url) / ![after](url).

Skip screenshots only when all polish was purely internal (refactoring with no visible output change).

7.5 Diagram Audit

Check PR body for visual communication:

gh pr view $PR --json body | jq -r '.body'
  • Does the PR body have a ## What Changed Mermaid diagram?
  • If no, and the change involves logic/architecture/data flow: generate one using ~/.claude/skills/visualize/references/github-mermaid-patterns.md
  • If yes: validate it accurately reflects the final state (diagrams drift during review)
  • Add or update diagram in PR body: gh pr edit $PR --body "$(updated body)"

Omit only when the change is purely internal with no branching or relationships.

8. Refresh Glance Summaries (Conditional)

If this PR added, removed, or significantly restructured directories:

glance   # run from repo root — skips up-to-date directories automatically

Do NOT pass -force. Glance handles intelligent regeneration based on existing .glance.md files. Only affects directories that changed.

Commit any updated .glance.md files with the PR branch.

9. Codify (Optional)

If patterns or learnings emerged during this polish pass, invoke /distill to capture them as permanent knowledge (hooks, agents, skills, CLAUDE.md entries).

Skip if nothing novel surfaced.

Agent Teams Mode

For large PRs (>500 line diff), parallelize phases 3-5:

TeammateTask
Refactorer/refactor on hindsight findings
Simplifier/simplify on changed files
Test writerTest audit + write missing tests
Doc updater/update-docs

Lead sequences: hindsight first (all teammates need its output), then parallel work, then quality gates.

Anti-Patterns

  • Polishing a PR that doesn't work yet (use /pr-fix first)
  • Architectural refactors in a polish pass (create issues instead)
  • Adding tests for coverage percentage instead of confidence
  • Documenting obvious mechanics instead of non-obvious decisions
  • Skipping hindsight and jumping straight to refactoring

Output

Summary: hindsight findings, refactors applied, issues created, tests added, docs updated, quality gate results, learnings codified.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.25%
按下载量换算22

Claude

32.29%
按下载量换算21

Cursor

18.82%
按下载量换算12

Gemini CLI

9.28%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills