·wp-interactivity-api
</>

wp-interactivity-api

automattic/agent-skills

Use when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration, wp_interactivity_*()) including performance, hydration, and directive behavior.

66Installs·0Trend·@automattic

Installation

$npx skills add https://github.com/automattic/agent-skills --skill wp-interactivity-api

SKILL.md

If you’re creating a new interactive block (not just debugging), prefer the official scaffold template:

For themes/plugins without block.json, use wpinteractivityprocessdirectives() to process directives.

When derived state affects initial HTML rendering, replicate the logic in PHP:

Use when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration, wp_interactivity_*()) including performance, hydration, and directive behavior. Source: automattic/agent-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/automattic/agent-skills --skill wp-interactivity-api
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is wp-interactivity-api?

Use when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration, wp_interactivity_*()) including performance, hydration, and directive behavior. Source: automattic/agent-skills.

How do I install wp-interactivity-api?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/automattic/agent-skills --skill wp-interactivity-api Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/automattic/agent-skills