Token导航 LogoToken导航

Agent Skill · 研究检索

wp-pr-review(WP 公关审查)

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

wp-pr-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,323。

总安装 188周安装 8GitHub Stars 11下载 66核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/parhumm/jaan-to --skill wp-pr-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

该技能用于 WordPress Pull Request 的审查与筛选,提升协作效率。适用于 Codex、Claude、Cursor、Gemini CLI 中需要快速定位 PR 相关信息的场景。基于关键词或任务线索进行信息检索与结果过滤。通过 GitHub 仓库安装,使用前应确认权限与维护状态。

注意避免将工具输出直接作为最终结论,需人工复核关键内容。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

wp-pr-review 怎么安装?

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

wp-pr-review 支持哪些 AI 工具?

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

wp-pr-review 需要什么权限?

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

wp-pr-review 是免费的吗?

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

wp-pr-review 用的人多吗?

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

wp-pr-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
wp-pr-review

WP 公关审查 · 本页

18811需要联网未明确未通过

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

SKILL.md 原文

wp-pr-review

Review WordPress plugin pull requests for security, performance, standards, and compatibility.

Context Files

  • $JAAN_LEARN_DIR/jaan-to-wp-pr-review.learn.md - Past lessons (loaded in Pre-Execution)
  • $JAAN_TEMPLATES_DIR/jaan-to-wp-pr-review.template.md - Report output template
  • Research: $JAAN_OUTPUTS_DIR/research/67-wp-pr-review.md - Full research document
  • ${CLAUDE_PLUGIN_ROOT}/docs/extending/language-protocol.md - Language resolution protocol

Reference files (loaded on demand during review):

  • references/security-checklist.md - Sanitization, escaping, nonce, capability, DB security
  • references/performance-checklist.md - N+1 queries, autoload, unbounded queries, asset loading
  • references/standards-checklist.md - WPCS naming, Yoda, i18n, prefix, WP API usage
  • references/vulnerability-patterns.md - CVE patterns, grep commands, dangerous functions
  • references/addon-ecosystem.md - Hook contracts, API stability, schema changes

Output path: $JAAN_OUTPUTS_DIR/wp/pr/ — ID-based folder pattern.

Input

Arguments: $ARGUMENTS

Input modes:

  1. PR URL: https://github.com/owner/repo/pull/123 or https://gitlab.com/owner/repo/-/merge_requests/123
  2. Shorthand: owner/repo#123 (GitHub) or owner/repo!123 (GitLab)
  3. Local: local or empty — uses git diff main...HEAD on current repo

Pre-Execution Protocol

MANDATORY — Read and execute ALL steps in: ${CLAUDE_PLUGIN_ROOT}/docs/extending/pre-execution-protocol.md Skill name: wp-pr-review Execute: Step 0 (Init Guard) → A (Load Lessons) → B (Resolve Template) → C (Offer Template Seeding)

Language Settings

Read and apply language protocol: ${CLAUDE_PLUGIN_ROOT}/docs/extending/language-protocol.md Override field for this skill: language_wp-pr-review


PHASE 1: Analysis

Step 0: Parse Input and Detect Mode

Classify $ARGUMENTS:

PatternModeAction
https://github.com/.../pull/NGitHub URLExtract owner, repo, PR number
https://gitlab.com/.../-/merge_requests/NGitLab URLExtract owner, repo, MR number
owner/repo#NGitHub shorthandExtract owner, repo, PR number
owner/repo!NGitLab shorthandExtract owner, repo, MR number
local or emptyLocal diffUse current repo, git diff main...HEAD

Confirm to user:

"Review mode: {mode} | Target: {owner}/{repo} #{number}"

Step 1: Context Gathering

Read project configuration files to understand the plugin under review. For remote PRs, first fetch the PR metadata to understand the repo structure, then read available config files.

  1. Read composer.json (if exists) — PHP version constraints, dependencies, autoload config
  2. Read phpcs.xml.dist or .phpcs.xml (if exists) — WPCS config: text domain, prefix, minimum WP version
  3. Read phpstan.neon or phpstan.neon.dist (if exists) — static analysis level
  4. Read main plugin file — the file with Plugin Name: header. Extract: Requires at least, Requires PHP, Text Domain, Version, Requires Plugins

