What problem does it solve?
This Skill prevents breaking third-party integrations by guiding you to design, document, version, and deprecate custom WordPress action and filter hooks as a stable public API contract.
Core Features & Use Cases
- Action vs filter semantics: choose the correct hook type based on whether listeners should react with side effects or transform returned values.
- Naming and discoverability: enforce a plugin-prefixed naming scheme and add mandatory docblocks with Fires/Filters, @since, typed @param, and (for filters) correct @return semantics.
- Evolution without breakage: maintain backward compatibility by keeping parameter order/count and types stable, and deprecate using apply_filters_deprecated/do_action_deprecated instead of silent removal.
- Correct dynamic forwarding: use *_ref_array variants when forwarding unknown-length argument lists and respect how these functions pass args internally.
Quick Start
Ask the AI to review a proposed patch that introduces or changes a custom do_action/apply_filters hook and return a backwards-compatibility plan with docblock updates and any required deprecation wiring.