windsurfrules

windsurfrules is a cursor rule for Windsurf from JOHNNYMACONNY/mighty-router. It costs 742 tokens per session, scanned A, a copy of cursorrules, MIT.

A set of rules for an AI coding assistant that classifies requests and selects an execution profile before code changes, research, or audits. It also defines extra checks for configured high-risk paths such as databases and security settings.

In plain words
What is it for?
Use it to route tasks, inspect project-specific risk settings, and require the forensic profile for changes to protected paths or security-critical files.
Why use it?
It makes the assistant apply stricter handling to sensitive parts of a project instead of treating every task the same way.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

Good fit Use it to route tasks, inspect project-specific risk settings, and require the forensic profile for changes to protected paths or security-critical files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/johnnymaconny/mighty-router/windsurfrules
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.

Clone the repo
git clone --depth 1 https://github.com/JOHNNYMACONNY/mighty-router

Made for: Windsurf.

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 windsurfrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/johnnymaconny/mighty-router/windsurfrules/github.svg)](https://agentmods.dev/rules/johnnymaconny/mighty-router/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/johnnymaconny/mighty-router/windsurfrules"><img src="https://agentmods.dev/badge/rules/johnnymaconny/mighty-router/windsurfrules/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.

agentmods 80×15 button for windsurfrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/johnnymaconny/mighty-router/windsurfrules"><img src="https://agentmods.dev/badge/rules/johnnymaconny/mighty-router/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 742 This file is loaded in full into every session.
When invoked 742 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00742 $0.00742
Opus 5.5 $0.00297 $0.00297
Sonnet 5.5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

Measured 1mo ago against content hash 0bf3c08be70e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

windsurfrules 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 1mo 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.

Origin

This is a copy

100% identical to cursorrules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/.windsurfrules · 61 lines

How it starts

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

Mighty Router — Cursor AI Configuration

You are running with the Mighty Router rules enabled. Before proceeding with any code modification, research, or audit, you must classify the request and apply the corresponding execution profile rules.


1. Automatic Escalation Rules

Regardless of self-classification, you MUST use the MIGHTY-FORENSIC profile if the task involves modifying any files or directories matching project-specific or default high-risk paths.

Dynamic Configuration

Check if .mightyrc or .mighty.json exists in the workspace root. If it does:

  1. Read the file and locate the high_risk_paths array.
  2. If any file about to be modified matches any pattern or folder name in high_risk_paths, automatically escalate the task to the MIGHTY-FORENSIC profile.

Fallback/Default Paths

If no project-specific configuration is found, automatically escalate if any target path matches:

  • /gateway/ or /transports/
  • /persistence/, /db/, or database schemas
  • SOUL.md or core agent instructions/prompts
  • Security-critical settings or credentials

2. Profile Selection

Classify the task into exactly ONE of the following profiles:

[Profile 1] MIGHTY-LIGHT

  • Use Case: General queries, explanations, code walkthroughs, or simple questions.
  • Rules:
    1. Do not use XML tags.
    2. Keep responses brief, direct, and telegraphic.
    3. Do not run commands or modify files.

[Profile 2] MIGHTY-VERIFY

  • Use Case: Verification tasks, UAT checks, checking if tests passed, auditing logs/artifacts.
  • Rules:
    1. Verify expected artifacts exist on disk (do not assume).
    2. Differentiate clearly between: Passed / Failed / Not Checked / Not Provable.
    3. Present a concise bulleted summary of checked evidence. Do not modify files.

[Profile 3] MIGHTY-STANDARD

  • Use Case: Routine, low-risk code edits, refactors, or new minor files.
  • Rules:
    1. No XML tags (to save output tokens).
    2. Check first: Verify target files exist and read them before editing.
    3. Plan: State a 1-3 sentence plan in plain text.
    4. Act: Apply changes using the minimum necessary edit footprint.
    5. Verify: Run tests or compile the code to confirm success.

Read the full file on GitHub · 61 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. 1mo ago First seen · 61 lines · 742 tokens per session scan A 0bf3c08be70e

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository JOHNNYMACONNY/mighty-router (1 stars, last pushed 1mo ago), licensed MIT. It adds 742 tokens to every session, about $0.0030 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to cursorrules, differing in 0 lines, and is treated as a copy.