
Wp Interactivity Api
wordpress/agent-skillsOfficial
Practical guide for building and debugging WordPress Interactivity API features, covering directives, store state, and server-side rendering.
- skills.sh installs
- 4.6K
- GitHub stars
- 2.4K
- last updated
- Aug 21, 2026
What it does
- Covers the full workflow: detecting existing usage, identifying stores, server-side rendering, directive changes, build alignment, and failure triage
- Includes PHP helpers like
wp_interactivity_state(),wp_interactivity_data_wp_context(), andwp_interactivity_process_directives(), plus WordPress 6.9 directive and navigation changes - Enforces server-rendered initial state and warns against
data-wp-ignore, which is deprecated in WordPress 6.9 - Designed for blocks, themes, and plugins that use
viewScriptModuleand need hydration-safe directive behavior
Install
$ npx -y skills add wordpress/agent-skills --skill wp-interactivity-api -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WP Interactivity API
When to use
Use this skill when the user mentions:
- Interactivity API,
@wordpress/interactivity, data-wp-interactive,data-wp-on--*,data-wp-bind--*,data-wp-context,- block
viewScriptModule/ module-based view scripts, - hydration issues or “directives don’t fire”.
Inputs required
- Repo root + triage output (
wp-project-triage). - Which block/theme/plugin surfaces are affected (frontend, editor, both).
- Any constraints: WP version, whether modules are supported in the build.
Procedure
1) Detect existing usage + integration style
Search for:
data-wp-interactive@wordpress/interactivityviewScriptModule
Decide:
- Is this a block providing interactivity via
block.jsonview script module? - Is this theme-level interactivity?
- Is this plugin-side “enhance existing markup” usage?
If you’re creating a new interactive block (not just debugging), prefer the official scaffold template:
@wordpress/create-block-interactive-template(via@wordpress/create-block)
2) Identify the store(s)
Locate store definitions and confirm:
Details
- Repository
- github.com/wordpress/agent-skills
- Categories
- PHP & Laravel, Frontend & UI Code
- First seen
- Apr 16, 2026
More from wordpress/agent-skills
All 17- Wpds4.5K
- Blueprint4.1K
- Wp Plugin Directory Guidelines4.1K
- Wp Abilities Audit3.1K
- Wp Abilities Verify3K
- Wp Plugin Development9K
- Wp Performance7K
- Wp Rest Api6.6K
- Wp Block Themes6.5K
- Wordpress Router6.3K
- Wp Wpcli And Ops6.2K
- Wp Project Triage6.2K
- Wp Block Development6.1K
- Wp Playground5.3K
- Wp Phpstan5.1K
- Wp Abilities Api4.8K
Similar to Wp Interactivity Api
More PHP & Laravel
wp-plugin-developmentwordpress/agent-skills9K installsA structured guide for WordPress plugin work covering architecture, lifecycle, settings, security, and data handling.
wp-block-developmentwordpress/agent-skills6.1K installsStructured workflow for building WordPress Gutenberg blocks, covering block.json, registration, rendering, and migrations.
wp-abilities-apiautomattic/agent-skills303 installsDeveloper guide for registering, exposing over REST, and consuming WordPress Abilities API endpoints and categories.
progressive-hydrationpatternsdev/skills1K installsTeaches progressive hydration with Suspense, lazy loading, and deferred client-only widgets to improve Time to Interactive.
wordpress-plugin-developmentsickn33/agentic-awesome-skills125 installsWordPress plugin development workflow covering architecture, hooks, admin screens, REST endpoints, and WordPress 7.0 features.
alpinejsbrettatoms/agent-skills259 installsPractical Alpine.js reference that keeps HTML directives short by moving logic into extracted components and stores.