35-roots

A set of coding rules for Roots, Radicle, and Sage WordPress projects. It covers how WordPress content, menus, forms, custom fields, sliders, and templates fit together.

In plain words
What is it for?
Use it when building or changing Sage themes, WordPress menus and pages, ACF Pro fields, WPForms Lite forms, navigation, or Keen Slider galleries.
Why use it?
It keeps work aligned with this specific WordPress setup and prevents applying its conventions to unrelated projects.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/conlinjoe/ai-platform/35-roots
Clone the repo
git clone --depth 1 https://github.com/ConlinJoe/ai-platform

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,543 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02543
Opus 5 $0.00000 $0.01272
Sonnet 5 $0.00000 $0.00509
Haiku 4.5 $0.00000 $0.00254

Measured 2d ago against content hash eb73d8992360, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

35-roots scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/35-roots.mdc · 274 lines

How it starts

The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Roots / Radicle / Sage

Apply this rule only to Roots Radicle applications and Sage themes (typically with Acorn). Do not apply it to Laravel web applications, plain WordPress without this stack, React, Rails, or other non-WordPress projects.

For tasks involving WordPress menus, navigation, forms, ACF fields, sliders/galleries, Sage/Blade templates, Acorn, or initial page/menu architecture on this stack, follow this profile. The platform copy lives at core/project-profiles/roots-radicle.md.

Architecture

  • Follow Roots / WordPress / Sage conventions for the installed or intentionally selected ecosystem (Current-First Engineering in 00-platform).
  • Follow Framework-Native First in 00-platform.
  • WordPress remains the source of truth for content, pages, menus, menu locations, menu items, hierarchy, labels, and URLs.
  • Navi adapts WordPress navigation into structured data for Sage/Blade.
  • Sage/Blade owns presentation. Frontend layout remains code-owned.
  • ACF Pro is the preferred structured-content layer. WordPress owns native content; ACF owns intentional structured metadata. ACF is not a page builder.
  • Keen Slider is the preferred slider/carousel/gallery library. Integrate it through Sage/Vite.
  • WPForms Lite is the default forms layer for ordinary form needs. Gravity Forms remains a valid project-specific choice, not the default.
  • A project-native provisioner may establish reproducible project-defined WordPress structure. It is not a runtime CMS.
  • Acorn provides the Laravel-based application layer inside WordPress.

These stack preferences are subordinate to Current-First Engineering, Framework-Native First, compatibility checks, license/credential requirements, and explicit project ADRs/contracts. Do not force them onto existing projects that already have intentional alternatives.

Log1x Navi (https://github.com/Log1x/navi) is the preferred navigation integration for this stack. That preference is subordinate to Current-First Engineering in 00-platform.

Read the full file on GitHub · 274 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 274 lines · 0 tokens per session scan A eb73d8992360

Subscribe to this mod's changes

35-roots is a cursor rule published in the GitHub repository ConlinJoe/ai-platform (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,543 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.