What problem does it solve?
This Skill provides a practical blueprint for building robust WordPress plugins, covering architecture, hooks, activation lifecycle, admin UI, and secure data handling, to accelerate development and ensure quality.
Core Features & Use Cases
- Architecture & Bootstrap: Establish a minimal, predictable plugin skeleton with a loader class and clean separation of concerns.
- Lifecycle & Security: Implement activation/deactivation/uninstall hooks with safe cleanup, and enforce nonces, capabilities, sanitization, and escaping.
- Admin UI & Settings: Use the Settings API to store and validate options with proper admin-facing interfaces.
- Data & Scheduling: Design data storage patterns and cron tasks with idempotent behavior and upgrade paths.
- Guidance & Compliance: Refer to structured references for lifecycle, structure, and security best practices.
Quick Start
Follow these steps to begin applying the skill:
- Review the references/structure.md and references/lifecycle.md to understand recommended patterns.
- Create a minimal plugin bootstrap file with a standard header and a loader class to register hooks.
- Implement activation/deactivation/uninstall callbacks and ensure proper cleanup.
- Add a basic Settings API page with a sanitized option and nonce protection.
- Consult debugging.md and security.md to address common issues during development.