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.
git 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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.01392 |
| Opus 5.5 | $0.00000 | $0.00557 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (11 stars, last pushed 12mo 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.
mpa-relaxed-rules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mpa-relaxed-rulesRealistSec/mpa-first-guidelines | Cursor rule | 11 | 12mo ago | MIT | A | 0 | Cursor |
| component-developmenttugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 3,226 | Cursor |
| webdriver-managementtugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 3,012 | Cursor |
| api-testingtugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 2,697 | Cursor |
| app-router-patternstugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 2,554 | Cursor |
| test-patternstugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 2,177 | Cursor |
| testing-fundamentalstugkanboz/awesome-cursorrules | Cursor rule | 24 | 2mo ago | MIT | A | 26 | Cursor |