mpa-relaxed-rules

mpa-relaxed-rules is a cursor rule for Cursor from RealistSec/mpa-first-guidelines. It costs 0 tokens per session (1,392 once invoked), scanned A, original, MIT.

Guidelines for building multi-page websites, where each page has its own URL and is rendered by the server. JavaScript is optional, and jQuery is used only to add extra interactions.

In plain words
What is it for?
Use them when an agent is creating PHP or HTML pages with standard links, server-rendered content, and small jQuery enhancements.
Why use it?
They keep the main website working even when JavaScript is turned off and avoid the added complexity of single-page frameworks such as React or Vue.

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/realistsec/mpa-first-guidelines/mpa-relaxed-rules
Clone the repo
git clone --depth 1 https://github.com/RealistSec/mpa-first-guidelines

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mpa-relaxed-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/realistsec/mpa-first-guidelines/mpa-relaxed-rules.svg)](https://agentmods.dev/rules/realistsec/mpa-first-guidelines/mpa-relaxed-rules)
Your own site
<a href="https://agentmods.dev/rules/realistsec/mpa-first-guidelines/mpa-relaxed-rules"><img src="https://agentmods.dev/badge/rules/realistsec/mpa-first-guidelines/mpa-relaxed-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,392 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.01392
Opus 5 $0.00000 $0.00696
Sonnet 5 $0.00000 $0.00278
Haiku 4.5 $0.00000 $0.00139

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

Security

Grade A, and why

mpa-relaxed-rules 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 4d 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/mpa-relaxed-rules.mdc · 165 lines

How it starts

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

GitHub Copilot Instructions: MPA-First Mandate

Core Philosophy

My primary goal is to build performant, resilient, and maintainable server-rendered Multi-Page Applications (MPAs).

  • Prioritize the Platform: Use HTML, CSS, and server-side logic (PHP) first.
  • Simplicity Over Complexity: Choose simple, durable solutions over complex, trendy ones.
  • Progressive Enhancement: JavaScript is an enhancement, not a requirement. Core functionality must work without it. I use jQuery to implement these enhancements.

1. PRIME DIRECTIVE: MPA-Only Architecture

  • You MUST build server-rendered MPAs. Each distinct page or view is its own file (e.g., .php, .html) at a unique URL.
  • Navigation MUST use standard anchor links (<a href="...">) that trigger a full page load.
  • Core functionality MUST work with JavaScript disabled.

🚫 BANNED TECHNOLOGIES & PATTERNS

  • DO NOT use or reference any Single-Page Application (SPA) frameworks or libraries. This includes React, Angular, Vue, Svelte, Next.js, and Nuxt.js.
  • DO NOT use JSX, TSX, or any form of client-side routing.

2. JavaScript Rules (Progressive Enhancement with jQuery)

  • jQuery is the standard. Use jQuery for all DOM manipulation, event handling, and AJAX requests.
  • Include jQuery from a CDN in the base layout file, just before the closing </body> tag.
  • Write Unobtrusive JavaScript. Always ensure the site is fully functional if JavaScript fails or is disabled.
  • Wrap all jQuery code in $(function() { ... }); to ensure the DOM is ready.
  • Handle AJAX errors gracefully using .done(), .fail(), and .always().

Correct Pattern: Unobtrusive Toggle with jQuery

<!-- HTML works on its own -->
<a href="?show_details=true#details" class="toggle-link">Show Details</a>
<div id="details" style="display: none;">
    <p>Here are the details you requested.</p>
</div>
// JS enhances the experience
$(function() {
  $('.toggle-link').on('click', function(event) {
    event.preventDefault();
    $('#details').slideToggle(300, () => {
      const isVisible = $('#details').is(':visible');
      $(this).text(isVisible ? 'Hide Details' : 'Show Details');
    });
  });
});

Read the full file on GitHub · 165 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. 4d ago First seen · 165 lines · 0 tokens per session scan A 910240d4e80a

Subscribe to this mod's changes

mpa-relaxed-rules is a cursor rule published in the GitHub repository RealistSec/mpa-first-guidelines (10 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,392 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.