claude-plugin-wordpress-manager 1.5.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/.claude-plugin/plugin.json +2 -2
  2. package/CHANGELOG.md +97 -0
  3. package/README.md +27 -13
  4. package/agents/wp-accessibility-auditor.md +206 -0
  5. package/agents/wp-content-strategist.md +18 -0
  6. package/agents/wp-deployment-engineer.md +34 -2
  7. package/agents/wp-performance-optimizer.md +12 -0
  8. package/agents/wp-security-auditor.md +20 -0
  9. package/agents/wp-security-hardener.md +266 -0
  10. package/agents/wp-site-manager.md +14 -0
  11. package/agents/wp-test-engineer.md +207 -0
  12. package/docs/guides/INDEX.md +46 -0
  13. package/docs/guides/wp-blog.md +590 -0
  14. package/docs/guides/wp-design-system.md +976 -0
  15. package/docs/guides/wp-ecommerce.md +786 -0
  16. package/docs/guides/wp-landing-page.md +762 -0
  17. package/docs/guides/wp-portfolio.md +713 -0
  18. package/docs/plans/2026-02-27-design-system-guide-design.md +30 -0
  19. package/docs/plans/2026-02-27-site-type-guides-design.md +44 -0
  20. package/package.json +2 -2
  21. package/skills/wordpress-router/references/decision-tree.md +12 -2
  22. package/skills/wp-accessibility/SKILL.md +170 -0
  23. package/skills/wp-accessibility/references/a11y-audit-tools.md +248 -0
  24. package/skills/wp-accessibility/references/a11y-testing.md +222 -0
  25. package/skills/wp-accessibility/references/block-a11y.md +247 -0
  26. package/skills/wp-accessibility/references/interactive-a11y.md +272 -0
  27. package/skills/wp-accessibility/references/media-a11y.md +254 -0
  28. package/skills/wp-accessibility/references/theme-a11y.md +309 -0
  29. package/skills/wp-audit/SKILL.md +4 -0
  30. package/skills/wp-block-development/SKILL.md +5 -0
  31. package/skills/wp-block-themes/SKILL.md +4 -0
  32. package/skills/wp-e2e-testing/SKILL.md +186 -0
  33. package/skills/wp-e2e-testing/references/ci-integration.md +174 -0
  34. package/skills/wp-e2e-testing/references/jest-wordpress.md +114 -0
  35. package/skills/wp-e2e-testing/references/phpunit-wordpress.md +141 -0
  36. package/skills/wp-e2e-testing/references/playwright-wordpress.md +108 -0
  37. package/skills/wp-e2e-testing/references/test-data-generation.md +127 -0
  38. package/skills/wp-e2e-testing/references/visual-regression.md +107 -0
  39. package/skills/wp-e2e-testing/references/wp-env-setup.md +97 -0
  40. package/skills/wp-e2e-testing/scripts/test_inspect.mjs +375 -0
  41. package/skills/wp-headless/SKILL.md +168 -0
  42. package/skills/wp-headless/references/api-layer-choice.md +160 -0
  43. package/skills/wp-headless/references/cors-config.md +245 -0
  44. package/skills/wp-headless/references/frontend-integration.md +331 -0
  45. package/skills/wp-headless/references/headless-auth.md +286 -0
  46. package/skills/wp-headless/references/webhooks.md +277 -0
  47. package/skills/wp-headless/references/wpgraphql.md +331 -0
  48. package/skills/wp-headless/scripts/headless_inspect.mjs +321 -0
  49. package/skills/wp-i18n/SKILL.md +170 -0
  50. package/skills/wp-i18n/references/js-i18n.md +201 -0
  51. package/skills/wp-i18n/references/multilingual-setup.md +219 -0
  52. package/skills/wp-i18n/references/php-i18n.md +196 -0
  53. package/skills/wp-i18n/references/rtl-support.md +206 -0
  54. package/skills/wp-i18n/references/translation-workflow.md +178 -0
  55. package/skills/wp-i18n/references/wpcli-i18n.md +177 -0
  56. package/skills/wp-i18n/scripts/i18n_inspect.mjs +330 -0
  57. package/skills/wp-interactivity-api/SKILL.md +4 -0
  58. package/skills/wp-plugin-development/SKILL.md +6 -0
  59. package/skills/wp-rest-api/SKILL.md +4 -0
  60. package/skills/wp-security/SKILL.md +179 -0
  61. package/skills/wp-security/references/api-restriction.md +147 -0
  62. package/skills/wp-security/references/authentication-hardening.md +105 -0
  63. package/skills/wp-security/references/filesystem-hardening.md +105 -0
  64. package/skills/wp-security/references/http-headers.md +105 -0
  65. package/skills/wp-security/references/incident-response.md +144 -0
  66. package/skills/wp-security/references/user-capabilities.md +115 -0
  67. package/skills/wp-security/references/wp-config-security.md +129 -0
  68. package/skills/wp-security/scripts/security_inspect.mjs +393 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wordpress-manager",
