wp-plugin-development by wordpress/agent-skills
npx skills add https://github.com/wordpress/agent-skills --skill wp-plugin-development此技能适用于以下插件开发工作:
$wpdb->prepare() 中的占位符支持)。node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-plugin-development/scripts/detect_plugins.mjs如果这是一个完整的站点仓库,请在修改代码前,从 wp-content/plugins/ 或 目录下选择具体的插件。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
mu-plugins/指导原则:
is_admin()(或管理员钩子)之后,以减少前端开销。参考:
references/structure.md激活钩子较为脆弱;请遵循以下防护措施:
uninstall.php 或 register_uninstall_hook)参考:
references/lifecycle.md对于选项,优先使用 Settings API:
register_setting(), add_settings_section(), add_settings_field()sanitize_callback 进行数据清理参考:
references/settings-api.md发布前:
$_POST / $_GET;使用 wp_unslash() 和特定的键。$wpdb->prepare() 处理 SQL;避免使用字符串拼接构建 SQL。参考:
references/security.md参考:
references/data-and-cron.md参考:
references/debugging.md在发明新模式之前,请查阅插件手册和安全指南以获取规范细节。
每周安装次数
846
仓库
GitHub 星标数
972
首次出现
2026年2月1日
安全审计
安装于
codex629
opencode618
gemini-cli614
github-copilot605
cursor603
kimi-cli589
Use this skill for plugin work such as:
$wpdb->prepare()).node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-plugin-development/scripts/detect_plugins.mjsIf this is a full site repo, pick the specific plugin under wp-content/plugins/ or mu-plugins/ before changing code.
Guidelines:
is_admin() (or admin hooks) to reduce frontend overhead.See:
references/structure.mdActivation hooks are fragile; follow guardrails:
uninstall.php or register_uninstall_hook)See:
references/lifecycle.mdPrefer Settings API for options:
register_setting(), add_settings_section(), add_settings_field()sanitize_callbackSee:
references/settings-api.mdBefore shipping:
$_POST / $_GET; use wp_unslash() and specific keys.$wpdb->prepare() for SQL; avoid building SQL with string concatenation.See:
references/security.mdSee:
references/data-and-cron.mdSee:
references/debugging.mdFor canonical detail, consult the Plugin Handbook and security guidelines before inventing patterns.
Weekly Installs
846
Repository
GitHub Stars
972
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
codex629
opencode618
gemini-cli614
github-copilot605
cursor603
kimi-cli589
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Gemini Interactions API 指南:统一接口、智能体交互与服务器端状态管理
833 周安装
Apollo MCP 服务器:让AI代理通过GraphQL API交互的完整指南
834 周安装
智能体记忆系统构建指南:分块策略、向量存储与检索优化
835 周安装
Scrapling官方网络爬虫框架 - 自适应解析、绕过Cloudflare、Python爬虫库
836 周安装
抽奖赢家选取器 - 随机选择工具,支持CSV、Excel、Google Sheets,公平透明
838 周安装
Medusa 前端开发指南:使用 SDK、React Query 构建电商商店
839 周安装