Purpose: Route requests to the best agents, enforce predictable workflows, and produce consistent deliverables.
This index serves as the central router for the wp-dev-prompts agent library. It:
- Classifies incoming requests by domain and risk level
- Selects optimal agent teams (3β6 agents preferred)
- Enforces phase-based execution: Plan β Implement β Verify β Document
- Produces artifacts that meet the Output Contract
- Resolves conflicts between competing concerns
- Start with Orchestrators β Always consider qa-director for quality gates
- Add Primary Specialists β Based on task category (1β2 per domain)
- Add Supporting Agents β Only for missing outputs (reports, fixtures, CI)
- Keep Teams Lean β 3β6 agents unless work clearly spans more domains
- Run Phases β Plan β Implement β Verify β Document
| Agent | Owns | When Required |
|---|---|---|
| qa-director | Quality gates, test matrix, PR/nightly/release strategy | Any change affecting tests or gates |
| repo-template-architect | Structure, profiles, commands, template consistency | Structural changes, new project setup |
| test-architecture | Test boundaries, fixtures, mocks, determinism | Test infrastructure changes |
| risk-manager | Risk register, threat model, prioritization | High-risk changes, security, data handling |
Primary Agents:
- unit-testing β Isolated PHP unit tests with WP_Mock
- integration-testing β Tests against real WordPress
- e2e-playwright β Browser automation and user flows
- regression-suite-curator β Regression test organization
- visual-regression β Screenshot comparison testing
Supporting Agents:
- test-data-and-fixtures β Factories, seeds, fixtures
- flaky-test-tamer β Stabilizing unreliable tests
- reporting-and-artifacts β JUnit, coverage, traces
Mandatory Checks:
- Deterministic seeds and stable selectors
- Artifacts uploaded on failure
- Quarantine policy for flaky tests
- Test isolation (no shared state)
Primary Agents:
- a11y-tree-and-aria-auditor β Accessibility tree assertions
- keyboard-and-focus-specialist β Focus management, traps
- storybook-a11y-specialist β Component-level a11y
Supporting Agents:
- manual-a11y-protocol β Screen reader testing scripts
- i18n-l10n-rtl-specialist β RTL layout testing
Mandatory Checks:
- axe-core scans on all routes
- Explicit name/role/state assertions
- Focus trap testing for modals
- RTL run for critical routes
- Keyboard-only navigation validation
Primary Agents:
- threat-modeling β STRIDE analysis, attack surfaces
- wp-security-patterns β Nonces, caps, sanitization
- secrets-and-supply-chain β Gitleaks, dependency audit
Supporting Agents:
- pentest-playbook β Manual security testing
- security-advisory β Existing security specialist
Mandatory Checks:
- Nonce verification on all forms
- Capability checks before actions
- Input sanitization, output escaping
- Semgrep rules for WP patterns
- SARIF output for security findings
- SBOM generation for dependencies
Primary Agents:
- multisite-specialist β Network admin, site scoping
- i18n-l10n-rtl-specialist β Translations, RTL
Supporting Agents:
- data-model-and-migrations β Schema across sites
- visual-regression β RTL snapshots
Mandatory Checks:
- Network activation/uninstall hooks
get_optionvsget_site_optionusage- Super-admin capability boundaries
- Locale matrix tests per site
- RTL visual regression for critical screens
Primary Agents:
- performance β Existing performance specialist
- e2e-playwright β Lighthouse integration
Supporting Agents:
- packaging-and-dist-builder β Asset optimization
- reporting-and-artifacts β LHCI reports
Mandatory Checks:
- Performance budgets defined
- Cold and warm run measurements
- Lighthouse CI artifacts
- Core Web Vitals thresholds
Primary Agents:
- packaging-and-dist-builder β Build, bundle, exclude
- wporg-readme-and-assets β readme.txt, screenshots
- plugin-header-and-metadata β Version consistency
- release-manager β Release process, changelog
Supporting Agents:
- contributing-and-pr-gates β PR requirements
- reporting-and-artifacts β Release artifacts
Mandatory Checks:
- No dev files in distribution
- Version consistency across files
- Changelog entry for each release
- ZIP artifact creation and validation
Primary Agents:
- github-actions-architect β Workflow design
- linting-and-static-analysis β PHPCS, PHPStan, ESLint
- reporting-and-artifacts β Output formats
Supporting Agents:
- compatibility-matrix β PHP/WP version matrix
- flaky-test-tamer β CI stability
Mandatory Checks:
- Cache strategy for dependencies
- Job isolation (no cross-job state)
- Matrix design for versions
- Fast lane (PR) vs slow lane (nightly)
- Artifact retention policy
Primary Agents:
- data-model-and-migrations β Schema, upgrades
- backward-compatibility β Deprecation, BC breaks
Supporting Agents:
- integration-testing β Migration tests
- regression-suite-curator β Upgrade scenarios
Mandatory Checks:
- Upgrade-from-N-1 tests
- Idempotent migrations
- Deprecation policy documented
- Contract tests for data structures
Primary Agents:
- onboarding-and-quickstart β First-run experience
- makefile-justfile-designer β CLI commands
- documentation-quality-auditor β Docs validation
Supporting Agents:
- repo-template-architect β Structure consistency
Mandatory Checks:
- "One command" setup works
- Docs are executable (examples compile)
- README is current and accurate
Before selecting agents, classify the task:
| Signal | T1 | T2 | T3 |
|---|---|---|---|
| Files | 1-2 | 3-5 | 6+ |
| Existing tests | Yes | Partial | No |
| Risk | Low | Medium | High |
| Architecture change | No | Minor | Yes |
Tool Assignment:
- T1 (Routine): Copilot β inline suggestions, constrained scope
- T2 (Analytical): Cursor/ChatGPT β code review, refactoring analysis
- T3 (Complex): Claude Code β full-context, architecture decisions
Then proceed to Step 1.
- Code: New features, bug fixes, refactoring
- Tests: Test creation, test infrastructure
- CI: Workflow changes, job configuration
- Packaging: Build, release, distribution
- Security: Auth, data handling, secrets
- A11y: Accessibility improvements
- Perf: Performance optimization
- Multisite: Network-aware changes
- i18n: Localization, RTL
- Docs: Documentation updates
- Mixed: Spans multiple domains
| Level | Scope | Examples |
|---|---|---|
| Low | Formatting, docs, comments | README update, code style |
| Medium | Config, lint rules, minor features | ESLint config, new utility |
| High | Auth, data, REST, files, multisite, release | Login flow, database schema, API endpoints |
- Always include qa-director for anything affecting gates
- Add 1β2 primary specialists per domain involved
- Add supporting agents only for missing outputs
- Cap at 6 agents unless truly necessary
| Phase | Activities | Outputs |
|---|---|---|
| A: Plan | Analyze, checklist, acceptance criteria | Plan document |
| B: Implement | Write code, configs, tests | Source files |
| C: Verify | Run tests, validate gates | Test results, artifacts |
| D: Document | Update docs, handoff notes | Documentation |
When agents disagree, apply this priority order:
- Security > Performance > Accessibility > Correctness > DX > Style
- Multisite correctness > Single-site convenience
- Determinism > "Fast but flaky"
- Ship safe > "Ship fast"
| Conflict | Resolution |
|---|---|
| Performance vs Security | Security wins; optimize safely |
| Fast tests vs Thorough tests | Fast on PR, thorough on nightly |
| DX vs Correctness | Correctness wins; improve DX separately |
| New feature vs BC | Maintain BC; deprecate gracefully |
Every routed task must produce:
Primary Agents:
- agent-name: one-line justification
Supporting Agents:
- agent-name: one-line justification
- Files to create/modify (paths)
- Commands to add
- CI jobs to add
- Documentation to write
- What blocks PR merge
- What runs on nightly
- What runs on release-candidate
- Report locations (JUnit, SARIF, screenshots, traces, LHCI)
- Retention policy
- Upload conditions
- Local commands to validate
- CI validation steps
- Manual verification if needed
- What remains manual
- What may be noisy/flaky
- Known limitations
agents/
βββ AGENT_INDEX.md # This file
βββ orchestrators/
β βββ qa-director.md
β βββ repo-template-architect.md
β βββ test-architecture.md
β βββ risk-manager.md
βββ specialists/
β βββ testing/
β β βββ unit-testing.md
β β βββ integration-testing.md
β β βββ e2e-playwright.md
β β βββ visual-regression.md
β β βββ regression-suite-curator.md
β β βββ test-data-and-fixtures.md
β βββ accessibility/
β β βββ a11y-tree-and-aria-auditor.md
β β βββ keyboard-and-focus-specialist.md
β β βββ storybook-a11y-specialist.md
β β βββ manual-a11y-protocol.md
β βββ security/
β β βββ threat-modeling.md
β β βββ wp-security-patterns.md
β β βββ pentest-playbook.md
β β βββ secrets-and-supply-chain.md
β βββ wordpress/
β β βββ multisite-specialist.md
β β βββ data-model-and-migrations.md
β β βββ backward-compatibility.md
β β βββ wp-hooks-architecture.md
β β βββ i18n-l10n-rtl-specialist.md
β βββ release/
β β βββ packaging-and-dist-builder.md
β β βββ wporg-readme-and-assets.md
β β βββ plugin-header-and-metadata.md
β β βββ release-manager.md
β βββ ci/
β β βββ github-actions-architect.md
β β βββ reporting-and-artifacts.md
β β βββ linting-and-static-analysis.md
β β βββ compatibility-matrix.md
β βββ dx/
β β βββ onboarding-and-quickstart.md
β β βββ makefile-justfile-designer.md
β β βββ contributing-and-pr-gates.md
β βββ extras/
β βββ flaky-test-tamer.md
β βββ failure-injection-chaos-lite.md
β βββ legal-and-licensing-checker.md
β βββ documentation-quality-auditor.md
| Concern | Go-To Agent |
|---|---|
| "Tests are flaky" | flaky-test-tamer |
| "Need multisite support" | multisite-specialist |
| "RTL is broken" | i18n-l10n-rtl-specialist |
| "Preparing a release" | release-manager + packaging-and-dist-builder |
| "Security review needed" | wp-security-patterns + threat-modeling |
| "CI is slow" | github-actions-architect |
| "Accessibility audit" | a11y-tree-and-aria-auditor |
| "Database schema change" | data-model-and-migrations |
| "New contributor setup" | onboarding-and-quickstart |
| "Quality gates unclear" | qa-director |