aura: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from Naridon-Inc/aura. It costs 571 tokens per session, scanned A, original, Apache-2.0.

A repository workflow that tracks code structures such as functions and classes instead of only text lines. It checks planned changes, records the reason for commits, and reviews changes for possible regressions.

In plain words
What is it for?
Use it before coding, during multi-file work, before commits, and after implementation to inspect and review changes.
Why use it?
It adds checks against accidental deletions, mismatches between an intended change and the code changed, and other regressions.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

This is Naridon-Inc/aura's own configuration. It tells Windsurf how to work on aura itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aura configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Naridon-Inc/aura. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Naridon-Inc/aura/master/.windsurfrules
Clone the repo
git clone --depth 1 https://github.com/Naridon-Inc/aura

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/naridon-inc/aura/windsurfrules/github.svg)](https://agentmods.dev/rules/naridon-inc/aura/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/naridon-inc/aura/windsurfrules"><img src="https://agentmods.dev/badge/rules/naridon-inc/aura/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/naridon-inc/aura/windsurfrules"><img src="https://agentmods.dev/badge/rules/naridon-inc/aura/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 571 This file is loaded in full into every session.
When invoked 571 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 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.1 $0.00571 $0.00571
Opus 5.5 $0.00228 $0.00228
Sonnet 5.5 $0.00114 $0.00114
Haiku 4.5 $0.00057 $0.00057

Measured 1mo ago against content hash 2d7d5af5ab51, 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.

.windsurfrules · 57 lines

How it starts

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

AURA SEMANTIC ENGINE — MANDATORY PROTOCOL FOR WINDSURF (CODEIUM)

You are Cascade, the AI inside Windsurf IDE by Codeium. Model: Claude Sonnet 4.6 / Codeium model (varies) Aura Version: v0.7.1 Integration: Terminal commands

YOU MUST USE AURA. THIS IS NOT OPTIONAL.

Aura is a semantic version control engine running in this repository. It tracks code at the AST level — not text lines. It catches bugs, prevents accidental deletions, and verifies your work mathematically. Use it or you will cause regressions.


MANDATORY WORKFLOW

Before writing code

  1. Run in terminal: aura status — check tracked nodes, session, strict mode
  2. For multi-file features: aura plan "objective" — get wave plan, then aura execute
  3. To understand existing code: aura goal-trace "what you need to verify"

While writing code

  1. Before every commit, run: aura log-intent "1-2 sentence WHY description"
    • The pre-commit hook matches your intent to AST changes
    • Mismatches are blocked as Intent Poisoning
  2. Periodically run: aura pr-review --base main — catches bugs compilers miss

After completing work

  1. Run: aura pr-review --base main — fix any violations
  2. Run: aura goal-trace "user-facing behavior" — verify implementation

When something breaks

  1. Run: aura rewind <function_name> <file> — surgically revert one function, zero merge conflicts

When context is large

  1. Run: aura handover windsurf — generates compressed XML payload for fresh session

COMMAND REFERENCE

When Command
Start of session aura status
Multi-file feature aura plan "objective" → aura execute
Before commit aura log-intent "why"
Code review aura pr-review --base main
Verify behavior aura goal-trace "goal"
Fix broke something aura rewind <fn> <file>
Context too big aura handover windsurf
Health check aura doctor

NEVER DO THIS

  • Commit without aura log-intent
  • Delete functions without explaining why in intent
  • Skip aura plan for 3+ file features
  • Ignore aura pr-review findings

Read the full file on GitHub · 57 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 · 57 lines · 571 tokens per session scan A 2d7d5af5ab51

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository Naridon-Inc/aura (49 stars, last pushed 6d ago), licensed Apache-2.0. It adds 571 tokens to every session, about $0.0023 per session on Opus 5.5. 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-09-13.