This is a free, MIT-licensed Cursor rules file for building WordPress sites with an AIML.chat agent — it keeps your AI editor installing the widget the plugin way, theme-safe, and structuring content so a grounded agent answers well. Drop it in .cursorrules and your assistant follows the right patterns.
What these rules do
On WordPress, a hand-pasted embed disappears on theme switches and fights caching plugins. These rules teach your AI editor to use the official AIML.chat plugin and WordPress hooks rather than editing theme files directly, to keep the publishable key in settings, and to write posts and pages with clear structure so the agent retrieves them cleanly. They also remind the assistant that WooCommerce pages should be indexed too. The result is an install that survives theme and plugin changes and content an agent can actually answer from.
The rules
# AIML.chat + WordPress
- Install the widget via the official AIML.chat plugin, not by editing
theme files directly; let WordPress hooks inject it.
- Keep the publishable site key in plugin settings, not in code.
- Write posts/pages with a clear title and headings; avoid walls of text.
- For WooCommerce, ensure product and policy pages are indexed.
- After publishing, remind the user to re-crawl in AIML.chat.
- Don't rely on a raw script tag in the theme — caching can break it.
How to use it
Save the block as .cursorrules at the repo root of your theme or plugin project, and your AI assistant applies it. It pairs with the WordPress setup skill for installation and the Shopify rules if you also build stores. The WordPress use case explains the agent these rules support.
Ready to build? Start free, install the plugin, and ship AI-ready content — see pricing for limits.
Why use the plugin instead of editing the theme?+
A theme-edited embed disappears on theme switches and fights caching; the plugin injects via hooks and persists.
Does it cover WooCommerce?+
Yes — the rules remind your assistant to index product and policy pages so the agent answers store questions too.
Are the rules free?+
Yes — they are MIT-licensed and free to copy. Using the agent counts toward your plan's limits; see pricing.