使用说明
MCP技能——WordPress人工智能编码指南
WordPress编码指南通过MCP(模型上下文协议)提供给AI助手。
这是什么?
此存储库是 WordPress/代理技能 --官方WordPress存储库,包含AI助手的专家级编码知识。
它被消耗 WP Premium的MCP内容管理器 插件通过 mcm/coding-guidelines 该功能可以获取这些指南并将其传递给通过MCP连接的任何AI助手。
运作原理
WordPress/agent-skills (upstream, community-maintained)
|
| periodic sync / selective merge
v
joseconti/mcp-skills (this repo — primary source, controlled)
|
v
MCP Content Manager plugin (mcm/coding-guidelines tool)
|
v
AI Assistant (Claude, ChatGPT, Gemini, Cursor, Codex...)
这 mcm/coding-guidelines 该工具使用3级回退:
- 此回购 (主)-稳定、受控的URL
- WordPress/代理技能 (回退)——官方上游
- 离线回退 --插件中嵌入的10条基本规则
存储库结构
mcp-skills/
├── manifest.json # Index of all skills for the MCP tool
├── wp-plugin-development/ # Plugin architecture, hooks, security...
├── wp-block-development/ # Gutenberg blocks, block.json...
├── wp-block-themes/ # Block themes, theme.json...
├── wp-rest-api/ # REST API endpoints, auth, schema...
├── wp-performance/ # Caching, DB queries, profiling...
├── wp-wpcli-and-ops/ # WP-CLI operations, automation...
├── wp-phpstan/ # PHPStan for WordPress...
├── wp-interactivity-api/ # Interactivity API directives...
├── wp-playground/ # WordPress Playground...
├── wp-abilities-api/ # WordPress Abilities API...
├── wpds/ # WordPress Design System
├── wordpress-router/ # Project classification / routing
├── wp-project-triage/ # Repo type detection
└── custom/ # Custom skills (WooCommerce, security...)
每个技能目录包含:
SKILL.md--主指令文件(YAML frontmatter+程序指南)references/--详细的特定主题文档scripts/--确定性辅助脚本(Node.js,MCP不使用)
用法
AI助手呼叫:
mcm/coding-guidelines(context="all") → List all available topics
mcm/coding-guidelines(context="plugin") → Get plugin development guidelines
mcm/coding-guidelines(context="plugin", reference="security") → Get specific reference
mcm/coding-guidelines(context="plugin", include_references=true) → Get everything
许可证
从WordPress/代理技能同步的技能在GPL-2.0或更高版本下获得许可。
自定义技能 custom/ GPL-2.0或更高。