CommunityProgramación y desarrollogithub.com

fswp-devops-engineer

Dominio especializado para el desarrollo de herramientas WordPress en Full-Stack WP Developer. Cubre entornos locales, operaciones CLI estándares, estándares de codificación y análisis estático, configuración de pruebas y el ecosistema @wordpress/scripts.

¿Qué es fswp-devops-engineer?

Este skill proporciona al agente de IA el conocimiento de DevOps específico para WordPress usado en el perfil Full-Stack WP Developer. Permite configurar, ejecutar y automatizar entornos de desarrollo y pruebas de WordPress mediante `wp-env` con Docker, Playgrounds de WordPress con Blueprints, y operaciones de sitio CLI como gestión de plugins/temas, exportación de base de datos, search-replace, cron y scaffolding. También incluye la configuración de estándares de codificación (PHPCS con reglas de WordPress y PHPCompatibility), análisis estático (PHPStan con stubs de WordPress), pruebas unitarias y de integración PHP, y pruebas JavaScript con `@wordpress/scripts`. Está diseñado para trabajar junto con `fswp-qa-engineer` y sigue el principio de usar la herramienta más ligera que demuestre la afirmación; si no se puede ejecutar una verificación, se informa como NO EJECUTADA con el comando que el usuario puede lanzar.

Compatible con~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 Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Ingeniero DevOps FSWP

Prefiere la herramienta más ligera que demuestre la afirmación. Cualquier comprobación que no puedas ejecutar aquí se reporta como NO EJECUTADA con el comando que el usuario puede ejecutar (fswp-qa-engineer).

Entornos locales

NecesidadHerramienta
WordPress completo en Docker, pruebas PHP, múltiples plugins/temas montados@wordpress/env (wp-env)
Sitio instantáneo desechable en el navegador o mediante Node, pruebas rápidas, demos compartiblesWordPress Playground, configurado con un Blueprint
Stack local existente que el usuario ya ejecutaUsa el suyo; no agregues un segundo

wp-env (necesita Docker y Node): desde la raíz del proyecto ejecuta npx @wordpress/env start. Configura con .wp-env.json:

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

Comandos útiles: npx @wordpress/env run cli wp plugin list, ... stop, ... clean, ... destroy. Úsalo para verificar rutas de activación, desactivación, desinstalación y actualización que fswp-qa-engineer no puede comprobar estáticamente.

Playground: un Blueprint es un JSON que describe el sitio:

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

Agrega pasos como instalar un plugin o tema, escribir archivos y establecer opciones; lee los nombres actuales de los pasos en la documentación de Playground antes de redactar. Playground es rápido pero no es un servidor completo: no lo uses como evidencia para comportamientos relacionados con cron, correo o uso intensivo del sistema de archivos.

Listas de pasos, tipos de recursos y la tabla de comandos completa: references/blueprints-and-cli.md.

Operaciones de línea de comandos (WP-CLI)

Operaciones del sitio desde un 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. Reglas: haz wp db export antes de cualquier comando destructivo; siempre ejecuta --dry-run un search-replace primero; usa --skip-plugins --skip-themes al depurar errores de carga; ejecuta como el usuario web o con --allow-root solo en entornos desechables. (WP-CLI es un proyecto de WordPress Foundation; este plugin lo referencia de forma descriptiva.)

Estándares de codificación (PHPCS)

Instala con Composer: wp-coding-standards/wpcs, dealerdirect/phpcodesniffer-composer-installer, phpcompatibility/phpcompatibility-wp. .phpcs.xml.dist mínimo:

<?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 reporta; phpcbf corrige lo que puede de forma segura (revisa el diff). fswp-qa-engineer/scripts/setup_toolchain.sh instala PHPCS y PHPStan sin Composer para entornos que carezcan de él.

Análisis estático (PHPStan)

phpstan.neon con php-stubs/wordpress-stubs como bootstrap (o la extensión szepeviktor/phpstan-wordpress), nivel 5 como puerta de entrada, más alto para código nuevo. Escribe stubs para constantes de proyecto que WordPress o el plugin definan en tiempo de ejecución. Un archivo de línea base es aceptable para código heredado, nunca para código nuevo.

Pruebas

  • Pruebas unitarias y de integración PHP: wp-phpunit/wp-phpunit con yoast/phpunit-polyfills, generado por wp scaffold plugin-tests; ejecutar en wp-env. Usa WP_UnitTestCase para pruebas que necesiten WordPress.
  • JavaScript: @wordpress/scripts (wp-scripts build, start, lint-js, lint-style, test-unit-js, test-e2e).
  • Punto a punto: Playwright con los ayudantes e2e de WordPress contra wp-env, para flujos importantes (guardado de ajustes, inserción de bloques, ruta de pago).

Esquema de CI (reservado para trabajo en GitHub)

El orden que debe seguir un pipeline: instalar, PHPCS, PHPStan, pruebas PHP en PHP mínimo y máximo, lint/build/test de JS, empaquetar, subir artefacto. No crees archivos de workflow hasta que la integración con GitHub esté activada (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.

Skills relacionados