wp-plugin-development by automattic/agent-skills
npx skills add https://github.com/automattic/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对于规范细节,在发明新模式之前,请查阅插件手册和安全指南。
每周安装次数
127
仓库
GitHub 星标数
188
首次出现
2026年1月21日
安全审计
安装于
opencode83
gemini-cli79
github-copilot75
claude-code73
codex73
cursor69
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
127
Repository
GitHub Stars
188
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode83
gemini-cli79
github-copilot75
claude-code73
codex73
cursor69
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
131,500 周安装