WordPress/wp-interactivity-api
Frontend interactivity with data-wp- directives and stores
Open source
Description
wp-interactivity-api is an agent skill for developing and debugging the WordPress Interactivity API, which adds frontend interactivity through data-wp-* directives and a shared store. The skill covers the directives themselves, the store with its state and actions through the @wordpress/interactivity package, and the integration of a block's viewScriptModule with a store. It also covers server-side rendering with wp_interactivity_state(), which sets initial state on the server so the page does not shift when it loads. The page targets WordPress 6.9 and later with PHP 7.2.24 or later. Instead of tracing the path from directive to store across PHP, block.json and JavaScript by hand, the skill gives a checklist that covers server rendering, hydration alignment and the breakages specific to 6.9. Listed uses include fixing directives that appear in the HTML but never fire, setting up server-side state with wp_interactivity_state() to avoid layout shift, wiring a block's viewScriptModule to a store and confirming hydration, and moving away from deprecated data-wp-ignore usage after the 6.9 changes. It is for developers building interactive blocks and plugins for WordPress. You install it with the skills command from the WordPress/agent-skills repository.…
Highlights
- data-wp-* directives explained
- Store, state and actions with @wordpress/interactivity
- viewScriptModule integration for blocks
- Server state with wp_interactivity_state()
- Checklist for hydration and 6.9 changes
Ratings & Reviews
No ratings yet
Be the first to rate WordPress/wp-interactivity-api.
People also visit

wp-playground
Use as the WordPress Playground routing wrapper for ambiguous Playground work
WordPress/wp-interactivity-api FAQ
What does this skill do?
It guides building and debugging frontend interactivity in WordPress with data-wp directives, stores and server-rendered state.
How do I install it?
Run npx skills add https://github.com/WordPress/agent-skills --skill wp-interactivity-api, or paste the repository link and ask your coding assistant to install it.
Who is it for?
Developers building interactive WordPress blocks or plugins on WordPress 6.9 or later.
Which PHP version is needed?
The page says PHP 7.2.24 or later.
Is it free?
The skill is in a public repository on GitHub and the page shows no price, so it is open source.
What are the best WordPress/wp-interactivity-api alternatives?
Popular alternatives to WordPress/wp-interactivity-api include wp-interactivity-api, wp-playground and WordPress/wp-playground. See all WordPress/wp-interactivity-api alternatives




