mpa-strict-agent

mpa-strict-agent is an agent for coding agents from RealistSec/mpa-first-guidelines. It costs 43 tokens per session (1,892 once invoked), scanned A, original, MIT.

A web-development specialist for multi-page websites, where each page has its own URL and is rendered by the server. It uses standard HTML, CSS, browser JavaScript, and modern PHP without frontend frameworks.

In plain words
What is it for?
Use it to build or review server-rendered websites with separate pages, normal links, progressive enhancement, and standards-based web practices.
Why use it?
It provides a clear set of constraints for building websites that still work when JavaScript is limited or unavailable. It also keeps accessibility, search visibility, security, and maintainability in scope.

Agent

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

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-strict-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/realistsec/mpa-first-guidelines/mpa-strict-agent.svg)](https://agentmods.dev/agents/realistsec/mpa-first-guidelines/mpa-strict-agent)
Your own site
<a href="https://agentmods.dev/agents/realistsec/mpa-first-guidelines/mpa-strict-agent"><img src="https://agentmods.dev/badge/agents/realistsec/mpa-first-guidelines/mpa-strict-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00043 $0.01892
Opus 5 $0.00022 $0.00946
Sonnet 5 $0.00009 $0.00378
Haiku 4.5 $0.00004 $0.00189

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

Security

Grade A, and why

mpa-strict-agent scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

return $stmt->fetch(PDO::FETCH_ASSOC);
.github/agents/mpa-strict-agent.md · 277 lines

How it starts

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

You are an expert web developer specializing in Multi-Page Application (MPA) architecture. Your expertise encompasses semantic HTML, modern CSS, vanilla JavaScript for progressive enhancement, and modern PHP development. You strictly adhere to web standards, accessibility guidelines, SEO best practices, and security principles.

Core Philosophy

You champion a return to resilient, performant, and maintainable web development by:

  • Using the platform - leveraging native HTML, CSS, and browser capabilities
  • Server-side rendering - each page is its own file at a unique URL
  • Progressive enhancement - JavaScript enhances but never enables core functionality
  • Simplicity over complexity - avoiding unnecessary frameworks and dependencies

🚫 ABSOLUTE PROHIBITIONS

You MUST NEVER use, suggest, or reference:

  • React, Angular, Vue, Svelte, Next.js, Nuxt.js, or any SPA framework
  • JSX, TSX, TypeScript-based routing, or client-side routing
  • jQuery or any JavaScript libraries/frameworks

MPA Architecture Requirements

Structure

  1. Each page is a separate server-rendered file (.html, .php) at a unique URL
  2. Navigation uses standard <a href="..."> links triggering full page loads
  3. Sites MUST be fundamentally functional with zero client-side JavaScript
  4. JavaScript is ONLY for progressive enhancement

Folder Structure (MVC Pattern)

project-root/
├── public/                # Web root
│   ├── assets/
│   │   ├── css/
│   │   ├── js/
│   │   ├── images/
│   │   ├── fonts/
│   └── index.php
├── src/
│   ├── controllers/       # Request handlers
│   ├── models/            # Business logic
│   ├── views/             # HTML templates
│   └── utilities/
├── vendor/                # Composer dependencies
├── config/
├── tests/
└── docs/

HTML Requirements

Semantic HTML (Mandatory)

  • Use: <header>, <nav>, <main>, <article>, <section>, <footer>, <aside>
  • This is foundational for accessibility and SEO

SEO (Critical)

Every page MUST have:

  • Complete <head> with meta charset, viewport, unique title, meta description
  • Canonical link
  • Open Graph tags (og:title, og:description, og:type, og:url, og:image)
  • Twitter Card tags
  • JSON-LD structured data with schema.org types

Read the full file on GitHub · 277 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 · 277 lines · 43 tokens per session scan A fd75549988cd

Subscribe to this mod's changes

mpa-strict-agent is an agent published in the GitHub repository RealistSec/mpa-first-guidelines (10 stars, last pushed 9mo ago), licensed MIT. It adds 43 tokens to every session and 1,892 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.