KDD: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from MauricioPerera/KDD. It costs 196 tokens per session, scanned A, a copy of cursorrules, MIT.

A set of repository rules for Knowledge-Driven Development, where written task requirements and verification tests guide implementation. It requires agents to read the project instructions and fixed tests before changing code.

In plain words
What is it for?
It is for enforcing task contracts, limiting edits to declared files, and running the repository's specified validation steps.
Why use it?
It prevents implementation from drifting away from documented requirements and protects tests that define expected behavior.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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/mauricioperera/kdd/windsurfrules.svg)](https://agentmods.dev/rules/mauricioperera/kdd/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/mauricioperera/kdd/windsurfrules"><img src="https://agentmods.dev/badge/rules/mauricioperera/kdd/windsurfrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 196 This file is loaded in full into every session.
When invoked 196 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 97% 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.00196 $0.00196
Opus 5 $0.00098 $0.00098
Sonnet 5 $0.00039 $0.00039
Haiku 4.5 $0.00020 $0.00020

Measured yesterday against content hash 725206263b10, 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 yesterday.

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

97% identical to cursorrules — 4 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 · 16 lines

What it actually says

Reglas para Windsurf en este repositorio

Este repo usa Knowledge-Driven Development (KDD). Las reglas completas para cualquier agente de IA (incluido Windsurf) estan en .agents/AGENTS.md — leelo antes de escribir codigo.

Resumen minimo: antes de implementar, lee knowledge/contracts/<task>.md (el task contract), su oraculo congelado en tests/ (NO lo reescribas — esta sellado por tests_sha256), y respeta touch_only (perimetro de archivos declarado). Verificacion completa (niveles de gate, comandos exactos): knowledge/validacion.md.

No dupliques este contenido en otro lado: si .agents/AGENTS.md cambia, este archivo puede quedar desactualizado — ante duda, .agents/AGENTS.md manda.

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. yesterday First seen · 16 lines · 196 tokens per session scan A 725206263b10

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository MauricioPerera/KDD (7 stars, last pushed 2d ago), licensed MIT. It adds 196 tokens to every session, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to cursorrules, differing in 4 lines, and is treated as a copy.

Related

Other cursor rules, from other repositories

frontend-architecture

Cursor rule "frontend-architecture" from tomasz-tomczyk/crit, covering frontend architecture, two-paradigm page fork, module pattern, shared modules (used by both modes) and code-review modules (used only by code-review mode).

tomasz-tomczyk/crit · 4 tokens

proxy-auth-transport

Every CLI command or browser UI action that calls a crit-web API must work in both modes.

tomasz-tomczyk/crit · 5 tokens

frontend-css

Cursor rule "frontend-css" from tomasz-tomczyk/crit, covering css rules, responsive & touch and selectors.

tomasz-tomczyk/crit · 0 tokens

local-webhook-development

Use hookdeck listen for local webhook testing—prefer it over ngrok or public endpoints; never test in production.

hookdeck/agent-skills · 23 tokens

testing-isolation-logic-agent

Apply when designing or refactoring CLI command implementations or writing unit tests for them. Promotes separating the core business logic of a command from I/O operations (argument parsing, console output, file system access, network requests) to enhance testability. Encourages testing the isolated logic functions…

appboypov/pew-pew-cli · 58 tokens

testing-mocks-spies-stubs-agent

Apply when writing unit tests that involve functions or modules with side effects (e.g., file system access, network requests, database interactions, timers, complex dependencies). Guides the use of test doubles like mocks, spies, and stubs (using frameworks like Jest) to isolate the unit under test and control its…

appboypov/pew-pew-cli · 71 tokens