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.
npx agentmods add rules/realistsec/mpa-first-guidelines/mpa-relaxed-rulesgit clone --depth 1 https://github.com/RealistSec/mpa-first-guidelinesWrote 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.
[](https://agentmods.dev/rules/realistsec/mpa-first-guidelines/mpa-relaxed-rules)<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>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.
| Model | Per session | Once 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 |
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.
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');
});
});
});
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.
- 4d ago First seen · 165 lines · 0 tokens per session scan A 910240d4e80a
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.
Other cursor rules, from other repositories
webdriver-management
Selenium WebDriver lifecycle management — driver factory, explicit waits, browser options, and teardown.
component-development
Modern React + TypeScript component patterns — hooks, typed props, performance optimization, forms, and testing.
api-testing
Cypress network interception and API testing patterns (cy.intercept, service mocking, request/response validation).
app-router-patterns
Next.js 14+ App Router patterns — Server Components, Client Components, Route Handlers, Server Actions, and metadata API.
page-object-patterns
Page Object Model patterns for Selenium — BasePage, component objects, and fluent interfaces.
test-patterns
Selenium pytest test patterns — data-driven tests, fixtures, error handling, and performance checks.