windsurfrules

windsurfrules is a cursor rule for Windsurf from Frihet-io/frihet-mcp. It costs 416 tokens per session, scanned A, original, MIT.

A set of rules for safely using an ERP system for business records, accounting, and billing. It requires financial documents to remain drafts, adds retry protection, and applies Spanish and European tax-handling rules.

In plain words
What is it for?
It is for creating or handling invoices, quotes, expenses, credit notes, tax information, and sensitive customer or company identifiers through the ERP.
Why use it?
It reduces the risk of duplicate records, accidental tax submissions, unwanted money movements, and exposed personal or banking details. Calculations stay with the ERP rather than being recreated by the agent.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

Good fit It is for creating or handling invoices, quotes, expenses, credit notes, tax information, and sensitive customer or company identifiers through the ERP.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/frihet-io/frihet-mcp/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/Frihet-io/frihet-mcp

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/frihet-io/frihet-mcp/windsurfrules/github.svg)](https://agentmods.dev/rules/frihet-io/frihet-mcp/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/frihet-io/frihet-mcp/windsurfrules"><img src="https://agentmods.dev/badge/rules/frihet-io/frihet-mcp/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/frihet-io/frihet-mcp/windsurfrules"><img src="https://agentmods.dev/badge/rules/frihet-io/frihet-mcp/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 416 This file is loaded in full into every session.
When invoked 416 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.00416 $0.00416
Opus 5.5 $0.00166 $0.00166
Sonnet 5.5 $0.00083 $0.00083
Haiku 4.5 $0.00042 $0.00042

Measured 5d ago against content hash 0865bbda92c2, 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 5d 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.

marketplace/windsurf/.windsurfrules · 25 lines

What it actually says

Frihet ERP Integration Rules for Windsurf Cascade

When interacting with Frihet ERP business records, accounting, or billing through MCP:

1. Draft-Only Mutations (Human-in-the-Loop Safeguard)

  • Always create invoices, quotes, expenses, and credit notes with strictly status: "draft".
  • NEVER trigger irreversible fiscal submissions (verifactu_submit, ticketbai_submit, face_submit) or fund movements automatically.
  • Every mutating POST request must include an Idempotency-Key header (UUIDv4) to guarantee zero duplicate documents on network retries.

2. Spanish & European Fiscal Context

  • Standard Spanish VAT (IVA) rates: 21% (general), 10% (reducido), 4% (superreducido), 0% (exento / intracomunitario).
  • Canary Islands IGIC: 7% (general), 3% / 0% (reducido / exento).
  • Ceuta & Melilla IPSI.
  • Professional Income Tax Withholdings (IRPF): 15% (standard professional), 7% (first 3 years autonomous).
  • Never inline tax arithmetic or rounding logic; always defer to Frihet server-calculated totals.

3. PII & Secret Protection

  • Mask sensitive identifiers (NIF, CIF, NIE) in user summaries unless full verification is explicitly requested.
  • Mask bank account identifiers: display only the last 4 digits of IBANs (e.g. ES** **** **** **** **** 1234).
  • Never echo bearer tokens, API keys, or raw authentication cookies.

4. Query-First Pattern

  • Before proposing any draft or record creation, query the existing records (list_invoices, list_expenses, list_clients, get_business_context) to verify if an active record already exists.
  • Present a structured summary of proposed document fields (client, items, tax breakdown, total) before asking the user for confirmation.
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. 5d ago First seen · 25 lines · 416 tokens per session scan A 0865bbda92c2

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository Frihet-io/frihet-mcp (13 stars, last pushed yesterday), licensed MIT. It adds 416 tokens to every session, about $0.0017 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-11-01.

Related

windsurfrules compared with cursor rules from other repositories

windsurfrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
windsurfrulesFrihet-io/frihet-mcpCursor rule13yesterdayMITA416Windsurf
mcp-usagePostOakLabs/ainumbers-mcp-appsCursor rule3yesterdayMITA17Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor
angular-20angular/angularCursor rule101kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule75kyesterdayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor