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

FSWP メンテナー

既存のWordPressプラグインやテーマを壊さずに更新、修正、リファクタリング、アップグレードするスキルです。また、自社所有でない製品向けのアドオン(WooCommerce拡張、ページビルダー要素、他プラグインの拡張)をフックのみを使って安全に構築します。

FSWP メンテナー とは?

このスキルは、Full-Stack WP Developer フレームワークにおいて、既存のWordPressプラグインやテーマのメンテナンスを担当します。「既存コードが仕様」という前提のもと、fswp-architect から承認された変更指示書を実行します。 主に2つのモードがあります。**モードA**は既存プラグイン/テーマの直接更新で、バグ修正や機能追加、アップグレードパスの提供、セキュリティチェック、互換性維持、変更ログの更新までを一貫して行います。**モードB**は、自社所有でない製品(例:WooCommerce、人気ページビルダーなど)向けのアドオンプラグインを作成します。この場合、ホスト製品のファイルを直接編集せず、公開API(アクション/フィルター/RESTルート)のみを使って拡張し、依存関係の宣言や実行時チェック、データ所有権の分離を徹底します。 変更は常に最小限に抑え、公開インターフェースの後方互換性を保護し、非推奨化プロセスを経てから削除します。テーマの場合は子テーマを優先し、親テーマやサードパーティファイルの直接編集は避けます。最終的にパッチまたはZIPとして納品し、fswp-qa-engineer による検証に引き継ぎます。

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

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

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

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

ドキュメント

FSWP メンテナー は何をしますか?

基本(常に適用): fswp-developer/references/lean-coding.md(少なく書き、再利用を優先)、fswp-developer/references/coding-standards.md(コーディング規約、ドキュメント、国際化、アクセシビリティ)、および fswp-security-engineer(入力、出力、認可)。

既存コードが仕様です。fswp-architect から承認された変更指示書(detect_wp_project.py は実行済み)を実行します。安全性に問題がない限り、プロジェクト自身の規約に従ってください。ハウステンプレートは新規プロジェクト用であり、他人のスタイルを書き換えるためのものではありません。

モードA:既存のプラグインまたはテーマを更新する

  1. まず読む。 変更が及ぶファイル、その呼び出し元、テストを読みます。プレフィックス、命名規則、エラーハンドリングのスタイル、設定やデータの保存方法を把握します。
  2. 再現する。 バグの場合は手順と観測結果を書き留め、変更前に障害を確認します。機能追加の場合は承認基準を明記します。
  3. 動作する最小の変更。 原因を共有コード内で修正し、一つの呼び出し箇所だけを直さないでください。手をつけていないコードを再フォーマットしないでください。ノイズの多い差分は実際の変更を隠し、git blame を壊します。
  4. 公開インターフェースを保護する。 フック名、関数名・クラス名、オプションキー、メタキー、RESTルートとその形式、ショートコード属性、テンプレートオーバーライドは契約です。変更する場合は、まず非推奨化を行います。古いものを動作させたまま、_deprecated_function() / _deprecated_hook()(または _deprecated_argument())を呼び出し、代わりをドキュメント化し、少なくとも次のメジャーバージョンより前に削除しないでください。
  5. アップグレードパス。 データやスキーマが変わる場合:保存されたバージョンオプションをバンプし、アクティベーション時だけでなく読み込み時にもマイグレーションを実行し、冪等にし、再アクティベーションせずに前のバージョンのデータからアップグレードするテストを行います。
  6. 互換性。 宣言された「Requires at least」と「Requires PHP」を尊重します。新しい関数は function_exists() / バージョンチェックでガードするか、意図的に最小要件を引き上げてその旨を明記します。
  7. 手をつけたコードにセキュリティパス(fswp-security-engineer)を適用します。バグ修正が、認可、ノンス、サニタイズ、エスケープなしで新しいエントリポイントを追加してはなりません。
  8. バージョンと変更ログ。 修正 = パッチ、機能 = マイナー、破壊的 = メジャー。プラグイン/テーマのバージョン、定数、readme.txt の Stable tag、変更ログをまとめて更新します。
  9. 納品は、ユーザーが作業するリポジトリ用のパッチまたは差分、またはファイルをデプロイする場合はZIPとして行います。パリティチェックリストの結果を含めます。

テーマ:更新を受け取る親テーマを直接編集するよりも子テーマまたは theme.json / スタイルバリエーションの変更を優先します。親テーマやサードパーティのプラグインファイルへの直接編集は、次のアップデートで失われます。

モードB:自社所有でない製品向けアドオン

アドオンは、ホストを拡張する独立したプラグイン(または小さなテーマレイヤー)です。fswp-plugin-developer(手順1~3と8)で構造化し、次に以下のルールを適用します。

  1. ホストの公開APIを通じて拡張する。 ドキュメント化されたアクション、フィルター、レジストリ、RESTルートを使用します。ホストファイルを編集せず、内部(private または undocumented とマークされたもの)を呼び出すのを避けてください。どうしても必要な場合は、1つのアダプタークラスに隔離してガードします。
  2. 依存関係を宣言する。 ホストが WordPress.org にある場合は、ヘッダーに Requires Plugins: host-slug を追加します(WordPress 6.5以降で強制)。ランタイムでも検出します。クラス、関数、定数、またはバージョン定数をチェックし、プラグインファイルのパスではチェックしません。
  3. 適切なタイミングで読み込む。 plugins_loaded(またはホスト自身の準備完了フック)で、ホストの存在を確認してから初期化します。ホストのレジストリフックで登録し、それより前では行いません。
  4. 静かに、明確に失敗する。 ホストがない、またはバージョンが古すぎる場合:それ以上何もせず、何が必要かを説明する管理画面通知を一つ表示し、決して致命的エラーを起こしません。
  5. バージョン範囲。 readme と計画書に対応ホストバージョンを明記します。サポートする最小バージョンと最新バージョンでテストします。
  6. 互換性の宣言。 一部のホストは機能サポートの宣言を要求します。例:WooCommerce は拡張機能に対して High-Performance Order Storage およびブロックベースのカートとチェックアウトとの互換性を宣言することを期待します。ホストの開発者向けドキュメントを読んで現在の宣言方法を確認します。
  7. データの所有権。 データは自身のプレフィックスで保存します。ホストのテーブルやオプションに書き込まないでください。アンインストール時は自身のデータのみを削除します。
  8. ライセンスと命名。 名称はホストのブランドおよび商標ルールに従います。公式であると誤解させないよう、「for X」形式の説明的な名前を使用します。

検証

変更指示書のパリティリストと互換性テーブルをシナリオソースとして、fswp-qa-engineer に引き渡します。references/safe-change-checklist.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-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-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.

関連スキル