CommunityCodierung & Entwicklunggithub.com

FSWP DevOps Engineer

Domänen-Know-how für WordPress-Entwicklungswerkzeuge im Full-Stack WP Developer. Deckt lokale Umgebungen (wp-env mit Docker, WordPress Playground und Blueprints), Kommandozeilen-Site-Operationen (Plugin- und Theme-Verwaltung, Datenbank-Export, Search-Replace, Cron, Gerüstbau), Codierungsstandards und statische Analyse (PHPCS mit WordPress-Standards, PHPStan mit WordPress-Stubs), PHP- und JS-Test-Setup sowie die @wordpress/scripts-Toolchain ab. Verwenden Sie dies beim Einrichten, Ausführen oder Automatisieren einer WordPress-Entwicklungs- oder Testumgebung.

Was ist FSWP DevOps Engineer?

Der FSWP DevOps Engineer ist eine spezialisierte Skill-Domäne für Entwickler, die an Full-Stack WordPress-Projekten arbeiten. Sie bietet einen umfassenden Satz an Werkzeugen und Best Practices für die Verwaltung lokaler Entwicklungsumgebungen, die Durchführung von CLI-Operationen und die Sicherstellung von Code-Qualität durch Standards und Tests. Der Skill unterstützt Plattformen wie `@wordpress/env` (wp-env) für Docker-basierte WordPress-Installationen und WordPress Playground für schnelle, browserbasierte Demos. Er enthält detaillierte Anleitungen für WP-CLI-Befehle zur Plugin-/Theme-Verwaltung, Datenbank-Export und Search-Replace-Operationen. Für die Code-Qualitätssicherung bietet er Konfigurationsanleitungen für PHPCS mit WordPress-Standards und PHPStan mit WordPress-Stubs sowie ein Setup für PHP- und JavaScript-Tests mit `@wordpress/scripts`. Der Skill legt Wert auf leichtgewichtige, sofort ausführbare Prüfungen und verweist für nicht ausführbare Checks auf den verwandten `fswp-qa-engineer`-Skill. Entwickler können damit Entwicklungsworkflows automatisieren, von der lokalen Umgebungseinrichtung über CI-Pipelines bis hin zu End-to-End-Tests.

Funktioniert mit~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 Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht FSWP DevOps Engineer?

Bevorzugen Sie das leichteste Werkzeug, das die Behauptung belegt. Jede Prüfung, die Sie hier nicht ausführen können, wird als NICHT AUSGEFÜHRT gemeldet, zusammen mit dem Befehl, den der Benutzer ausführen kann (fswp-qa-engineer).

Lokale Umgebungen

BedarfWerkzeug
Vollständiges WordPress in Docker, PHP-Tests, mehrere Plugins/Themes eingehängt@wordpress/env (wp-env)
Sofort einsatzbereite, temporäre Site im Browser oder über Node, Rauchtests, teilbare DemosWordPress Playground, konfiguriert mit einem Blueprint
Vorhandener lokaler Stack, den der Benutzer bereits ausführtVerwenden Sie dessen; fügen Sie keinen zweiten hinzu

wp-env (benötigt Docker und Node): Führen Sie vom Projektstamm aus npx @wordpress/env start aus. Konfigurieren Sie mit .wp-env.json:

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

Nützliche Befehle: npx @wordpress/env run cli wp plugin list, ... stop, ... clean, ... destroy. Verwenden Sie es, um Aktivierungs-, Deaktivierungs-, Deinstallations- und Upgrade-Pfade zu verifizieren, die fswp-qa-engineer nicht statisch prüfen kann.

Playground: Ein Blueprint ist JSON, das die Site beschreibt:

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

Fügen Sie Schritte wie das Installieren eines Plugins oder Themes, das Schreiben von Dateien und das Setzen von Optionen hinzu; lesen Sie die aktuellen Schrittnamen in der Playground-Dokumentation, bevor Sie sie verfassen. Playground ist schnell, aber kein vollständiger Server: Verwenden Sie es nicht als Beleg für Cron-, E-Mail- oder dateisystemintensives Verhalten.

Schrittlisten, Ressourcentypen und die vollständige Befehlstabelle: references/blueprints-and-cli.md.

Kommandozeilen-Operationen (WP-CLI)

Site-Operationen von einer Shell: 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. Regeln: Führen Sie vor jedem destruktiven Befehl wp db export aus; führen Sie immer zuerst ein --dry-run bei einem search-replace durch; verwenden Sie --skip-plugins --skip-themes beim Debuggen von Lade-Fehlern; führen Sie als Web-Benutzer aus oder verwenden Sie --allow-root nur in Einweg-Umgebungen. (WP-CLI ist ein Projekt der WordPress Foundation; dieses Plugin bezieht sich deskriptiv darauf.)

Codierungsstandards (PHPCS)

Installieren mit Composer: wp-coding-standards/wpcs, dealerdirect/phpcodesniffer-composer-installer, phpcompatibility/phpcompatibility-wp. Minimale .phpcs.xml.dist:

<?xml version="1.0"?>
<ruleset name="Projekt">
  <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="mein-text-domain"/></properties></rule>
  <rule ref="WordPress.NamingConventions.PrefixAllGlobals"><properties><property name="prefixes" type="array"><element value="meinprefix"/></properties></property></rule>
  <config name="testVersion" value="7.4-"/>
  <rule ref="PHPCompatibilityWP"/>
</ruleset>

phpcs meldet; phpcbf behebt, was es sicher kann (überprüfen Sie das Diff). fswp-qa-engineer/scripts/setup_toolchain.sh installiert PHPCS und PHPStan ohne Composer für Umgebungen, die es nicht haben.

Statische Analyse (PHPStan)

phpstan.neon mit php-stubs/wordpress-stubs als Bootstrap (oder der Erweiterung szepeviktor/phpstan-wordpress), Stufe 5 als Tor, höher für neuen Code. Stub-Projektkonstanten, die WordPress oder das Plugin zur Laufzeit definieren. Eine Basisdatei ist für Legacy-Code akzeptabel, niemals für neuen Code.

Tests

  • PHP-Unit- und Integrationstests: wp-phpunit/wp-phpunit mit yoast/phpunit-polyfills, generiert durch wp scaffold plugin-tests; ausführen in wp-env. Verwenden Sie WP_UnitTestCase für Tests, die WordPress benötigen.
  • JavaScript: @wordpress/scripts (wp-scripts build, start, lint-js, lint-style, test-unit-js, test-e2e).
  • End-to-End: Playwright mit den WordPress-E2E-Helfern gegen wp-env, für Abläufe, die wichtig sind (Einstellungen speichern, Block einfügen, Checkout-Pfad).

CI-Grundgerüst (reserviert für GitHub-Arbeiten)

Die Reihenfolge, die eine Pipeline befolgen sollte: Installieren, PHPCS, PHPStan, PHP-Tests auf min und max PHP, JS-Lint/Build/Test, Paket, Artefakt hochladen. Erstellen Sie keine Workflow-Dateien, bis die GitHub-Integration aktiviert ist (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.

Verwandte Skills