Cursor for WordPress Agencies: Rules, Composer, and Safe Refactoring

How a WordPress studio uses Cursor: .cursor/rules, scoped tasks, and why we never auto-deploy AI diffs.

Cursor fits WordPress agencies because most work is bounded: theme templates, ACF fields, plugin hooks, and content models — not greenfield microservices.

Project rules first

Store non-negotiables in .cursor/rules/: no page builders, ACF patterns, enqueue conventions, GDPR/Complianz notes, and «never touch wp-config secrets.»

Composer for multi-file changes

Use Composer when a task spans PHP templates + CSS + seeder scripts. Keep the prompt scoped: «money page hero only» beats «redesign the site.»

Safe refactoring checklist

  1. Run on a git branch
  2. Ask for minimal diff
  3. PHP lint + visual check on mobile
  4. Deploy via existing script — not manual FTP of AI output

Common mistakes

  • Letting the agent rename functions used across 20 templates
  • Generating fake case studies or client logos
  • Adding npm build chains to a CSS-in-git theme

Deep dive: Cursor guides

Written by a practitioner

UserAgent057

Web studio building premium WordPress sites and AI automation workflows for local businesses in Spain.

  • WordPress
  • PHP
  • AI automation
Request a free project review →