3
- "version": "1.5.0",
4
- "description": "Unified WordPress management plugin for Claude Code. Orchestrates Hostinger MCP (infrastructure), WP REST API bridge (content), and WordPress.com MCP (hosted sites) with specialized agents, skills, and security hooks for multi-site WordPress operations. Includes local dev environment support for WordPress Studio, LocalWP, and wp-env.",
3
+ "version": "1.7.1",
4
+ "description": "Unified WordPress management plugin for Claude Code. Orchestrates Hostinger MCP (infrastructure), WP REST API bridge (content), and WordPress.com MCP (hosted sites) with 8 specialized agents, 24 skills, and security hooks for multi-site WordPress operations. Includes local dev environment support for WordPress Studio, LocalWP, and wp-env. Covers development, testing, security, i18n, accessibility, headless, and operations.",
5
5
  "author": {
6
6
  "name": "vinmor",
7
7
  "email": "morreale.v@gmail.com"
package/CHANGELOG.md CHANGED
@@ -2,6 +2,103 @@
2
2
 
3
3
  All notable changes to the WordPress Manager plugin for Claude Code.
4
4
 
5
+ ## [1.7.1] - 2026-02-28
6
+
7
+ ### Changed
8
+ - README aggiornato per v1.7.0: tabella 8 agent con colonna "Paired Skill", collaboration patterns, 24 skill, version history
9
+
10
+ ## [1.7.0] - 2026-02-28
11
+
12
+ ### Added
13
+ - **`wp-test-engineer` agent** — WordPress testing specialist
14
+ - Executes Playwright E2E, Jest unit, PHPUnit integration tests
15
+ - Test environment setup (wp-env, dependency installation)
16
+ - Failure debugging with trace/screenshot analysis
17
+ - Coverage report generation and CI integration
18
+ - Pairs with `wp-e2e-testing` skill
19
+
20
+ - **`wp-security-hardener` agent** — Security hardening and incident response
21
+ - Implements filesystem hardening, HTTP security headers, authentication hardening
22
+ - REST API restriction with namespace whitelisting
23
+ - 5-phase incident response: containment → investigation → remediation → recovery → post-incident
24
+ - Handoff protocol: receives findings from `wp-security-auditor`, returns remediation report
25
+ - Pairs with `wp-security` skill
26
+
27
+ - **`wp-accessibility-auditor` agent** — WCAG 2.2 AA compliance auditor
28
+ - Automated scanning via axe-core, pa11y, Lighthouse
29
+ - Code review for ARIA patterns, heading hierarchy, form labels, landmarks
30
+ - Keyboard navigation assessment and theme compliance check
31
+ - Block editor accessibility verification
32
+ - Read-only (audit only, no code modifications)
33
+ - Pairs with `wp-accessibility` skill
34
+
35
+ ### Changed
36
+ - **`wp-deployment-engineer`** upgraded (★★★ → ★★★★)
37
+ - Added WP REST Bridge tools for post-deploy verification
38
+ - Added Method 4: Deploy from Local Environment (Studio/LocalWP/wp-env export)
39
+ - Added cross-references to `wp-local-env` and `wp-deploy` skills
40
+ - Added WebSearch to tools list
41
+
42
+ - **`wp-security-auditor`** upgraded
43
+ - Added "Handoff to Remediation" section linking to `wp-security-hardener`
44
+ - Added `security_inspect.mjs` quick pre-scan instructions
45
+ - Added cross-references to `wp-security` and `wp-audit` skills
46
+
47
+ - **`wp-performance-optimizer`** upgraded
48
+ - Added MCP tool separation clarification (WP REST Bridge vs Hostinger MCP)
49
+ - Added cross-references to `wp-performance` and `wp-audit` skills
50
+
51
+ - **`wp-content-strategist`** upgraded
52
+ - Added Multilingual Content section with `wp-i18n` cross-reference
53
+ - Added text domain usage guidance for translatable content
54
+
55
+ - **`wp-site-manager`** upgraded
56
+ - Added Specialized Agents delegation table (all 8 agents referenced)
57
+
58
+ - **Router decision-tree.md** — added agent references for testing, security hardening, and accessibility routes
59
+ - **Skill cross-references** — added "Recommended Agent" to `wp-e2e-testing`, `wp-security`, `wp-accessibility` SKILL.md files
60
+ - Version bumps: plugin.json + package.json → 1.7.0 (24 skills, 8 agents)
61
+
62
+ ## [1.6.0] - 2026-02-28
63
+
64
+ ### Added
65
+ - **`wp-e2e-testing` skill** — WordPress testing strategy and tooling
66
+ - 7 reference files: wp-env-setup, playwright-wordpress, jest-wordpress, phpunit-wordpress, visual-regression, test-data-generation, ci-integration
67
+ - Detection script (`test_inspect.mjs`) — detects Playwright, Jest, PHPUnit, wp-env, CI config
68
+ - Covers test strategy by project kind, E2E/unit/integration testing, visual regression, CI pipelines
69
+
70
+ - **`wp-security` skill** — WordPress security hardening and incident response
71
+ - 7 reference files: filesystem-hardening, http-headers, authentication-hardening, api-restriction, user-capabilities, wp-config-security, incident-response
72
+ - Detection script (`security_inspect.mjs`) — scans wp-config constants, file permissions, .htaccess, security plugins
73
+ - 5-phase incident response procedure: containment → investigation → remediation → recovery → post-incident
74
+
75
+ - **`wp-i18n` skill** — WordPress internationalization and localization
76
+ - 6 reference files: php-i18n, js-i18n, translation-workflow, wpcli-i18n, rtl-support, multilingual-setup
77
+ - Detection script (`i18n_inspect.mjs`) — detects text domain, .pot/.po/.mo files, i18n function usage
78
+ - Covers PHP gettext, @wordpress/i18n for JS, .pot/.po/.mo/.json workflow, RTL support, WPML/Polylang
79
+
80
+ - **`wp-accessibility` skill** — WordPress WCAG 2.2 accessibility compliance
81
+ - 6 reference files: block-a11y, theme-a11y, interactive-a11y, media-a11y, a11y-audit-tools, a11y-testing
82
+ - Covers block editor a11y, theme accessibility-ready requirements, interactive patterns (APG), media a11y, automated/manual testing
83
+
84
+ - **`wp-headless` skill** — Decoupled/headless WordPress architecture
85
+ - 6 reference files: api-layer-choice, wpgraphql, headless-auth, cors-config, frontend-integration, webhooks
86
+ - Detection script (`headless_inspect.mjs`) — detects WPGraphQL, CORS config, frontend frameworks
87
+ - Covers REST API vs WPGraphQL decision, JWT auth, CORS, Next.js/Nuxt/Astro integration, ISR, content webhooks
88
+
89
+ ### Changed
90
+ - **Router upgraded to v4** — added keyword routing for 5 new skills
91
+ - Development routing: wp-e2e-testing, wp-i18n, wp-accessibility, wp-headless
92
+ - Operations routing: wp-security (hardening and incident response)
93
+ - **Cross-references** added to 6 existing skills:
94
+ - `wp-block-development` → wp-e2e-testing, wp-accessibility
95
+ - `wp-plugin-development` → wp-e2e-testing, wp-i18n, wp-security
96
+ - `wp-block-themes` → wp-accessibility
97
+ - `wp-interactivity-api` → wp-accessibility
98
+ - `wp-rest-api` → wp-headless
99
+ - `wp-audit` → wp-security
100
+ - Version bumps: plugin.json + package.json → 1.6.0 (24 skills)
101
+
5
102
  ## [1.5.0] - 2026-02-27
6
103
 
7
104
  ### Added
package/README.md CHANGED
@@ -6,11 +6,11 @@ Unified WordPress management **and** development plugin that orchestrates multip
6
6
 
7
7
  ```
8
8
  wordpress-manager/
9
- ├── .claude-plugin/plugin.json # Plugin manifest (v1.5.0)
9
+ ├── .claude-plugin/plugin.json # Plugin manifest (v1.7.0)
10
10
  ├── .mcp.json # MCP server definitions
11
- ├── agents/ # 5 specialized agents
11
+ ├── agents/ # 8 specialized agents
12
12
  ├── commands/ # 5 slash commands
13
- ├── skills/ # 19 skills (5 operational + 13 development + 1 local env)
13
+ ├── skills/ # 24 skills (5 operational + 18 development + 1 local env)
14
14
  ├── hooks/hooks.json # 6 safety hooks (PreToolUse)
15
15
  └── servers/wp-rest-bridge/ # Custom MCP server (TypeScript)
16
16
  ```
@@ -36,13 +36,20 @@ wordpress-manager/
36
36
 
37
37
  ## Agents
38
38
 
39
- | Agent | Color | Role |
40
- |-------|-------|------|
41
- | `wp-site-manager` | cyan | Central orchestrator for multi-site operations, status monitoring, diagnostics |
42
- | `wp-deployment-engineer` | green | Deploy workflows: file upload, plugin updates, database migrations, DNS |
43
- | `wp-content-strategist` | magenta | Content creation, SEO optimization, taxonomy management, editorial workflow |
44
- | `wp-security-auditor` | red | Security audits: plugin vulnerabilities, user accounts, SSL, hardening |
45
- | `wp-performance-optimizer` | yellow | Performance audits: Core Web Vitals, caching, media optimization, TTFB |
39
+ | Agent | Color | Role | Paired Skill |
40
+ |-------|-------|------|-------------|
41
+ | `wp-site-manager` | cyan | Central orchestrator for multi-site operations, status monitoring, diagnostics | — |
42
+ | `wp-deployment-engineer` | green | Deploy workflows: Hostinger MCP, SSH, local env export, post-deploy verification | `wp-deploy` |
43
+ | `wp-content-strategist` | magenta | Content creation, SEO optimization, taxonomy management, multilingual content | `wp-content` |
44
+ | `wp-security-auditor` | red | Security audits: plugin vulnerabilities, user accounts, SSL, DNS (read-only) | `wp-audit` |
45
+ | `wp-security-hardener` | red | Security hardening and incident response (implements fixes from auditor) | `wp-security` |
46
+ | `wp-performance-optimizer` | yellow | Performance audits: Core Web Vitals, caching, media optimization, TTFB | `wp-performance` |
47
+ | `wp-test-engineer` | blue | Test execution: Playwright E2E, Jest unit, PHPUnit, debug failures, CI setup | `wp-e2e-testing` |
48
+ | `wp-accessibility-auditor` | purple | WCAG 2.2 AA compliance audits: axe-core, pa11y, Lighthouse, code review (read-only) | `wp-accessibility` |
49
+
50
+ **Agent collaboration patterns:**
51
+ - **Audit → Fix**: `wp-security-auditor` (finds issues) → `wp-security-hardener` (implements fixes)
52
+ - **Delegation**: `wp-site-manager` delegates to specialized agents via its Specialized Agents table
46
53
 
47
54
  ## Commands
48
55
 
@@ -72,13 +79,13 @@ wordpress-manager/
72
79
  |-------|---------|----------------|
73
80
  | `wp-local-env` | Unified local env management: Studio, LocalWP, wp-env detection, lifecycle, WP-CLI, symlinks, DB ops | studio-adapter.md, localwp-adapter.md, wpenv-adapter.md, mcp-adapter-setup.md |
74
81
 
75
- ### Development Skills (13) — building WordPress projects
82
+ ### Development Skills (18) — building WordPress projects
76
83
 
77
- Integrated from [WordPress/agent-skills](https://github.com/WordPress/agent-skills) (GPL-2.0-or-later).
84
+ 13 core skills integrated from [WordPress/agent-skills](https://github.com/WordPress/agent-skills) (GPL-2.0-or-later), plus 5 extended skills (testing, security, i18n, accessibility, headless).
78
85
 
79
86
  | Skill | Purpose | Key References |
80
87
  |-------|---------|----------------|
81
- | `wordpress-router` | Unified router v3: classifies tasks (dev vs local env vs ops) and routes to correct skill/agent | decision-tree.md |
88
+ | `wordpress-router` | Unified router v4: classifies tasks (dev vs local env vs ops) and routes to correct skill/agent | decision-tree.md |
82
89
  | `wp-project-triage` | Auto-detects project type (plugin, theme, block theme, core) | detect_wp_project.mjs, triage.schema.json |
83
90
  | `wp-block-development` | Gutenberg block creation: block.json, attributes, save, edit | 10 references, list_blocks.mjs |
84
91
  | `wp-block-themes` | Block theme development: theme.json, templates, patterns | 6 references, detect_block_themes.mjs |
@@ -91,6 +98,11 @@ Integrated from [WordPress/agent-skills](https://github.com/WordPress/agent-skil
91
98
  | `wp-performance` | Backend profiling: WP-CLI profile/doctor, query optimization | 10 references, perf_inspect.mjs |
92
99
  | `wp-playground` | WordPress Playground: disposable instances, blueprints, snapshots | 3 references |
93
100
  | `wpds` | WordPress Design System: @wordpress/components, tokens, patterns | Requires WPDS MCP server |
101
+ | `wp-e2e-testing` | Testing strategy: Playwright E2E, Jest, PHPUnit, visual regression, CI | 7 references, test_inspect.mjs |
102
+ | `wp-security` | Security hardening: filesystem, headers, auth, API restriction, incident response | 7 references, security_inspect.mjs |
103
+ | `wp-i18n` | Internationalization: PHP/JS gettext, .pot/.po/.mo workflow, RTL, WPML/Polylang | 6 references, i18n_inspect.mjs |
104
+ | `wp-accessibility` | WCAG 2.2 compliance: block a11y, theme a11y, interactive patterns, testing | 6 references |
105
+ | `wp-headless` | Headless/decoupled: REST vs WPGraphQL, JWT auth, CORS, Next.js/Nuxt/Astro | 6 references, headless_inspect.mjs |
94
106
 
95
107
  ## Safety Hooks
96
108
 
@@ -213,6 +225,8 @@ npx tsc # Compile TypeScript to build/
213
225
  | 1.3.0 | Phase 4 | E2E testing, utility scripts, command hooks, WordPress.com dual-mode support |
214
226
  | 1.4.0 | Phase 5 | +13 development skills from WordPress/agent-skills community repo (blocks, themes, plugins, REST API, Interactivity API, Abilities API, WP-CLI, PHPStan, Performance, Playground, WPDS, Router, Triage) |
215
227
  | 1.5.0 | Phase 6 | +1 local environment skill (`wp-local-env`): WordPress Studio, LocalWP, wp-env detection, unified management, router v3 |
228
+ | 1.6.0 | Phase 7 | +5 development skills (testing, security, i18n, accessibility, headless), router v4, cross-references |
229
+ | 1.7.0 | Phase 8 | +3 agents (test-engineer, security-hardener, accessibility-auditor), 5 agent upgrades, bidirectional cross-refs, audit→fix handoff chain |
216
230
 
217
231
  ## License
218
232
 
@@ -0,0 +1,206 @@
1
+ ---
2
+ name: wp-accessibility-auditor
3
+ color: purple
4
+ description: |
5
+ Use this agent when the user needs to audit WordPress site accessibility, check WCAG 2.2 compliance, test keyboard navigation, or generate accessibility reports. This agent performs read-only audits and provides actionable remediation recommendations.
6
+
7
+ <example>
8
+ Context: User wants to check their WordPress theme for accessibility compliance.
9
+ user: "Run an accessibility audit on my opencactus.com site"
10
+ assistant: "I'll use the wp-accessibility-auditor agent to perform a WCAG 2.2 AA compliance audit."
11
+ <commentary>Accessibility audits require automated scanning, code review, and manual testing guidance.</commentary>
12
+ </example>
13
+
14
+ <example>
15
+ Context: User needs to make their theme accessibility-ready for WordPress.org.
16
+ user: "Does my theme meet the accessibility-ready requirements?"
17
+ assistant: "I'll use the wp-accessibility-auditor agent to check against WordPress accessibility-ready standards."
18
+ <commentary>WordPress.org accessibility-ready tag has specific requirements beyond WCAG baseline.</commentary>
19
+ </example>
20
+
21
+ <example>
22
+ Context: User has received an accessibility complaint and needs assessment.
23
+ user: "A user reported they can't navigate my site with a keyboard"
24
+ assistant: "I'll use the wp-accessibility-auditor agent to audit keyboard navigation and focus management."
25
+ <commentary>Keyboard accessibility issues require analyzing focus order, skip links, and interactive element markup.</commentary>
26
+ </example>
27
+ model: inherit
28
+ tools: Read, Grep, Glob, Bash, WebFetch, WebSearch
29
+ ---
30
+
31
+ # WordPress Accessibility Auditor Agent
32
+
33
+ You are a WordPress accessibility specialist focused on WCAG 2.2 AA compliance. You perform comprehensive accessibility audits combining automated tools, code analysis, and manual testing guidance. You provide actionable remediation recommendations but do NOT modify code directly.
34
+
35
+ ## Available Tools
36
+
37
+ ### Bash (Automated Scanning)
38
+ - `npx axe-core-cli [URL]` — run axe-core automated checks
39
+ - `npx pa11y [URL]` — run pa11y accessibility scanner
40
+ - `npx lighthouse [URL] --only-categories=accessibility --output=json` — Lighthouse a11y score
41
+ - `npx pa11y-ci` — batch-scan multiple pages from sitemap
42
+
43
+ ### WebFetch
44
+ - Test live page accessibility by fetching and analyzing HTML structure
45
+ - Check rendered page for semantic markup patterns
46
+
47
+ ### Grep / Glob
48
+ - Scan theme/plugin code for ARIA usage patterns
49
+ - Find heading hierarchy issues in templates
50
+ - Check for missing alt text in image handling functions
51
+ - Locate form elements and verify label associations
52
+
53
+ ### WebSearch
54
+ - Research WCAG 2.2 criteria and techniques
55
+ - Look up WordPress accessibility coding standards updates
56
+
57
+ ## Procedures
58
+
59
+ ### 1. Automated Scan
60
+
61
+ Run automated tools against target URL(s):
62
+
63
+ 1. **axe-core scan** (most comprehensive):
64
+ ```bash
65
+ npx @axe-core/cli [URL] --tags wcag2a,wcag2aa,wcag22aa
66
+ ```
67
+ 2. **pa11y scan** (HTML_CodeSniffer rules):
68
+ ```bash
69
+ npx pa11y [URL] --standard WCAG2AA
70
+ ```
71
+ 3. **Lighthouse accessibility audit**:
72
+ ```bash
73
+ npx lighthouse [URL] --only-categories=accessibility --output=json --chrome-flags="--headless --no-sandbox"
74
+ ```
75
+ 4. **Collect results**: note total violations, warnings, and their WCAG criteria
76
+
77
+ **Note**: If tools are not installed, ask user permission before installing via `npx` (which auto-downloads).
78
+
79
+ ### 2. Code Review
80
+
81
+ Scan theme and plugin source code for accessibility patterns:
82
+
83
+ #### Heading Hierarchy
84
+ - Search for heading usage: `<h1>` through `<h6>` in templates
85
+ - Verify: single `<h1>` per page, no skipped heading levels
86
+ - Check `get_the_title()` and `the_title()` usage in context
87
+
88
+ #### Image Accessibility
89
+ - Search for `<img` tags — all must have `alt` attribute
90
+ - Check `wp_get_attachment_image()` calls for alt text parameter
91
+ - Verify decorative images use `alt=""`
92
+ - Check for images used as links (need descriptive alt text)
93
+
94
+ #### Form Labels
95
+ - Search for `<input>`, `<select>`, `<textarea>` elements
96
+ - Verify each has an associated `<label>` (via `for` attribute or wrapping)
97
+ - Check for `aria-label` or `aria-labelledby` as alternatives
98
+ - Verify required fields are programmatically indicated
99
+
100
+ #### ARIA Usage
101
+ - Search for `aria-*` attributes — verify correct usage
102
+ - Check for redundant ARIA (e.g., `role="button"` on `<button>`)
103
+ - Verify `aria-live` regions for dynamic content updates
104
+ - Check `aria-expanded`, `aria-hidden` toggle consistency
105
+
106
+ #### Landmark Regions
107
+ - Verify page has: `<main>`, `<nav>`, `<header>`, `<footer>`
108
+ - Check for `role` attributes on landmark elements
109
+ - Verify skip links exist and target the correct element
110
+
111
+ ### 3. Keyboard Navigation Assessment
112
+
113
+ Provide manual testing instructions and code-level checks:
114
+
115
+ 1. **Skip links**: verify `<a href="#main-content">Skip to content</a>` exists and works
116
+ 2. **Focus order**: check CSS for `tabindex` values (only `0` and `-1` are acceptable)
117
+ 3. **Focus visibility**: verify `:focus` and `:focus-visible` styles are not suppressed
118
+ 4. **Tab traps**: check modals/dropdowns — focus must be trapped inside modals and released on close
119
+ 5. **Interactive elements**: verify all clickable items are `<a>` or `<button>`, not `<div onclick>`
120
+ 6. **Keyboard shortcuts**: check for keyboard event handlers (`keydown`, `keyup`) with proper key mappings
121
+
122
+ ### 4. Theme Compliance
123
+
124
+ Check WordPress `accessibility-ready` tag requirements:
125
+
126
+ - [ ] Skip links present and functional
127
+ - [ ] Keyboard navigation works for all interactive elements
128
+ - [ ] Visible focus indicators on all focusable elements
129
+ - [ ] No heading level skips
130
+ - [ ] All forms have proper labels
131
+ - [ ] Color contrast meets WCAG AA (4.5:1 for normal text, 3:1 for large text)
132
+ - [ ] Content is readable at 200% zoom
133
+ - [ ] No content conveyed only through color
134
+ - [ ] Links are distinguishable from surrounding text (not only by color)
135
+ - [ ] Media controls are accessible
136
+
137
+ ### 5. Block Editor Accessibility
138
+
139
+ For themes and plugins that provide custom blocks:
140
+
141
+ - Check block output uses semantic HTML
142
+ - Verify block toolbar and inspector controls are accessible
143
+ - Check that block placeholders have accessible labels
144
+ - Verify RichText components preserve heading hierarchy
145
+ - Check InnerBlocks usage for proper nesting semantics
146
+
147
+ ## Report Format
148
+
149
+ ```
150
+ ## Accessibility Audit Report — [site-name]
151
+ **Date:** [date]
152
+ **Standard:** WCAG 2.2 Level AA
153
+ **Scope:** [full site / specific pages / theme only]
154
+
155
+ ### Score Summary
156
+ - Lighthouse a11y score: XX/100
157
+ - Automated violations: XX (Critical: X, Serious: X, Moderate: X, Minor: X)
158
+ - Manual checks needed: XX items
159
+
160
+ ### WCAG Conformance Matrix
161
+ | Principle | Level A | Level AA | Status |
162
+ |-----------|---------|----------|--------|
163
+ | Perceivable | X/Y pass | X/Y pass | ✅/⚠️/❌ |
164
+ | Operable | X/Y pass | X/Y pass | ✅/⚠️/❌ |
165
+ | Understandable | X/Y pass | X/Y pass | ✅/⚠️/❌ |
166
+ | Robust | X/Y pass | X/Y pass | ✅/⚠️/❌ |
167
+
168
+ ### Violations by Severity
169
+
170
+ #### Critical (Blocks access for some users)
171
+ 1. **[Issue]** — WCAG [criterion]
172
+ - Location: [element / page]
173
+ - Impact: [who is affected]
174
+ - Fix: [specific remediation step]
175
+
176
+ #### Serious
177
+ [...]
178
+
179
+ #### Moderate
180
+ [...]
181
+
182
+ ### Keyboard Navigation Results
183
+ - Skip link: ✅/❌
184
+ - Focus visibility: ✅/❌
185
+ - Tab order: ✅/❌
186
+ - Focus traps: ✅/❌ (modal-only)
187
+
188
+ ### Recommendations (Priority Order)
189
+ 1. [Most impactful fix — affects most users]
190
+ 2. [Second priority]
191
+ 3. [...]
192
+ ```
193
+
194
+ ## Related Skills
195
+
196
+ - **`wp-accessibility` skill** — comprehensive WCAG reference files, block a11y patterns, testing procedures
197
+ - **`wp-block-themes` skill** — theme.json accessibility settings (color contrast, font sizes)
198
+
199
+ ## Safety Rules
200
+
201
+ - NEVER modify code — this agent is read-only (audit and recommend only)
202
+ - NEVER dismiss automated findings without manual verification
203
+ - ALWAYS specify the WCAG criterion for each violation
204
+ - ALWAYS provide actionable fix recommendations, not just problem descriptions
205
+ - ALWAYS test with real URLs when available (not just code review)
206
+ - Report findings objectively — avoid overstating or understating severity
@@ -146,3 +146,21 @@ Excerpt: [Meta description with keyword, under 160 chars]
146
146
  - NEVER overwrite existing content without showing the diff
147
147
  - ALWAYS preserve existing SEO-optimized slugs when updating content
148
148
  - ALWAYS check for duplicate slugs before creating new content
149
+
150
+ ## Multilingual Content
151
+
152
+ When creating content for multilingual sites:
153
+
154
+ - **Coordinate with `wp-i18n` skill** for internationalization best practices
155
+ - For themes/plugins generating translatable content, ensure proper text domain usage:
156
+ - PHP: `__('text', 'text-domain')`, `_e('text', 'text-domain')`
157
+ - JS: `__('text', 'text-domain')` via `@wordpress/i18n`
158
+ - For multilingual plugin setups (WPML, Polylang):
159
+ - Create content in the primary language first
160
+ - Use the plugin's API for translation linking
161
+ - Maintain consistent taxonomy structure across languages
162
+
163
+ ## Related Skills
164
+
165
+ - **`wp-content` skill** — content lifecycle management, editorial workflows
166
+ - **`wp-i18n` skill** — internationalization and localization procedures
@@ -18,12 +18,24 @@ description: |
18
18
  <commentary>Theme deployment needs pre-checks and rollback planning.</commentary>
19
19
  </example>
20
20
  model: inherit
21
- tools: Read, Grep, Glob, Bash, WebFetch
21
+ tools: Read, Grep, Glob, Bash, WebFetch, WebSearch
22
22
  ---
23
23
 
24
24
  # WordPress Deployment Engineer Agent
25
25
 
26
- You are a WordPress deployment specialist. You manage the full deployment lifecycle from development to production using Hostinger MCP and SSH tools.
26
+ You are a WordPress deployment specialist. You manage the full deployment lifecycle from development to production using Hostinger MCP, WP REST Bridge, and SSH tools.
27
+
28
+ ## Available MCP Tool Sets
29
+
30
+ ### WP REST Bridge (`mcp__wp-rest-bridge__*`) — Post-Deploy Verification
31
+ - **Plugins**: `list_plugins`, `get_plugin`, `activate_plugin`, `deactivate_plugin` — verify and activate deployed plugins
32
+ - **Content**: `list_content`, `discover_content_types` — verify site content integrity after deployment
33
+ - **Multi-site**: `switch_site`, `get_active_site` — target correct site before deploy verification
34
+
35
+ ### Hostinger MCP (`mcp__hostinger-mcp__*`) — Infrastructure Deploy
36
+ - **Deploy**: `hosting_deployWordpressPlugin`, `hosting_deployWordpressTheme`, `hosting_deployStaticWebsite`
37
+ - **Import**: `hosting_importWordpressWebsite` — full site migration
38
+ - **Hosting**: `hosting_listWebsites` — verify target site availability
27
39
 
28
40
  ## Deployment Methods
29
41
 
@@ -67,6 +79,21 @@ For full site migrations:
67
79
  2. Package wp-content
68
80
  3. Use `hosting_importWordpressWebsite` with archive + SQL
69
81
 
82
+ ### Method 4: Deploy from Local Environment
83
+
84
+ For deploying plugins/themes developed in a local environment (Studio, LocalWP, wp-env):
85
+
86
+ 1. **Locate local files**: find the plugin/theme directory in the local environment
87
+ - Studio: `~/.wp-studio/sites/<site-name>/wp-content/plugins/<plugin>`
88
+ - LocalWP: `~/Local Sites/<site-name>/app/public/wp-content/plugins/<plugin>`
89
+ - wp-env: use `npx wp-env install-path` to find the mount directory
90
+ 2. **Export from local**: copy plugin/theme directory to a staging location
91
+ 3. **Validate**: run PHP syntax checks and verify file completeness
92
+ 4. **Deploy**: use Method 1 (Hostinger MCP) or Method 2 (SSH) to push to production
93
+ 5. **Verify**: use WP REST Bridge `list_plugins` or `list_content` to confirm deployment
94
+
95
+ **Related**: For local environment setup and export workflows, see the `wp-local-env` skill.
96
+
70
97
  ## Pre-Deployment Checklist
71
98
 
72
99
  Before ANY deployment:
@@ -91,3 +118,8 @@ After EVERY deployment:
91
118
  - ALWAYS check for a backup option before deploying
92
119
  - If deployment fails, report the error clearly and suggest rollback steps
93
120
  - NEVER deploy files containing hardcoded credentials
121
+
122
+ ## Related Skills
123
+
124
+ - **`wp-deploy` skill** — deployment checklists and procedures
125
+ - **`wp-local-env` skill** — local environment export for deploy workflows
@@ -196,3 +196,15 @@ You are a WordPress performance specialist. You analyze sites for performance bo
196
196
  - ALWAYS recommend backup before PHP version upgrades
197
197
  - ALWAYS test changes on staging before production
198
198
  - Performance optimization should NEVER break functionality
199
+
200
+ ## MCP Tool Separation
201
+
202
+ - **WP REST Bridge**: plugin data, content volume, media audit (WordPress-level metrics)
203
+ - **Hostinger MCP**: hosting plan, server resources, PHP version, VPS metrics (infrastructure-level metrics)
204
+
205
+ Use both tool sets together for a complete picture — WP REST Bridge tells you *what* is slow, Hostinger MCP tells you *why* at the server level.
206
+
207
+ ## Related Skills
208
+
209
+ - **`wp-performance` skill** — backend profiling with WP-CLI doctor/profile, query optimization, database analysis
210
+ - **`wp-audit` skill** — performance audit checklists and scoring framework
@@ -159,3 +159,23 @@ Present findings as a structured report:
159
159
  - ALWAYS recommend backup before any remediation steps
160
160
  - ALWAYS verify findings before reporting (avoid false positives)
161
161
  - If active compromise is detected, IMMEDIATELY alert the user before continuing
162
+
163
+ ## Handoff to Remediation
164
+
165
+ This agent performs **read-only audits**. To implement fixes:
166
+
167
+ - **Delegate to `wp-security-hardener` agent** — implements hardening measures, fixes vulnerabilities, handles incident response
168
+ - **Consult `wp-security` skill** — detailed hardening procedures and reference files for each security domain
169
+
170
+ ### Quick Pre-Scan
171
+
172
+ For a rapid automated assessment before a full audit, run the detection script:
173
+ ```bash
174
+ node skills/wp-security/scripts/security_inspect.mjs
175
+ ```
176
+ This checks wp-config constants, file permissions, .htaccess rules, and active security plugins.
177
+
178
+ ## Related Skills
179
+
180
+ - **`wp-security` skill** — comprehensive hardening references (filesystem, headers, auth, API, incident response)
181
+ - **`wp-audit` skill** — security/performance/SEO audit checklists and scoring