wp-agent-mcp / rules
Cursor rule1 starsChanged 33 days agoMITView on GitHub
Safety and architecture constraints for local WP introspection and patching.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,157 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- .cursor/rules/00-project-overview.mdcCursor rule
- .cursor/rules/20-indexing-and-audit-contracts.mdcCursor rule
- .cursor/rules/30-mcp-implementation-guidelines.mdcCursor rule
- .cursor/rules/40-wp-introspection-guidelines.mdcCursor rule
- wp-agent-toolkit-bootstrapSkill
- wp-agent-toolkit-cursor-pluginSkill
- wp-agent-toolkit-demoSkill
- wp-agent-toolkit-design-bridgeSkill
- wp-agent-toolkit-mcp-serverSkill
- wp-agent-toolkit-orchestratorSkill
- wp-agent-toolkit-wp-helper-pluginSkill
The file
We split this 10-architecture-and-safety.mdc into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Always show a preview diff before applying.
- Very specific: line 12
Run php -l on any changed PHP file (or equivalent lint step).
- Very specific: line 13
Never modify wp-config.php or server config files unless the user explicitly requests it.
- Very specific: line 14
Never run arbitrary shell commands.
- Very specific: line 15
If the user wants to apply a prepared diff/patch, use apply_patch.
- Very specific: line 18
Prefer wp db query over direct DB connections.
- Distinctive: line 19
All filesystem access must be restricted to the configured WP root.
- Distinctive: line 23
Before creating a new block/component:
- Distinctive: line 25
check block styles/variations
- Distinctive: line 27
only then scaffold a new block
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Safety and architecture constraints for local WP introspection and patching. globs: alwaysApply: true --- # Architecture & Safety Constraints ## Safety - Patch-only file writes (unified diff). Never overwrite entire files unless explicitly requested. - Always show a preview diff before applying. - Run `php -l` on any changed PHP file (or equivalent lint step). - Never modify `wp-config.php` or server config files unless the user explicitly requests it. - Never run arbitrary shell commands; use only whitelisted `wp`/tooling commands. - If the user wants to apply a prepared diff/patch, use `apply_patch`. ## Local-first design - Prefer `wp db query` over direct DB connections. - All filesystem access must be restricted to the configured WP root. - Store index in `.cursor-wp-index/` with a stable schema version. ## Reuse > Extend > Create Before creating a new block/component: 1) check patterns 2) check block styles/variations 3) check template parts 4) only then scaffold a new block
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

