wordpress-plugin-scaffold

Scaffold WordPress plugins and PHPUnit test infrastructure using WP-CLI.

9|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/emdashcodes/wp-ability-toolkit --skill wordpress-plugin-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-plugin-scaffold
Source: https://github.com/emdashcodes/wp-ability-toolkit/tree/main/claude-code-plugins/wordpress-plugin-scaffold/skills/wordpress-plugin-scaffold
Command: npx skills add https://github.com/emdashcodes/wp-ability-toolkit --skill wordpress-plugin-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolding WordPress plugins and their test infrastructure can be time-consuming and error-prone without a guided workflow.

Core Features & Use Cases

  • Scaffolds a new plugin skeleton using WP-CLI's wp scaffold plugin.
  • Adds test infrastructure scaffolding with wp scaffold plugin-tests for existing plugins.
  • Provides environment-aware workflows (wp-env) and interactive metadata collection to streamline plugin development.

Quick Start

Ask me to scaffold a new WordPress plugin with a given slug and metadata, and I will generate the plugin skeleton and optional test infrastructure using WP-CLI.

Frequently Asked Questions about wordpress-plugin-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new WordPress plugin with WP-CLI?

To scaffold a WordPress plugin, provide a slug and metadata to generate the skeleton using `wp scaffold plugin`. It interactively collects the plugin name, description, and author to create the base files.

How do I add PHPUnit test infrastructure to an existing WordPress plugin?

You can add PHPUnit test infrastructure to an existing plugin using the `wp scaffold plugin-tests` command. This generates the necessary test files and configurations to support testing within your current plugin development workflow.

Can I use wp-env for environment detection when scaffolding WordPress plugins?

Yes, the scaffolding process provides environment-aware workflows using `wp-env` to streamline plugin development. This ensures proper environment detection when setting up your plugin skeleton and tests.

What metadata is required to generate a WordPress plugin skeleton?

Generating a WordPress plugin skeleton interactively collects metadata including the plugin slug, plugin name, description, and author. You can also specify optional configurations for tests and CI during the scaffolding process.

Does WordPress plugin scaffolding include CI configuration setup?

Yes, you can request optional CI configuration when scaffolding a plugin. The process generates the CI config alongside the plugin skeleton and optional PHPUnit test infrastructure to support continuous integration workflows.