wp-interactivity-api

Diagnose WordPress Interactivity API issues across data-wp directives and viewScriptModule integration.

12|9|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/jnealey88/designsetgo --skill wp-interactivity-api-jnealey88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-interactivity-api
Source: https://github.com/jnealey88/designsetgo/tree/main/.claude/skills/wp-interactivity-api
Command: npx skills add https://github.com/jnealey88/designsetgo --skill wp-interactivity-api-jnealey88

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagnoses and resolves issues in the WordPress Interactivity API across data-wp directives, store/state/actions, and viewScriptModule integration to ensure correct hydration and performance.

Core Features & Use Cases

  • Identify interactivity stores, directive usage, and interaction wiring across blocks/themes.
  • Ensure server-side rendering aligns initial HTML with client state for reliable hydration.
  • Provide best practices for processing directives and debugging hydration, events, and viewScriptModule integration.

Quick Start

Explain your current interactivity issue (e.g., hydration, directive firing, or viewScriptModule loading) to begin a guided debugging workflow.

Frequently Asked Questions about wp-interactivity-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my WordPress Interactivity API hydration fail when directives load?

WordPress Interactivity API hydration fails when server-side rendering does not align initial HTML with client state. This Skill diagnoses directive lifecycles and viewScriptModule integration to correct state initialization mismatches.

How do I debug data-wp directives not firing in my interactive blocks?

Debug data-wp directives by checking interactivity store wiring, state initialization, and interaction wiring across blocks. This Skill guides a workflow to identify processing issues and enforce safe directive processing in editor and frontend contexts.

What is the best way to resolve viewScriptModule integration issues in block development?

Resolve viewScriptModule integration issues by ensuring proper script loading and state initialization for interactive blocks. This Skill provides best practices for debugging viewScriptModule loading and aligning it with interactivity directives.

Does this debugging workflow support both editor and frontend WordPress contexts?

Yes, this debugging workflow applies to both editor and frontend contexts. It diagnoses interactivity directives, hydration behavior, and directive lifecycles across both environments to ensure reliable interactive blocks.

How to ensure server-side rendering aligns with client state for reliable hydration?

Ensure server-side rendering aligns with client state by enforcing proper state initialization and safe directive processing. This Skill diagnoses hydration behavior and provides best practices for processing directives correctly.