WordPress编码指南服务

通过MCP协议向AI助手提供WordPress编码指南,包括插件开发、区块开发、REST API等多个方面的专家级知识。

  • by joseconti
  • JavaScript
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 joseconti/mcp-skills

使用说明

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级回退:

  1. 此回购 (主)-稳定、受控的URL
  2. WordPress/代理技能 (回退)——官方上游
  3. 离线回退 --插件中嵌入的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或更高。