WordPress Interactivity API Specialist

•
30
•

Facilitates building, debugging, and optimizing modern interactive Gutenberg blocks using the WordPress Interactivity API.

This skill empowers Claude to efficiently handle the WordPress Interactivity API, providing expert guidance on implementing data-wp-* directives, managing store states, and resolving hydration mismatches. It is particularly useful for developers building Gutenberg blocks that require performant, reactive frontend behaviors without full page reloads, ensuring compliance with WordPress 6.9+ standards and best practices for module-based view scripts and store definitions.

主要功能

01Automated project triage to detect Interactivity API usage and configuration.
02Debugging of store states, actions, and client-side hydration issues.
03Optimization of viewScriptModule integration within block.json for modern builds.
04Support for WordPress 6.9+ features including unique directive IDs and async actions.
05Implementation of standard and custom Interactivity API directives like data-wp-bind and data-wp-on.
0630 GitHub stars

使用场景

01Building reactive frontend components like accordions, modals, or live search interfaces.
02Troubleshooting 'directives don't fire' errors and module loading failures in complex themes.
03Migrating legacy jQuery or vanilla JS components to the official WordPress Interactivity store.