Generate README.md, build.sh, and GitHub release workflows for WordPress plugins...
This skill generates release infrastructure for WordPress plugins: README.md documentation, build.sh packaging scripts, and GitHub Actions release workflows. It works with any WordPress plugin, with optional sections for WordPress Abilities API integrations.
Before generating files, extract metadata from the main plugin PHP file header:
/**
* Plugin Name: {{PLUGIN_NAME}}
* Description: {{PLUGIN_DESCRIPTION}}
* Version: {{VERSION}}
* Requires at least: {{MIN_WP_VERSION}}
* Requires PHP: {{MIN_PHP_VERSION}}
* Author: {{AUTHOR}}
* License: {{LICENSE}}
* Text Domain: {{PLUGIN_SLUG}}
*/
Also identify:
internal-links-api)internal-links-api.php)INTERNAL_LINKS_API_VERSION)composer.json existssrc/ directory exists for autoloadingUse the templates in assets/ as starting points, replacing placeholders with detected metadata.
Use assets/readme-template.md as the base template.
Core sections (always include):
Optional sections (include based on plugin features):
When generating README.md:
Use assets/build-template.sh as the base template.
The build script:
composer install --no-dev --optimize-autoloader if composer.json existsdist/Customize the FILES_TO_COPY array based on plugin structure:
src/ if using PSR-4 autoloadingcomposer.json and composer.lock if using ComposerREADME.md for distributionincludes/, assets/, templates/)Use assets/release-workflow-template.yml as the base template.
The workflow:
v*)Customize version update commands based on:
| Placeholder | Description | Detection Method |
|---|---|---|
{{PLUGIN_NAME}} |
Human-readable name | Plugin Name header |
{{PLUGIN_SLUG}} |
Directory/text-domain | Text Domain header or directory name |
{{PLUGIN_DESCRIPTION}} |
Plugin description | Description header |
{{MAIN_FILE}} |
Main PHP filename | Plugin file in root matching slug |
{{NAMESPACE}} |
PHP namespace | First namespace declaration |
{{VERSION_CONSTANT}} |
Version constant | Look for define('*_VERSION' pattern |
{{AUTHOR}} |
Plugin author | Author header |
{{LICENSE}} |
License type | License header |
{{MIN_WP_VERSION}} |
Minimum WP version | Requires at least header |
{{MIN_PHP_VERSION}} |
Minimum PHP version | Requires PHP header |
{{HAS_COMPOSER}} |
Uses Composer | Check for composer.json |
{{FILES_TO_COPY}} |
Files for distribution | Analyze plugin structure |
A plugin uses WordPress Abilities API if it:
WP_Abilities_Registry classwp_abilities_api_init or wp_abilities_api_categories_initAbilities/ directoryAbility classes that implement execute() methodWhen an Abilities API plugin is detected, include the MCP Setup Guide and Available Abilities sections in README.md.
readme-template.md - README template with core and optional sectionsbuild-template.sh - Build script template with placeholdersrelease-workflow-template.yml - GitHub Actions workflow templatewordpress-plugin-structure.md - Reference for WordPress plugin standards and conventions