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

FSWP QAエンジニア

プラグイン・テーマの検証(機械的ゲート、手動チェックリスト、シナリオテスト、リリース前チェック)を実行し、PASS/FAIL/NOT RUNを報告します。

FSWP QAエンジニア とは?

このスキルは、フルスタックWordPress開発における品質保証(QA)エンジニアとして機能します。fswp-developerがビルド後および納品前に呼び出し、任意のプラグイン・テーマフォルダを監査するために直接利用することもできます。主な役割は、機械的ゲート(シェルスクリプト、PHP lint、PHPCS(WordPress-Extra)、PHP互換性チェック、PHPStan(WordPressスタブ、レベル5))、スコープクリープチェック、手動チェックリスト、PRDや変更概要に基づくシナリオテスト、リリース前チェックを実行することです。各チェックはPASS、FAIL、またはNOT RUNとして報告され、スキップされたチェックを合格とみなすことはありません。修正は行わず、最初に報告し、ルーターの修正ループで後続の修正を行います。プラグイン・チェックには実際のWordPressインストールとCLIが必要ですが、それ以外は標準的なPythonライブラリとシェルスクリプトで動作します。Theme Checkの同等機能も提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/syncwin/fswp-developer/tree/main/skills/fswp-qa-engineer

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

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

ドキュメント

FSWP QAエンジニア は何をしますか?

ビルド済みフォルダを検証し、ゲート中は修正しません。最初に報告し、ルーターの修正ループで修正します。

1. 機械的ゲート

bash scripts/setup_toolchain.sh              # 環境ごとに1回(apt + GitHubのみ、Composerは不要)
bash scripts/run_gate.sh <dir> [min-php] [--fix]

run_gate.shはテーマ(Theme Nameヘッダを持つstyle.css)を検出し、scripts/theme_check.pyを実行します。それ以外はscripts/qa_check.pyを実行します。どちらもPythonの標準ライブラリのみを使用し、常に動作します。さらに、PHPと該当ツールが存在する場合、以下を追加実行します: php -l、PHPCS WordPress-Extra(エラーは失敗、警告は一覧表示)、最小PHPバージョンに対するPHP互換性チェック、WordPressスタブを使用したPHPStanレベル5。

  • --fixは最初にphpcbf(WordPress標準)を実行します。スキャフォールディング後や大規模な編集後に使用し、差分を確認してください。
  • プラグインチェックにはWordPressインストールとコマンドライン(wp plugin check <スラッグ>)が必要です。それ以外の環境ではNOT RUNとなります。WordPress.orgにプラグインを提出する前にユーザーに実行するよう伝えてください。テーマの場合、同等の機能はTheme Checkプラグインまたはディレクトリの自動レビューです。
  • theme_check.py <dir> [--directory]: フラグなしの場合、実際の欠陥はFAIL、ディレクトリ専用ルールはWARNとなります。--directoryを付けると、WordPress.orgテーマディレクトリの要件(欠落ヘッダ、スクリーンショットのサイズとアスペクト比、禁止ファイル、プラグイン領域コード、必須クラシックテーマの呼び出し)がFAILになります。
  • qa_check.pyはプラグインヘッダとreadmeのルール(説明文の長さ、一意のプラグインURI、最大5つのタグ、Stable tag: trunk禁止、数値のTested up to、短い説明の長さ)をハンドブックから警告としてチェックします。
  • qa_check.pyはプラグインに対して以下を強制します: ABSPATHガード、バージョン一致(ヘッダ、定数、readme安定版タグ)、example.comやCDNまたはホストされたフォントの禁止、すべてのルートに対するpermission_callback(コメントアウトされた__return_true付き)、DBアップグレードチェック、コールバック内でのエンキュー、禁止関数、アンインストールガード、remのみのユニット、JS翻訳、ソースとコンパイル済み出力の同梱、フォントライセンス。theme_check.pyはヘッダ、ライセンス、エントリーテンプレート、theme.jsonの妥当性、禁止関数、エスケープされないechoのヒューリスティック、リモートアセット、テキストドメイン、スクリーンショットとreadmeをチェックします。

報告ルール: すべてのチェックはPASS、FAIL、またはNOT RUNで、使用したツールバージョンと共に報告します。NOT RUNは決して合格とみなされず、「クリーン」と要約されることもありません。PHPまたはツールが不足している場合は、その旨と実行すべきコマンド名を記述してください。

1a. スコープチェック

差分またはファイルリストを承認された概要と比較します。計画で要求されていないファイル、フック、オプション、依存関係はスコープクリープとして報告されます(fswp-developer/references/lean-coding.md参照)。追加行と削除行をカウントし、不均衡についてコメントします。

2. 手動チェックリスト

references/checklist.md: スクリプトで判断できない項目のみ。機械的ゲートがグリーンになった後に実行します。

3. シナリオテスト

PRD(fswp-architect)内の番号付きシナリオごとに、PASS、FAIL、またはNOT RUNを証拠とともに取得します。以下を必ず含めてください:

  • 以前のオプションやテーブルがない状態での新規インストール: 通知や致命的エラーなし。
  • 非アクティブ化して再アクティブ化: 重複したスケジュールやオプションなし。
  • 以前のバージョンの保存データから再アクティブ化せずにアップグレード: スキーマとオプションが読み込み時に移行されること。
  • アンインストール: プラグイン所有のデータのみ削除されること。
  • 移行モード: baseline/(fswp-architect)に対するエクスポート差分とビジュアルリグレッションゲート。

作業タイプ別に以下を追加:

  • テーマ: PRDにリストされているすべてのテンプレートタイプが実際のコンテンツと空のコンテンツの両方でレンダリングされること。エディタとフロントエンドが一致すること。キーボードのみのナビゲーションが機能すること。テーマの切り替えと元に戻しで致命的エラーが発生しないこと。
  • 更新: 変更概要のパリティリストの全項目が再チェックされマークされていること。以前のバージョンの保存データからのアップグレードが機能すること。概要以外に変更がないこと(差分確認)。
  • アドオン: ホストがアクティブで範囲内(動作する)。ホストが非アクティブ(アドオンは静観、通知を表示、致命的エラーなし)。ホストがサポートバージョン未満(明確に拒否)。
  • コアパッチ: チケットの再現がパッチ前は失敗し、パッチ後は成功すること。該当するPHPUnitグループがパスすること。変更行でPHPCSがクリーンであること。fswp-core-contributorを参照。

PHPが実行可能な環境では、アクティベーションと移行ロジックを小さなPHPスクリプトで実行します。それ以外の場合は読み取りによってトレースし、「トレース済み、未実行」とラベル付けします。

4. リリースチェック

上記すべてがグリーンになった後: references/release-check.md

出力

1つのテーブル: チェック | PASS/FAIL/NOT RUN | 詳細。次にFAILリスト(ファイルと行番号付き)、次にユーザー自身が実行する必要のあるもの。マルチセッションビルドの場合は、テーブルをHANDOFF.mdにコピーします。

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-reviewer

Independent review stage of Full-Stack WP Developer. Reviews a finished WordPress plugin, theme, add-on, or Core patch through a security lens (WordPress-specific vulnerabilities, REST and AJAX authorization with an API risk map, AI-generated-code risks), a quality lens (error handling, data and upgrade safety, performance, i18n, accessibility, comment accuracy, test gaps, class and type design, scope), and an optional lean lens for trimming over-engineering, reporting only high-confidence findings in a fixed format. Invoked by fswp-developer after the verify gate, normally through the fswp-code-reviewer agent; consult directly to review or optimize any WordPress code.

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.

関連スキル