Store and display gathered context:

PROJECT CONTEXT
───────────────
Plugin Name: {name}
Text Domain: {text-domain}
Prefix: {prefix}
Min WP: {version}
Min PHP: {version}
PHPCS Standard: {standard} (or "none detected")
PHPStan Level: {level} (or "none detected")

Step 2: Diff Acquisition

Based on input mode, fetch the diff using a fallback chain.

2.1: Primary — Full Diff

GitHub:

gh pr view {number} --repo {owner}/{repo} --json files,additions,deletions,title,body
gh pr diff {number} --repo {owner}/{repo}

GitLab:

glab mr diff {number} --repo {owner}/{repo}

Local:

git diff main...HEAD
git log main..HEAD --oneline

If gh pr diff succeeds, proceed to 2.3.

2.2: Fallback — Paginated File List (GitHub only)

If gh pr diff fails (HTTP 406 or diff too large), use the REST API:

gh api repos/{owner}/{repo}/pulls/{number}/files --paginate --jq '.[].filename'

This returns filenames only. For each changed .php file, retrieve its patch:

gh api repos/{owner}/{repo}/pulls/{number}/files --paginate \
  --jq '.[] | select(.filename == "{file}") | .patch'

If individual patches are unavailable for a file, note it as "patch unavailable — grep-only review" and rely on Step 3 grep patterns against the file content.

Large PR batching: When a PR has more than 50 changed PHP files, process files in batches of 30 to reduce per-call context size. Complete analysis of each batch before loading the next.

2.3: Parse and Classify

