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

FSWP DevOps Engineer

WordPress開発ツールに関するドメインスキル。ローカル環境(Docker上のwp-env、WordPress PlaygroundとBlueprint)、コマンドライン操作(プラグイン・テーマ管理、データベースエクスポート、検索置換、cron、スキャフォールディング)、コーディング規約と静的解析(PHPCS+WordPress標準、PHPStan+WordPressスタブ)、PHPおよびJSテストのセットアップ、@wordpress/scriptsツールチェーンをカバーします。WordPressの開発環境やテスト環境のセットアップ、実行、自動化の際に使用します。

FSWP DevOps Engineer とは?

このスキルは、WordPress開発におけるDevOpsエンジニアの役割を担うAIエージェント向けに設計されています。wp-env(Docker上でフルのWordPress環境を構築)やWordPress Playground(ブラウザ上で即席のサイトを作成し共有可能)といったローカル環境のセットアップ方法を提供します。また、WP-CLIを用いたプラグイン/テーマ管理、データベース操作、検索置換、cron管理、スキャフォールディングなどのコマンドライン操作をサポート。コーディング規約としてはPHPCSとWordPress標準ルール、静的解析にはPHPStanとWordPressスタブを組み合わせ、テスト面ではPHPUnit(統合テスト)、JavaScriptテスト(@wordpress/scripts)、E2Eテスト(Playwright)のセットアップ手順を網羅しています。CIパイプラインの順序についても言及しており、GitHub Actionsとの連携も視野に入れています。軽量なツールを優先し、実行できないチェックは「NOT RUN」として報告するポリシーを持ちます。

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

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

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

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

ドキュメント

FSWP DevOps Engineer は何をしますか?

主張を証明するには最も軽量なツールを優先してください。ここで実行できないチェックは、ユーザーが実行できるコマンドとともに「未実行 (NOT RUN)」として報告します(詳細は fswp-qa-engineer を参照)。

ローカル環境

ニーズツール
Docker上でフルWordPress、PHPテスト、複数プラグイン/テーマのマウント@wordpress/env (wp-env)
ブラウザまたはNode経由で即席の使い捨てサイト、スモークテスト、共有可能なデモWordPress Playground(Blueprintで構成)
ユーザーが既に実行している既存のローカルスタックそちらを使用する;新たに追加しない

wp-env(DockerとNodeが必要):プロジェクトルートから npx @wordpress/env start を実行。設定は .wp-env.json で行います:

{
  "core": null,
  "phpVersion": "8.2",
  "plugins": [ "." ],
  "themes": [],
  "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true }
}

便利なコマンド:npx @wordpress/env run cli wp plugin list, ... stop, ... clean, ... destroy。これを使用して、fswp-qa-engineer では静的にチェックできない有効化、無効化、アンインストール、アップグレードパスを検証します。

Playground: Blueprintはサイトを記述するJSONです:

{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/wp-admin/",
  "preferredVersions": { "php": "8.3", "wp": "latest" },
  "steps": [ { "step": "login" } ]
}

プラグインやテーマのインストール、ファイルの書き込み、オプション設定などのステップを追加します。作成前にPlaygroundのドキュメントで現在のステップ名を確認してください。Playgroundは高速ですが、完全なサーバーではありません。cron、メール、ファイルシステムを多用する動作の証拠として使用しないでください。

ステップ一覧、リソースタイプ、完全なコマンドテーブルは references/blueprints-and-cli.md を参照してください。

コマンドライン操作(WP-CLI)

シェルからのサイト操作:wp plugin install|activate|deactivate|delete, wp theme ..., wp option get|update, wp post ..., wp user ..., wp cron event list|run, wp db export|import, wp search-replace old new --dry-run, wp eval-file, wp scaffold plugin-tests <plugin>, wp i18n make-pot。ルール:破壊的なコマンドの前には必ず wp db export を実行;search-replace は常に最初に --dry-run で実行;ロードエラーのデバッグ時には --skip-plugins --skip-themes を使用;Webユーザーとして実行するか、使い捨て環境でのみ --allow-root を使用する。(WP-CLIはWordPress Foundationのプロジェクトです;このプラグインでは説明目的で言及しています。)

コーディング規約(PHPCS)

Composerでインストール:wp-coding-standards/wpcs, dealerdirect/phpcodesniffer-composer-installer, phpcompatibility/phpcompatibility-wp。最小限の .phpcs.xml.dist:

<?xml version="1.0"?>
<ruleset name="Project">
  <file>.</file>
  <exclude-pattern>vendor/*</exclude-pattern>
  <exclude-pattern>node_modules/*</exclude-pattern>
  <rule ref="WordPress-Extra"/>
  <rule ref="WordPress.WP.I18n"><properties><property name="text_domain" value="my-text-domain"/></properties></rule>
  <rule ref="WordPress.NamingConventions.PrefixAllGlobals"><properties><property name="prefixes" type="array"><element value="myprefix"/></properties></property></rule>
  <config name="testVersion" value="7.4-"/>
  <rule ref="PHPCompatibilityWP"/>
</ruleset>

phpcs でレポート;phpcbf で安全に修正可能な箇所を修正(差分を確認)。fswp-qa-engineer/scripts/setup_toolchain.sh は、Composerがない環境向けにPHPCSとPHPStanをインストールします。

静的解析(PHPStan)

phpstan.neon で php-stubs/wordpress-stubs をブートストラップとして使用(または szepeviktor/phpstan-wordpress 拡張)、レベル5をゲートに、新しいコードにはより高レベルを設定。WordPressまたはプラグインが実行時に定義するプロジェクト定数はスタブ化します。ベースラインファイルはレガシーコードには許容されますが、新しいコードには使用しません。

テスト

  • PHPユニットテストおよび統合テスト: wp-phpunit/wp-phpunit と yoast/phpunit-polyfills を wp scaffold plugin-tests で生成;wp-env内で実行。WordPressが必要なテストには WP_UnitTestCase を使用。
  • JavaScript: @wordpress/scripts(wp-scripts build, start, lint-js, lint-style, test-unit-js, test-e2e)。
  • エンドツーエンド: PlaywrightとWordPress e2eヘルパーをwp-envに対して使用。重要なフロー(設定保存、ブロック挿入、チェックアウトパス)に適用。

CIの概要(GitHub作業用に予約)

パイプラインが従うべき順序:インストール、PHPCS、PHPStan、最小および最大PHPでのPHPテスト、JSリント/ビルド/テスト、パッケージ化、アーティファクトのアップロード。GitHubインテグレーションが有効になるまでワークフローファイルは作成しないでください(fswp-developer/references/github-foundation.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-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-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.

関連スキル