---
name: php186-skill-75630
description: "此技能帮助代理创建或排查WordPress Interactivity API行为，从存储连接到服务器渲染状态和水合检查。当某个区块、主题或插件需要指令驱动的交互性而不是临时的前端胶水代码时，请使用它。"
---

# Build and debug interactive WordPress frontends with data-wp directives

## 使用data-wp指令构建和调试交互式WordPress前端

 

此技能帮助代理创建或排查WordPress Interactivity API行为，从存储连接到服务器渲染状态和水合检查。当某个区块、主题或插件需要指令驱动的交互性而不是临时的前端胶水代码时，请使用它。

 

## 先决条件

 

Node.js；文件系统访问权限；WordPress区块工具；可选WP-CLI

 

## 安装

 

使用与您的环境匹配的上游安装或设置路径：

 

- git clone https://github.com/1991513ccie-png/skills

 

上游的要求和注意事项：

 

- node shared/scripts/skillpack-build.mjs --clean
- node shared/scripts/skillpack-install.mjs --global
- node shared/scripts/skillpack-install.mjs --global --skills=wp-playground,wp-block-development

 

基本用法或入门说明：

 

- bash
- ## 克隆agent-skills
- cd agent-skills
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/WordPress/agent-skills/HEAD/README.md

 

## 文档

 

- https://github.com/1991513ccie-png/skills
