---
name: php186-skill-77975
description: "当代理需要构建、重构、保护或打包具有正确激活钩子、设置处理、卸载行为和数据卫生的WordPress插件时，请使用Automattic官方wp-plugin-development技能。这是一个插件工程手册，而不是通用的WordPress列表。"
---

# Develop and harden WordPress plugins with lifecycle and security guardrails

## 开发和强化具有生命周期和安全防护措施的WordPress插件

 

当代理需要构建、重构、保护或打包具有正确激活钩子、设置处理、卸载行为和数据卫生的WordPress插件时，请使用Automattic官方wp-plugin-development技能。这是一个插件工程手册，而不是通用的WordPress列表。

 

## 安装

 

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

 

- git clone https://github.com/1991513ccie-png/skills
- 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/Automattic/agent-skills/HEAD/README.md

 

## 文档

 

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