/ 目录 / 演练场 / claude-wordpress-skills
● 社区 elvismdev ⚡ 即开即用

claude-wordpress-skills

作者 elvismdev · elvismdev/claude-wordpress-skills

Make Claude a senior WordPress engineer — security, performance, Gutenberg blocks, theme and plugin discipline.

claude-wordpress-skills is a professional skills pack for WordPress work: security auditing (nonces, capabilities, escaping), performance optimization (caching, query tuning), Gutenberg block development (modern JS + block.json), and theme/plugin best practices (i18n, accessibility, WP Coding Standards). Load it once and Claude stops writing 2015-era WordPress code.

为什么要用

核心特性

实时演示

实际使用效果

claude-wordpress-skill.replay ▶ 就绪
0/0

安装

作者仓库 · Claude Skills 官方文档

使用场景

实战用法: claude-wordpress-skills

How to build a Gutenberg block the modern way

👤 WordPress developers building custom blocks ⏱ ~45 min intermediate

何时使用: You need a custom editor block and don't want to hand-roll outdated ESNext + webpack scaffolding.

步骤
  1. Describe the block
    Build a Testimonial block: quote text, author name, author photo — edit and save views.✓ 已复制
    → block.json + edit.js + save.js scaffolded, @wordpress/scripts build setup
  2. Add attributes and controls
    Add an alignment control and a color picker.✓ 已复制
    → BlockControls / InspectorControls added correctly
  3. Bundle and register
    Write the PHP that registers the block from block.json.✓ 已复制
    → register_block_type( __DIR__ . '/build/block.json' )

结果: A working modern Gutenberg block with proper packaging.

注意事项
  • Missing i18n wrappers — Skill reminds Claude to wrap strings with __() and _x()
搭配使用: filesystem

Audit a plugin for common WordPress security issues

👤 Plugin maintainers, site owners ⏱ ~60 min advanced

何时使用: Before shipping a plugin or inheriting one.

步骤
  1. Scope the audit
    Audit this plugin for: nonce usage on every form, capability checks on every action, output escaping, SQL prep.✓ 已复制
    → Per-category findings with file:line
  2. Fix the highest-risk ones
    Apply the top 3 fixes — nonces on the admin form, esc_html on the dashboard widget, $wpdb->prepare on the custom query.✓ 已复制
    → Diffs to the plugin files
  3. Regression test
    List what to manually test to confirm the fixes don't break anything.✓ 已复制
    → Short manual test checklist

结果: A more secure plugin with documented fixes.

注意事项
  • False positives on nonces where a REST permission callback is already in place — Provide context: REST routes with permission callbacks don't need form nonces
搭配使用: github

Do a performance pass on a slow WordPress site

👤 Developers responsible for WordPress site perf ⏱ ~60 min advanced

何时使用: TTFB is bad, dashboard is slow, or a specific template is dragging.

步骤
  1. Identify the bottleneck
    Walk me through common WordPress perf bottlenecks and which log/profiling tool to start with.✓ 已复制
    → Query Monitor, debug.log, object cache check
  2. Query tuning
    Here are the top 5 slow queries. Suggest indexes or query rewrites.✓ 已复制
    → Per-query recommendations
  3. Cache strategy
    Which caching layers should be active here? Object cache, page cache, fragment caching — suggest a stack.✓ 已复制
    → Concrete cache plan with plugins/services

结果: Concrete perf wins you can measure on the next deploy.

注意事项
  • Adding a caching plugin without fixing the underlying slow query — Always measure before and after each change

组合

与其他 MCP 搭配,撬动十倍杠杆

claude-wordpress-skill + filesystem

Operate across a plugin/theme directory for audits and refactors

Audit wp-content/plugins/my-plugin/ for security issues and apply the top 5 fixes.✓ 已复制
claude-wordpress-skill + github

Open PRs for security fixes with proper descriptions

Open a PR titled 'Security: nonces on admin forms' with the patches.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
gutenberg-block-authoring block intent + attributes Any custom block work 0
wp-security-audit plugin/theme path Pre-ship or inheritance review 0
wp-performance-review slow endpoints + config When speed matters 0
wp-coding-standards any PHP/JS code Auto-applied during authoring 0

成本与限制

运行它的成本

API 配额
none
每次调用 Token 数
5–20k per audit or block
费用
free
提示
Scope by file or feature; don't feed Claude 100 plugins at once

安全

权限、密钥、影响范围

凭据存储: none at the skill level; WP admin creds if you also use a deploy/REST tool
数据出站: none

故障排查

常见错误与修复

Block build fails with @wordpress/scripts

Verify Node version and that @wordpress/scripts is in devDependencies; rebuild.

验证: node -v && npx wp-scripts --version
Claude suggests outdated enqueue patterns

Specify the WordPress version you target and prefer register_block_type_from_metadata.

替代方案

claude-wordpress-skills 对比其他方案

替代方案何时用它替代权衡
claude-code-owasp-skillYou need general web app security, not WordPress-specificBroader but misses WP idioms
symfony-ux-skillYou're in Symfony instead of WordPressDifferent stack

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills