prism: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from provasign/prism. It costs 537 tokens per session, scanned A, a copy of cursorrules, Apache-2.0.

A set of rules for using Prism, a tool that indexes connections between functions and types in a code repository. The rules choose searches and reads based on whether the agent needs symbols, text, context, or every occurrence.

In plain words
What is it for?
They are for locating code, searching literal text, finding every use of a symbol, reading nearby lines, and opening a function or file.
Why use it?
They help the agent avoid broad or repeated searches and make completeness explicit when all references must be found. The description does not add capabilities beyond Prism's repository search and reading tools.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule. Also seen: mentions subagents.

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

Reuse

Borrowing it

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

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/provasign/prism/windsurfrules.svg)](https://agentmods.dev/rules/provasign/prism/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/provasign/prism/windsurfrules"><img src="https://agentmods.dev/badge/rules/provasign/prism/windsurfrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 537 This file is loaded in full into every session.
When invoked 537 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.00537 $0.00537
Opus 5 $0.00269 $0.00269
Sonnet 5 $0.00107 $0.00107
Haiku 4.5 $0.00054 $0.00054

Measured today against content hash 4562dc788e6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 today.

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.

.windsurfrules · 34 lines

What it actually says

Prism — context delivery

Prism indexes this repo's call and type graph. grep finds the same lines — prism tells you which of them matter (file-level precision 0.51 -> 0.91 on change tasks) and answers in one call where search-then-read takes several.

Route by the question. One call, and treat its result as final:

Question Call
where is X? prism_search(query="X") — searches symbol names AND raw text. Several names? You MUST batch: query=["X","Y"] — one search per name wastes a turn each. Know where to look: path=, glob=, files_only=true
a literal string, message or config key prism_search(query="...", scope="text") — pure grep, cheapest. Use it for TEXT; leave the default for code
EVERY site of X (rewrite them all, count them) prism_search(query="X", exhaustive=true) — results are capped at 25 by default and a capped answer to a completeness question looks complete. Say exhaustive; add files_only=true to keep it cheap
X, plus the lines around it prism_search(query="X", context=N) — one call instead of search-then-prism_read
read one function, or one file prism_lookup(name="pkg.Func") / prism_read
give me the code for X, ready to edit prism_query(task="<label>", terms=["X"]) — keys on terms; the wording changes nothing
who breaks if I change X? prism_change_impact(query="Type.method")
is my diff complete? prism_verify

Before editing an existing symbol, run prism_change_impact: declarations, every override and implementation, all resolved callers, type-resolved in one call. Relay that set as-is — re-verifying or filtering it through grep/sed/scripts measurably drops real sites.

Bash-only (subagents, CI) — same verbs, add --format text:

prism search <term>... [--path <file-or-dir>] [--exhaustive] --scope text
prism query "<task>" --terms X
prism change-impact 'Type.method'
prism lookup <pkg.Func>   |   prism read <file>   |   prism verify --base <ref>
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. today First seen · 34 lines · 537 tokens per session scan A 4562dc788e6d

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository provasign/prism (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 537 tokens to every session, about $0.0027 per session on Opus 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.