wordpress-plugin-scaffold
Scaffold WordPress plugins using WP-CLI commands with intelligent environment detection and comprehensive testing support
View on GitHubTable of content
Scaffold WordPress plugins using WP-CLI commands with intelligent environment detection and comprehensive testing support
Installation
npx claude-plugins install @emdashcodes/emdashcodes-wp-ability-toolkit/wordpress-plugin-scaffold
Contents
Folders: skills
Included Skills
This plugin includes 1 skill definition:
wordpress-plugin-scaffold
Scaffold WordPress plugins using WP-CLI commands (wp scaffold plugin, wp scaffold plugin-tests). Use this skill when creating new WordPress plugins or adding test infrastructure to existing plugins.
View skill definition
WordPress Plugin Scaffold
This skill provides guidance for scaffolding WordPress plugins using WP-CLI’s scaffold commands. It supports both creating new plugins from scratch and adding test infrastructure to existing plugins.
Note: This skill works seamlessly with the wp-env skill (if available). When wp-env setup or management is needed, activate the wp-env skill for comprehensive environment handling.
About WP-CLI Scaffold Commands
WP-CLI provides two primary scaffolding commands for plugin development:
wp scaffold plugin
Generates starter code for a new plugin, including:
- Main plugin PHP file
readme.txtfor WordPress.orgpackage.jsonwith Grunt tasks for i18n and readme conversion- Editor configuration files (
.editorconfig,.gitignore,.distignore) - Optional: PHPUnit test suite, CI configuration, and PHP_CodeSniffer rules
wp scaffold plugin-tests
Adds PHPUnit test infrastructure to an existing plugin, including:
phpunit.xml.distconfiguration- CI configuration (CircleCI, GitHub Actions, GitLab, Bitbucket)
bin/install-wp-tests.shfor WordPress test suite setuptests/bootstrap.phpto activate the plugin during teststests/test-sample.phpwith example test cases.phpcs.xml.distfor PHP_CodeSniffer rules
Prerequisites
Verify WP-CLI is installed and accessible:
wp --version
If WP-CLI is not installed, see references/wp-cli-installation.md for comprehensi
…(truncated)