APIs WordPress.org · ★ 1,902

WP Interactivity API

Frontend interactivity with data-wp-* directives and stores.

What it does

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.

Install

This skill ships in WordPress/agent-skills (Official, WordPress core fundamentals).

One command installs it for any assistant. Run this from your project root:

npx skills add WordPress/agent-skills --skill wp-interactivity-api

You'll be asked to choose a scope: project (shared with your team, committed to version control) or global (available across all your projects). Add --global to skip the prompt and install globally.

Use it in your AI assistant

The destination folder, and how the assistant discovers it, differs per tool:

Claude Code

.claude/skills/wp-interactivity-api/ (or ~/.claude/skills/wp-interactivity-api/ for all projects)

  • Claude Code auto-discovers skills in .claude/skills/ (project) or ~/.claude/skills/ (global, every project).
  • Claude reaches for the skill on its own when a task matches its description, or you can name it directly.

GitHub Copilot (VS Code)

.github/skills/wp-interactivity-api/

  • The skill is copied into .github/skills/wp-interactivity-api/, where Copilot in VS Code picks it up.
  • Copilot Chat applies it automatically once your task matches the skill's description.

OpenAI Codex

.codex/skills/wp-interactivity-api/

  • This installs the skill to .codex/skills/wp-interactivity-api/, which Codex reads for standing instructions on matching tasks.
  • Point Codex at it directly if needed: "follow .codex/skills/wp-interactivity-api/SKILL.md for this task."

Cursor

.cursor/skills/wp-interactivity-api/ (or ~/.cursor/skills/wp-interactivity-api/ globally)

  • Cursor discovers skills in .cursor/skills/ (project) or ~/.cursor/skills/ (global).
  • Cursor loads it automatically when a request matches, same as its native Rules.

Compatibility

Targets WordPress 7.0+ (PHP 7.4.0+). Filesystem-based agent with bash + node. Some workflows require WP-CLI.

Keep exploring

More APIs skills

All skills →
W
WP REST API
WordPress.org
REST API routes/endpoints, schema, auth, and response shaping.
W
WP Abilities API
WordPress.org
Capability-based permissions and REST API authentication.
W
WP Abilities Audit
WordPress.org
Audit a plugin's REST surface and propose Abilities API registrations.