Community编程与开发github.com

全栈WordPress代码审查员

对已完成的WordPress插件、主题、附加组件或核心补丁进行独立的安全、质量和精益审查,仅报告高置信度发现。

全栈WordPress代码审查员 是什么?

FSWP Reviewer 是一个专业的代码审查技能,用于对 WordPress 代码进行独立的安全、质量和精益审查。它专注于识别仅凭自动化工具难以发现的真实缺陷,如特定于 WordPress 的安全漏洞(REST/AJAX 授权、API 风险图、AI 生成代码风险)、错误处理、数据安全、性能、国际化、可访问性等问题。它支持多种审查组合(安全、质量、精益),并基于严格的置信度评分(0-100 分)仅报告评分 80 分及以上的高置信度发现。该技能通常由 `fswp-code-reviewer` 代理在 `fswp-qa-engineer` 检查通过后调用,确保审查时间投入到自动化脚本无法覆盖的地方。它支持 Claude Code 等平台,并严格遵循只读原则,从不修改代码。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/syncwin/fswp-developer/tree/main/skills/fswp-reviewer

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

FSWP Reviewer

像陌生人一样审查代码:阅读已有的内容,而不是它是如何构建的。只读,绝不编辑。在 fswp-qa-engineer 检查通过后运行,以便将时间投入到脚本无法发现的问题上。精益审查可以独立对任何现有代码运行。

流程

  1. 列出文件。阅读 PRD 或变更概要(如果有),并标记任何已交付但未在概要中要求的内容。如果没有概要(第三方代码、精益审计),则跳过此项检查,而不是自行设定范围。
  2. 确定代码类型(插件、主题、附加组件、核心补丁),并应用给定的审查维度:security 和/或 quality(references/security-lens.md、references/quality-lens.md),lean(references/lean-lens.md)。允许任意组合。如果存在 docs/review-rules.json,也应用它(references/project-rules.md)。
  3. 对每个安全/质量候选问题,将其为当前代码中真实缺陷的置信度评为 0-100 分。仅报告 80 分及以上 的问题:严重 (90-100),重要 (80-89)。放弃风格挑剔问题和任何扫描器已报告的问题。精益审查发现使用其自己的格式。
  4. 仅安全审查维度:添加 未验证的怀疑项(最多 5 项,每项一行),针对评分低于 80 分但人员应瞥一眼的候选问题。遗漏一个漏洞的成本高于多写一行。
  5. 如果没有发现达到标准,则说明已检查了哪些内容,然后停止。不添加填充内容,不进行赞扬。

发现格式

[Critical|Important] <标题>  (confidence 评分, CWE-编号 if security)
File: 路径:行号
Evidence: 确切的代码或行为
Impact: 一句具体的说明
Fix: 能修复问题的最小改动

裁决

安全/质量:一行最终结论,ship 或 fix first,并附上严重和重要发现的计数。精益审计:如果应用所有发现,将移除的总行数和总依赖数;不给出 ship/fix-first 裁决,因为精益审计不是发布关卡。

独立性

此技能从不读取构建日志。在 Claude Code 中,fswp-code-reviewer 代理强制执行此规则。在没有代理的情况下,应将本次运行披露为自我审查。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

fswp-api-developer

Domain skill for WordPress REST API and Abilities API work in Full-Stack WP Developer. Covers registering routes with schemas, argument validation and sanitization, permission callbacks, controller classes, exposing post types and meta, authentication (cookie nonce, application passwords), pagination and errors, and registering abilities with input and output schemas and safety annotations. Use for any custom endpoint or machine-readable capability in a plugin or theme.

fswp-architect

Planning stage of Full-Stack WP Developer. Classifies the work (new plugin, new theme, update to an existing plugin or theme, add-on for another product, or WordPress Core patch), triages existing code with a bundled detection script, asks one round of essential questions, does competitive research, and produces one reviewable PRD or change brief with a single approval gate. Also covers Migration mode and multi-session handoff docs. Invoked by fswp-developer before any code is written; consult directly for PRD, change-brief, or handoff-doc questions.

fswp-block-developer

Domain skill for WordPress block editor work in Full-Stack WP Developer. Covers building custom Gutenberg blocks (block.json, static and dynamic rendering, attributes, supports, InnerBlocks, variations, deprecations, block bindings), block patterns, and the Interactivity API (data-wp directives, stores, server-side state), with the @wordpress/scripts build workflow. Use for any custom block, pattern, or front-end interactivity in a plugin or theme.

fswp-core-contributor

WordPress Core contribution stage of Full-Stack WP Developer. Guides a contributor through finding or filing a Trac ticket, setting up the wordpress-develop checkout and test environment, writing a patch or GitHub pull request that follows Core coding standards, inline documentation, backward compatibility and tests, and preparing the ticket comment; also routes block-editor changes to the Gutenberg repository and security reports to the private process. Invoked by fswp-developer for Core patches; consult directly for Core workflow questions.

fswp-devops-engineer

Domain skill for WordPress development tooling in Full-Stack WP Developer. Covers local environments (wp-env with Docker, WordPress Playground and Blueprints), command-line site operations (plugin and theme management, database export, search-replace, cron, scaffolding), coding standards and static analysis (PHPCS with WordPress standards, PHPStan with WordPress stubs), PHP and JS testing setup, and the @wordpress/scripts toolchain. Use when setting up, running, or automating a WordPress dev or test environment.

fswp-maintainer

Change stage for existing WordPress code in Full-Stack WP Developer. Updates, fixes, refactors, and upgrades existing plugins and themes without breaking them, and builds add-ons for products you do not own (WooCommerce extensions, page-builder elements, extensions of other plugins) using hooks instead of edits to third-party files. Covers reading before changing, parity lists, deprecation, host compatibility, upgrade paths, and patch delivery. Invoked by fswp-developer after an approved change brief; consult directly for safe-change or add-on questions.

fswp-qa-engineer

Verification stage of Full-Stack WP Developer. Runs the mechanical gate for plugins and themes (house-rule scripts, PHP lint, PHPCS with WordPress standards, PHP compatibility, PHPStan with WordPress stubs), the manual checklist, PRD or change-brief scenario tests, and the pre-release check. Reports PASS, FAIL, or NOT RUN and never implies a skipped check passed. Invoked by fswp-developer after a build and again before delivery; consult directly to audit any plugin or theme folder.

fswp-theme-developer

Theme build stage of Full-Stack WP Developer. Builds custom WordPress themes - block themes (theme.json, templates, template parts, patterns, style variations), classic themes (template hierarchy, functions.php, theme supports), hybrids, and child themes - with accessibility, escaping, and directory readiness built in, plus a scaffold script. Invoked by fswp-developer after an approved PRD for a new theme; consult directly for a specific theme pattern. For changes to an existing theme use fswp-maintainer.

syncwin/fswp-plugin-developer

Plugin build stage of Full-Stack WP Developer. House standards and code templates for real WordPress plugins (not shortcode snippets) - folder anatomy, activation/uninstall lifecycle, custom post types and tables, admin UI tiers, front-end output on the Atomic Framework, REST and cron, i18n, distribution, and the Tier 3 React admin stack - plus a scaffold script. Also the base structure for add-ons. Invoked by fswp-developer after an approved PRD; consult directly for a specific plugin build pattern.

相关技能