Parse the diff (or file list from fallback) to identify:

  • List of changed .php files (primary review targets)
  • Other changed files (.js, .css, .json — note but don't deep-review)
  • Lines added/removed per file (mark "N/A" for fallback-acquired files)
  • Skip files in vendor/, node_modules/, .git/

Show summary:

"Diff acquired: {N} PHP files changed (+{additions} / -{deletions} lines)" If fallback was used: "Note: Used paginated API fallback — {N} files retrieved via REST endpoint" If batching active: "Large PR detected ({N} PHP files) — processing in batches of 30"

Step 3: Deterministic Security Scan

Read references/vulnerability-patterns.md for the grep pattern catalog.

Run grep patterns against changed PHP files ONLY. This is the high-signal, low-noise first pass.

Batching for large diffs: If the PR has more than 50 changed PHP files, split the file list into batches of 30 and run each grep pattern set per batch. Complete one batch fully before moving to the next. This prevents excessively large grep output from triggering connection resets.

CRITICAL patterns — run all of these:

  1. Superglobal access: $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE
  2. Database queries without prepare(): $wpdb->query, $wpdb->get_results, $wpdb->get_var, $wpdb->get_row, $wpdb->get_col — grep and check if prepare() is used
  3. Dangerous functions: unserialize, eval(, assert(, create_function, extract(, shell_exec, exec(, system(, passthru, popen
  4. REST routes: register_rest_route — check for permission_callback
  5. REST permissive callback: permission_callback.*__return_true
  6. AJAX handlers: wp_ajax_ — check for nonce and capability
  7. is_admin() misuse: Used as authorization instead of capability check

WARNING patterns — run these next:

  1. Unbounded queries: posts_per_page.*-1, nopaging.*true
  2. Hardcoded table prefix: Literal wp_options, wp_posts, etc. instead of $wpdb->prefix
  3. PHP functions instead of WP: wp_redirect without wp_safe_redirect, json_encode without wp_json_encode, file_get_contents, curl_init
  4. Direct header redirect: header( with Location

Store all grep matches with file paths and line numbers for contextual analysis in Step 4.

Step 4: Contextual LLM Analysis

For each grep match from Step 3, read the surrounding code context (5-10 lines before and after) and determine:

4.1: True/False Positive Filtering

  • Is this $_POST access actually sanitized on the same or next line?
  • Is this $wpdb->get_results() call using prepare() in the same statement?
  • Is this echo output properly escaped with esc_html(), esc_attr(), or wp_kses()?
  • Is this file_get_contents() for a local file (acceptable) or remote URL (not acceptable)?
  • Is this is_admin() used alongside current_user_can() (acceptable) or alone as auth (not acceptable)?

4.2: Standards Review

Read references/standards-checklist.md on demand. Check changed code for:

  • Naming convention violations (camelCase instead of snake_case)
  • Missing Yoda conditions in comparisons
  • Missing i18n on user-facing strings
  • Incorrect or missing text domain
  • Unprefixed public functions, classes, constants
  • Use of PHP functions where WordPress equivalents exist

4.3: Backward Compatibility

Check changed code for:

  • PHP 8.0+ syntax without version guards (named args, union types, match, nullsafe)
  • PHP 8.1+ syntax (enums, readonly, fibers)
  • PHP 8.2+ issues (dynamic properties, null to non-nullable params)
  • Named arguments on WordPress core functions (prohibited)
  • Use of deprecated WordPress functions

4.4: Performance Review

Read references/performance-checklist.md on demand. Check for:

  • Database queries inside loops (N+1 pattern)
  • update_option() without explicit autoload parameter for large data
  • Assets enqueued globally without conditional checks
  • Cron scheduling without duplicate check or deactivation cleanup
  • Missing transient/cache for expensive operations

4.5: Add-on Ecosystem Impact

Read references/addon-ecosystem.md on demand. If the PR modifies hooks, public methods, database schema, or option keys:

  • Are hook signatures preserved? (parameter count, order, types)
  • Are removed hooks properly deprecated with do_action_deprecated() / apply_filters_deprecated()?
  • Are public method visibility changes backward-compatible?
  • Are database schema changes additive (safe) or destructive (breaking)?
  • Is there a major version bump for breaking changes?

4.6: Assign Severity and Confidence

Severity classification:

ConditionSeverity
Security vulnerabilityCRITICAL
Data loss possibleCRITICAL
PHP fatal errorCRITICAL
Broken access controlCRITICAL
Significant performance degradationWARNING
Standards violation with functional impactWARNING
Backward compatibility breakWARNING
Missing i18n for user stringsWARNING
Style/formatting issue onlyINFO
Improvement suggestionINFO

Confidence scoring (0-100):

  • 90-100: Definitive pattern match with clear vulnerability (e.g., $wpdb->query() with direct $_POST concatenation)
  • 80-89: Strong signal with minor contextual uncertainty (e.g., missing escaping where context is mostly clear)
  • 60-79: Possible issue needing human judgment (FILTERED — do not include)
  • Below 60: Likely false positive (FILTERED — do not include)

Only include findings with confidence >= 80.


HARD STOP — Human Review Gate

Present the review summary:

PR REVIEW ANALYSIS COMPLETE
────────────────────────────────────
PR: {title} (#{number})
Repository: {owner}/{repo}
Files reviewed: {count} PHP files (+{additions} / -{deletions})

FINDINGS SUMMARY
────────────────
CRITICAL: {count} issues
WARNING:  {count} issues
INFO:     {count} issues
Filtered: {count} findings below confidence threshold

VERDICT: {APPROVE | REQUEST_CHANGES | COMMENT}

TOP FINDINGS (Preview)
──────────────────────
1. [{severity}] {title} — {file}:{line} (confidence: {score})
2. [{severity}] {title} — {file}:{line} (confidence: {score})
3. [{severity}] {title} — {file}:{line} (confidence: {score})
...

OUTPUT WILL CREATE
──────────────────
- $JAAN_OUTPUTS_DIR/wp/pr/{id}-{slug}/{id}-pr-review-{slug}.md
- Update $JAAN_OUTPUTS_DIR/wp/pr/README.md index

Verdict logic:

  • Any CRITICAL findings -> REQUEST_CHANGES
  • Only WARNING + INFO -> COMMENT
  • No findings above threshold -> APPROVE
"Generate full review report? [y/n]"

Do NOT proceed to Phase 2 without explicit approval.


PHASE 2: Generation

Step 5: Generate ID and Folder Structure

source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/id-generator.sh"
SUBDOMAIN_DIR="$JAAN_OUTPUTS_DIR/wp/pr"
mkdir -p "$SUBDOMAIN_DIR"
NEXT_ID=$(generate_next_id "$SUBDOMAIN_DIR")

Generate slug from PR: {pr-number}-{slugified-pr-title} (max 50 chars, lowercase, hyphens).

OUTPUT_FOLDER="${SUBDOMAIN_DIR}/${NEXT_ID}-${slug}"
MAIN_FILE="${OUTPUT_FOLDER}/${NEXT_ID}-pr-review-${slug}.md"

Preview:

Output Configuration - ID: {NEXT_ID} - Folder: $JAAN_OUTPUTS_DIR/wp/pr/{NEXT_ID}-{slug}/ - Main file: {NEXT_ID}-pr-review-{slug}.md

Step 6: Generate Review Report

Read template from $JAAN_TEMPLATES_DIR/jaan-to-wp-pr-review.template.md (if exists) or use the skill's built-in template.md.

Fill all sections:

  1. Executive Summary: 2-3 sentences with verdict and key finding highlights
  2. PR Metadata table: All gathered context from Step 1
  3. Findings by severity: CRITICAL first, then WARNING, then INFO

- Each finding includes: file path, line numbers, category, confidence score - CRITICAL findings MUST include both vulnerable code snippet AND fix suggestion - WARNING findings SHOULD include fix suggestion where applicable

  1. Review Categories: Security, Performance, Standards, Backward Compatibility, Add-on Impact
  2. Checklist Summary: Pass/Fail for each review subcategory
  3. Methodology: Review approach and confidence scoring explanation

Step 7: Quality Check

Before showing to user, verify:

  • All CRITICAL findings include both vulnerable code and fix suggestion
  • All included findings have confidence >= 80
  • File paths and line numbers are accurate to the diff
  • No findings from vendor/ or node_modules/ directories
  • No formatting-only issues that PHPCS would catch (indentation, spacing, brace style)
  • Verdict matches severity distribution (CRITICAL present = REQUEST_CHANGES)
  • Executive summary is factual and actionable
  • No generic PHP security advice — all recommendations use WordPress-specific functions

If any check fails, fix the report before preview.

Step 8: Preview and Write

Show the complete review report to user.

"Write review report? [y/n]"

If approved:

  1. Create output folder: mkdir -p "$OUTPUT_FOLDER"
  2. Write main output file to $MAIN_FILE
  3. Update subdomain index: source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/index-updater.sh" add_to_index \ "$SUBDOMAIN_DIR/README.md" \ "$NEXT_ID" \ "${NEXT_ID}-${slug}" \ "PR Review: {pr_title}" \ "{executive_summary_one_line}"
  4. Confirm: "Report written to: $JAAN_OUTPUTS_DIR/wp/pr/{NEXT_ID}-{slug}/{NEXT_ID}-pr-review-{slug}.md" "Index updated: $JAAN_OUTPUTS_DIR/wp/pr/README.md"

Step 9: Optional PR Comment (Second Hard Stop)

"Would you like to post this review as a comment on the PR?" This will post a public comment visible to all PR participants. [1] Post full review as PR comment [2] Post summary only (findings list without code snippets) [3] Skip — do not post

Do NOT post without explicit approval.

If user chooses option 1 or 2, format the review for the PR platform:

GitHub:

gh pr comment {number} --repo {owner}/{repo} --body "{formatted_review}"

GitLab:

glab mr comment {number} --repo {owner}/{repo} --message "{formatted_review}"

Confirm:

"Review posted as comment on {platform} PR #{number}."

Step 10: Capture Feedback

"Any feedback on the review? [y/n]"

If yes, invoke /jaan-to:learn-add wp-pr-review "{feedback}" to capture the lesson.


Skill Alignment

  • Two-phase workflow with HARD STOP for human approval
  • WordPress ecosystem-specific patterns
  • Template-driven output structure
  • Output to standardized $JAAN_OUTPUTS_DIR path

Definition of Done

  • Input parsed and mode detected
  • Project context gathered (plugin header, PHPCS config)
  • Diff acquired and changed files identified
  • Deterministic grep scan completed
  • LLM contextual analysis completed with confidence scores
  • User approved report generation (HARD STOP passed)
  • Report written to $JAAN_OUTPUTS_DIR/wp/pr/
  • Index updated
  • PR comment posted (if user opted in)

平台分布

Codex

33.18%
按下载量换算22

Claude

30.49%
按下载量换算20

Cursor

21.17%
按下载量换算14

Gemini CLI

10.68%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills