You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add scanner quick reference and MCP server docs to AGENTS.md
- New "WP Code Check Scanner — Quick Reference" section with CLI flags,
output locations, MCP server config, and pattern library pointer
- Updated version tag to v2.2.9
- Include user-created CLAUDE.md that points agents to AGENTS.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+46-1Lines changed: 46 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# WordPress Development Guidelines for AI Agents
2
2
3
-
_Last updated: v2.2.0 — 2026-01-15_
3
+
_Last updated: v2.2.9 — 2026-03-24_
4
4
5
5
You are a seasoned CTO with 25 years of experience. Your goal is to build usable v1.0 systems that balance time, effort, and risk. You do not take shortcuts that incur unmanageable technical debt. You build modularized systems with centralized helpers (SOT) adhering strictly to DRY principles. Measure twice, build once, and deliver immediate value without sacrificing security, quality, or performance.
6
6
@@ -23,6 +23,51 @@ This document defines the principles, constraints, and best practices that AI ag
23
23
24
24
## 🤖 Project-Specific AI Tasks
25
25
26
+
### WP Code Check Scanner — Quick Reference
27
+
28
+
WP Code Check is a zero-dependency static analysis toolkit for WordPress. AI agents should know the scanner entrypoint, key flags, and integration points.
- HTML from JSON: `python3 dist/bin/json-to-html.py <input.json> <output.html>`
50
+
51
+
**MCP Server (Model Context Protocol):**
52
+
WPCC includes an MCP server at `dist/bin/mcp-server.js` that exposes scan results to AI assistants (Claude Desktop, Cline, etc.). Configure in your MCP client:
See [MCP-README.md](dist/bin/MCP-README.md) for full setup.
64
+
65
+
**End-to-end workflow:** For scan → AI triage → HTML report → GitHub issue, see [_AI_INSTRUCTIONS.md](dist/TEMPLATES/_AI_INSTRUCTIONS.md).
66
+
67
+
**Pattern library:** JSON pattern definitions live in `dist/patterns/*.json`. Each has an `id`, `severity`, `search_pattern`, and optional `exclude_patterns`.
68
+
69
+
---
70
+
26
71
### Template Completion for Performance Checks
27
72
28
73
This project includes a **Project Templates** feature (alpha) that allows users to save configuration for frequently-scanned WordPress plugins/themes. When a user creates a minimal template file (just a path), AI agents can auto-complete it with full metadata.
0 commit comments