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

wtf.pr-reviewWTF 公关评论

Agent Skill

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

总安装

212

周安装

9

GitHub Stars

3

下载量

74
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/xiduzo/wtf --skill wtf.pr-review

简介

wtf.pr-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 它支持基于关键词、任务场景或来源线索进行信息聚合与过滤,适用于 Pull Request 评审相关研究。
  • 通过 npx skills add 命令从 GitHub 仓库安装,具体用法需结合原始 README 进一步确认。
  • 安装前请核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

PR Review

Review a pull request as a tech lead. Core value: reads the diff against the linked Task spec (Gherkin, Contracts, Impacted Areas) to catch spec drift, missing test coverage, and contract violations before merge — not by running the software, but by reading the code.

Distinct from wtf.verify-task: wtf.verify-task is a QA engineer running the implemented behavior against Gherkin scenarios (does the software do what it says?). This skill is a developer reviewing the code itself (is the code written correctly against the spec?).

Process

0. GitHub CLI setup

Run steps 1–2 of ../references/gh-setup.md. Stop if gh is not installed or not authenticated.

1. Identify the PR

If a PR number was passed in, use it directly. Otherwise:

gh pr list --state open --json number,title,headRefName --limit 20

Call AskUserQuestion with question: "Which PR are you reviewing?", header: "PR", and options pre-filled from open PRs.

Fetch the PR:

gh pr view <pr_number> --json number,title,body,headRefName,baseRefName,additions,deletions,changedFiles

2. Fetch the spec hierarchy

Try to extract a Task number from the PR body (Closes #<n> or Fixes #<n>). If found, fetch the full spec hierarchy:

gh issue view <task_number>    # Gherkin, Contracts, Impacted Areas, DoD
# Extract feature and epic numbers, then in parallel:
gh issue view <feature_number> # ACs, user stories
gh issue view <epic_number>    # Goal, constraints

If no Task number is found, call AskUserQuestion with question: "Is there a Task issue linked to this PR?", header: "Linked task", and options: [{label: "No linked task", description: "Review from diff only"}, {label: "Yes — I'll provide the number", description: "Enter the task issue number"}].

If there is no linked Task, the review proceeds from diff context alone (step 4 will note the absence of a spec as a finding).

3. Load the technical steering document

Use the Read tool to attempt reading docs/steering/TECH.md. Apply its patterns, constraints, and conventions as the baseline for code quality judgements throughout this review.

4. Inspect the diff

git diff <base_branch>...<pr_branch> --stat
git diff <base_branch>...<pr_branch>

Read the full diff. Note:

  • Which files changed and which layers they touch
  • What was added vs. removed vs. moved
  • Whether the changes stay within the Impacted Areas listed in the Task

5. Run the review checklist

Evaluate each dimension. Record findings as PASS / FAIL / WARN per item.

a. Spec adherence

For each Gherkin scenario in the Task:

  • Is there a test that covers this scenario? (search test files for scenario name or equivalent describe/it block)
  • Does the implementation match the Given/When/Then behavior — not just passing the test, but structurally doing what the scenario describes?

Flag: missing test for a scenario, test present but testing the wrong behavior, implementation that bypasses the scenario entirely.

b. Contract compliance

For each entry in the Task's Contracts & Interfaces section:

  • Does the code implement exactly the specified shape? (field names, types, optionality)
  • Are there any added fields not in the spec (scope creep)?
  • Are any specified fields missing from the implementation?

Flag: schema drift, extra fields, missing fields, wrong types.

c. Impacted Areas

Cross-reference the Task's Impacted Areas list against the actual changed files:

  • Unexpected files changed outside the listed areas (scope creep signal)
  • Listed areas with no changes (may indicate incomplete implementation)

d. Code quality against TECH.md

Review changed code against the patterns and constraints in docs/steering/TECH.md:

  • Naming conventions (domain language vs. generic names)
  • Layer separation (e.g. business logic in wrong layer)
  • Error handling patterns
  • Function length and nesting (flag >40 lines or deep nesting as a warning, not a blocker)

e. Test coverage

  • Are there tests for the happy path AND at least one error/edge path per public function changed?
  • Does the test file pattern match the project convention (from TECH.md)?
  • Are there any skip, todo, or commented-out assertions in the new tests?

f. Definition of Done

Check the Task's DoD checklist against the diff:

  • Are all DoD items evidenced in the diff or existing code?

6. Summarise findings

Produce a structured review summary:

PR Review — #<pr_number>: <title>
───────────────────────────────────────────────
Linked task: #<n> | Spec coverage: [n/n scenarios covered]

PASS  Spec adherence     — all [n] scenarios have matching tests
WARN  Contract compliance — `paymentId` field missing from response shape (Task spec: required)
PASS  Impacted Areas     — changes within declared scope
WARN  Code quality       — `processSettlement()` is 58 lines (threshold: 40)
PASS  Test coverage      — happy path + 2 error paths
FAIL  DoD                — "Observability: metrics emitted" not evidenced in diff

Verdict: REQUEST CHANGES
───────────────────────────────────────────────
Required (blocking merge):
  1. [Contract] Add `paymentId` to settlement response — Task spec requires it (Contracts §2)
  2. [DoD] Emit the `settlement_processed` metric — listed as required in Task DoD

Suggested (non-blocking):
  3. [Quality] Extract `processSettlement()` into smaller functions — currently 58 lines

Verdicts:

  • APPROVE — no blocking findings
  • APPROVE WITH COMMENTS — suggestions only, nothing blocking
  • REQUEST CHANGES — one or more FAIL items that must be resolved before merge

7. Review with user

Show the summary. Then call AskUserQuestion with:

  • question: "Does this look right? Should I post this as a GitHub PR review?"
  • header: "Post review"
  • options: [{label: "Post it", description: "Submit as a GitHub PR review comment"}, {label: "I have edits", description: "I want to adjust before posting"}, {label: "Don't post — just the summary", description: "Keep it in the conversation"}]

Apply any edits, then proceed.

8. Post the review

gh pr review <pr_number> \
  --<approve|request-changes|comment> \
  --body-file /tmp/wtf.pr-review-<pr_number>-body.md

Use:

  • --approve for APPROVE or APPROVE WITH COMMENTS
  • --request-changes for REQUEST CHANGES
  • --comment if the user chose "Don't post — just the summary" but then changed their mind

Print the PR URL.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

37.09%
按下载量换算27

Claude

28.76%
按下载量换算21

Cursor

16.11%
按下载量换算12

Gemini CLI

8.68%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills