WordPress Plugin Boilerplate Powered Skill

    1

    Develop, maintain, and modernize WordPress plugins using the PSR-4 WordPress Plugin Boilerplate Powered (WPBP) framework.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    WordPress Plugin Boilerplate Powered Skill

    Example session with this skill installed

    I need to add a new custom post type to a plugin built with WPBP. Please help me create the class and register it correctly in the engine.

    • Read your context and instructions
    • Compiled the wordpress plugin boilerplate
    • Generated the UI component

    I will create a new CPT class following the WPBP PSR-4 structure and ensure it is registered via the Internals namespace so it loads in all contexts.

    CPT Implementation

    First, I have created the class file at plugin-name/internals/PostTypes.php:

    <?php
    namespace Plugin_Name\Internals;
    
    use Plugin_Name\Engine\Base;
    
    /**
     * Handles Custom Post Type registration.
     */
    class PostTypes extends Base {
    
    	/**
    	 * Register hooks.
    	 */
    	public function initialize() {
    		add_action( 'init', [ $this, 'register_books_cpt' ] );
    	}
    
    	/**
    	 * Register the "Book" CPT.
    	 */
    	public function register_books_cpt() {
    		$labels = [
    			'name'           => _x( 'Books', 'Post Type General Name', 'plugin-name' ),
    			'singular_name'  => _x( 'Book', 'Post Type Singular Name', 'plugin-name' ),
    		];
    		$args = [
    			'label'         => __( 'Book', 'plugin-name' ),
    			'public'        => true,
    			'show_in_rest'  => true,
    			'supports'      => [ 'title', 'editor', 'thumbnail' ],
    			'has_archive'   => true,
    		];
    		register_post_type( 'pn_book', $args );
    	}
    }
    

    Next, I updated the plugin-name/engine/Initialize.php (or ensured the directory is scanned) to include this class. Because it is in Internals, the engine will instantiate it automatically during the plugins_loaded sequence.

    Next steps

    1. Run composer dumpautoload -o to register the new PSR-4 class mapping.
    2. Flush rewrite rules by visiting Settings > Permalinks in your WordPress admin.
    3. Run vendor/bin/phpstan analyse to verify the new class passes level max analysis.

    wordpress-plugin-boilerplate-powered-ski.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Standard WordPress development often leads to messy, procedural plugins that are hard to test and maintain. This skill manages the WordPress Plugin Boilerplate Powered (WPBP) ecosystem, a PSR-4 compliant meta-project designed for building professional-grade plugins with modern PHP standards. It handles the complex relationship between the boilerplate template, the project generator, and the modular engine core.

    What it does

    • Boilerplate Architecture Management helps you navigate and modify the engine, context, and initialization logic of WPBP-based projects.
    • Generator Synchronization ensures any changes to template code preserve the WPBPGen conditional directives and {{placeholder}} tags required by the generator.
    • Toolchain Automation runs pre-configured workflows for Composer, npm, PHPStan (level max), and GrumPHP to maintain code quality.
    • Testing Suite Execution manages Codeception and wp-browser configurations for unit, wpunit, functional, and acceptance testing.
    • Modernization Execution follows the F0-F5 improvement plan to upgrade legacy projects to PHP 8.1+ and improved architectural patterns.

    How it works

    1. Context Analysis identifies if you are working on the boilerplate core, the generator, or a specific plugin instance.
    2. Environment Setup runs composer install and npm install, ensuring the critical composer dumpautoload -o command is executed to prevent production failures.
    3. Capability Extension adds new features via PSR-4 classes in Integrations or Internals folders, automatically registering them via the Initialize class.
    4. Verification Loop triggers static analysis and test suites to confirm that new code meets the strict coding standards before commit.

    Frameworks & tools

    This tool uses PHP 7.4/8.1, WordPress, Composer, npm, PHPStan, Codeception, wp-browser, GrumPHP, and React for Gutenberg blocks.

    Why this beats prompting it yourself

    Generic AI prompts often ignore the "meta" nature of a boilerplate, accidentally deleting the generator directives that allow the template to function. This skill understands the internal dependency between the Initialize engine and the Context container, preventing common initialization deaths in production environments.

    Use cases

    • Scaffold a new WordPress plugin using the wpbp-generator CLI.
    • Refactor legacy procedural hooks into PSR-4 compliant classes.
    • Implement automated CI/CD pipelines using the included GitHub Actions workflows.
    • Troubleshoot autoloading and namespace issues in complex multi-folder plugins.

    Known limitations

    Requires a local environment with PHP, Node, and MySQL for full test suite execution. It is strictly tied to the WPBP architecture and does not support generic procedural WordPress plugin structures.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scanned

    Verified clean 11 days ago

    • Passed all security checks, Safe to install

    Listed11 days ago

    What's inside

    Frequently Asked Questions