Communityコーディング&開発github.com

FSWP レビュアー

WordPress プラグイン、テーマ、アドオン、コアパッチをセキュリティ、品質、リーンの観点からレビューし、確信度の高い指摘のみを固定フォーマットで報告する独立したレビューステージです。

FSWP レビュアー とは?

FSWP レビュアーは、フルスタック WordPress 開発パイプラインにおいて、`fswp-developer` が実装したコードを検証する独立したレビューステージです。セキュリティレンズでは、WordPress 固有の脆弱性、REST/AJAX 認可のリスクマップ、AI 生成コード特有のリスクを評価し、品質レンズではエラーハンドリング、データ安全性、アップグレード安全性、パフォーマンス、国際化、アクセシビリティ、コメントの正確性、テストの不足、クラス設計、スコープなどをチェックします。また、リーンレンズを使えば過剰設計を削る提案もできます。確信度が 80 以上の指摘のみを報告し、それ未満でもセキュリティに限り最大 5 つの未確認疑念を記載します。Claude Code や Cursor などの AI エージェントと連携し、`fswp-code-reviewer` エージェントを通じて呼び出されることが多いですが、単体で任意の WordPress コードのレビューや最適化にも使用できます。

対応✓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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

FSWP レビュアー は何をしますか?

コードを見知らぬ人のように読みなさい:どのように構築されたかではなく、そこに何があるかを読むのです。読み取り専用。編集は決して行わないでください。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 以上のみを報告します:Critical(90-100)、Important(80-89)。スタイル上の些細な指摘や、スキャナーが既に報告するものは除外します。リーン指摘は独自のフォーマットを使用します。
  4. セキュリティレンズのみ:80 未満の候補について、人間が一目見るべき未確認疑念(最大5つ、各1行)を追加します。脆弱性を見逃すことは、余分な行を追加することよりもコストがかかります。
  5. 基準を満たすものが何もない場合は、チェックした内容を述べて停止します。パディングや賞賛は不要です。

指摘フォーマット

[Critical|Important] <タイトル>  (確信度 NN、セキュリティの場合は CWE-NNN)
File: パス:行
Evidence: 正確なコードまたは動作
Impact: 具体的な文1つ
Fix: それを閉じる最小の変更

判定

セキュリティ/品質:最終行1行で ship または fix first と、Critical および Important の件数を記載します。リーン監査:全ての指摘が適用された場合に削減される総行数と依存関係数。リーン監査はリリースゲートではないため、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.

関連スキル