windsurfrules

windsurfrules is a cursor rule for Windsurf from paullukic/coograph. It costs 547 tokens per session, scanned A, original, MIT.

A project rule set for the Coograph AI coding template. It tells a coding agent which project files to read, how to navigate the code, and when to request approval before changing code.

In plain words
What is it for?
It is for enforcing session setup, code-graph-first navigation, OpenSpec change proposals, and project communication conventions.
Why use it?
It reduces inconsistent agent behaviour and prevents changes from skipping the project's required planning and review steps.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule. Also seen: mentions Claude Code.

Good fit It is for enforcing session setup, code-graph-first navigation, OpenSpec change proposals, and project communication conventions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/paullukic/coograph/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/paullukic/coograph

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/paullukic/coograph/windsurfrules/github.svg)](https://agentmods.dev/rules/paullukic/coograph/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/paullukic/coograph/windsurfrules"><img src="https://agentmods.dev/badge/rules/paullukic/coograph/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/paullukic/coograph/windsurfrules"><img src="https://agentmods.dev/badge/rules/paullukic/coograph/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 547 This file is loaded in full into every session.
When invoked 547 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.00547 $0.00547
Opus 5.5 $0.00219 $0.00219
Sonnet 5.5 $0.00109 $0.00109
Haiku 4.5 $0.00055 $0.00055

Measured 9d ago against content hash 051a8320cc66, 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 9d 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.

plugin/template/templates/windsurf/.windsurfrules · 36 lines

How it starts

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

Coograph Conventions

This project ships with the Coograph AI coding template. Follow these rules at every session.

Invocation

If the user types /coograph-init (or asks to "initialize the project", "set up coograph"), follow .github/skills/coograph-init/SKILL.md exactly.

If the user types /coograph-retro (or asks to "run a retro", "check the guardrails"), follow .github/skills/coograph-retro/SKILL.md exactly. It measures rule violations and session cost from signals captured in Claude Code sessions and proposes instruction and hook edits as an OpenSpec. It never applies. This tool does not capture signals itself; the skill still runs the analyzer and, when nothing was captured, says so.

If the user types /coograph-docs-restructure (or asks to "restructure the docs", "shrink the instruction files"), follow .github/skills/coograph-docs-restructure/SKILL.md exactly. It proposes an OpenSpec first and migrates only after approval.

Before editing a file or running a command, check GOTCHAS.md for entries whose paths: or commands: match it, and follow their Fix / rule.

On session start

  1. Read .github/copilot-instructions.md — full project conventions.
  2. Read .github/instructions/brutal-honesty.instructions.md — communication style.
  3. Check openspec/changes/ for in-progress work (skip archive/).

Code-graph first

ALWAYS use the code-graph (get_minimal_context, query_graph) before any codebase navigation. Fall back to sqlite3 .code-graph/graph.db only when the MCP server is unavailable. Fall back to grep/glob ONLY when the database is genuinely absent.

OpenSpec gate

Any change modifying 2+ files, touching a spec, altering a public interface, or adding new behavior MUST go through openspec/changes/<date>-<slug>/ with user approval BEFORE code. Exemptions: typo fix, comment-only edit, user-dictated config bump, follow-up on approved in-progress OpenSpec. "Trivial", "obvious", "small" are NOT exemptions.

Workflow

Plan → Propose (OpenSpec) → Apply → Quality Gates → Review Gate → Archive. Skip only for literal exemptions above. After 3 failed attempts, stop and ask.

Read the full file on GitHub · 36 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. 9d ago Changed · +4 lines · +97 tokens per session 051a8320cc66
  2. 26d ago Changed · +2 lines · +94 tokens per session c23abebed2dc
  3. 1mo ago First seen · 30 lines · 356 tokens per session scan A 8f008f9dc813

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository paullukic/coograph (17 stars, last pushed 9d ago), licensed MIT. It adds 547 tokens to every session, about $0.0022 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-16.