ai-mind-map: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from shdra06/ai-mind-map. It costs 960 tokens per session, scanned A, original, MIT.

A set of workspace rules for using AI Mind Map, a persistent map of a project's code and recent context. It tells the coding agent to align the map with the active project before searching.

In plain words
What is it for?
Setting the active project, checking index status, reindexing after a Git checkout, and choosing tools for code searches and symbol explanations.
Why use it?
It reduces confusion when switching projects and helps avoid searching an outdated code index. It also gives the agent a consistent way to find symbols, files, and changes.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

This is shdra06/ai-mind-map's own configuration. It tells Windsurf how to work on ai-mind-map 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 ai-mind-map configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shdra06/ai-mind-map. 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/shdra06/ai-mind-map/main/.windsurfrules
Clone the repo
git clone --depth 1 https://github.com/shdra06/ai-mind-map

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/shdra06/ai-mind-map/windsurfrules/github.svg)](https://agentmods.dev/rules/shdra06/ai-mind-map/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/shdra06/ai-mind-map/windsurfrules"><img src="https://agentmods.dev/badge/rules/shdra06/ai-mind-map/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/shdra06/ai-mind-map/windsurfrules"><img src="https://agentmods.dev/badge/rules/shdra06/ai-mind-map/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 960 This file is loaded in full into every session.
When invoked 960 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.00960 $0.00960
Opus 5.5 $0.00384 $0.00384
Sonnet 5.5 $0.00192 $0.00192
Haiku 4.5 $0.00096 $0.00096

Measured 8d ago against content hash adcb49063863, 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 8d 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 · 63 lines

How it starts

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

AI Mind Map MCP — Code Memory Engine (v1.22+)

You have the AI Mind Map MCP server connected. It is a persistent code memory system that eliminates redundant file re-reading and context loss between sessions, saving 80–99% of tokens.

🚀 FIRST THING TO DO IN EVERY CONVERSATION

  1. Call mindmap_status to verify project alignment.
  2. If the active workspace is not set, call mindmap_set_project(projectPath: "<absolute-path>").
    • This ONE call does everything: switches projects, auto-reindexes if needed, and returns previous session context and recent file/symbol changes.
    • Do NOT call reindex or file search before setting the project.

⚡ Quick Lookup: "I need to..." → Use this tool

🧭 Session & Project Alignment

  • Switch or resume project → mindmap_set_project(projectPath: "...") ⭐⭐ (THE first call)
  • Check index status & db path → mindmap_status()
  • Force re-index after git checkout → mindmap_reindex(force: false)

🔍 Find & Understand Code (Without Reading Full Files)

  • Search by symbol or concept → mindmap_smart_search(query: "...", mode: "hybrid") ⭐
  • Everything about a symbol in 1 call → mindmap_explain(symbol: "...") ⭐ (signature + callers + callees + layer + blast radius)
  • Understand file structure without reading → mindmap_file_skeleton(file: "...") ⭐ (saves 3–10K tokens/file)
  • Read targeted code lines with symbol context → mindmap_read_lines(filePath: "...", startLine: X, endLine: Y)
  • Full project architecture map → mindmap_project_map(detail: "standard")

✏️ Change Tracking & Verification

  • Verify edits atomically (<50ms AST diffs) → mindmap_verify_changes(filePath: "...") ⭐ (DO NOT re-read full files!)

🧠 Persistent Memory & Decisions (Cross-Session)

  • Store a convention or gotcha → mindmap_remember(content: "...", category: "...", tags: [...], relatedFiles: [...])
  • Recall past decisions or facts → mindmap_recall(query: "...")
  • Record an architectural decision (ADR) → mindmap_decide(title: "...", description: "...", rationale: "...", alternatives: [...], consequences: [...], relatedFiles: [...], tags: [...])

Read the full file on GitHub · 63 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. 8d ago First seen · 63 lines · 960 tokens per session scan A adcb49063863

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository shdra06/ai-mind-map (3 stars, last pushed 9d ago), licensed MIT. It adds 960 tokens to every session, about $0.0038 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-10-18.