windsurfrules

windsurfrules is a cursor rule for Windsurf from benseverndev-oss/goldenmatch. It costs 1,317 tokens per session, scanned B, a copy of cursorrules, MIT.

Repository rules for GoldenMatch extensions, including a Rust bridge, a PostgreSQL extension, and DuckDB functions for Python.

In plain words
What is it for?
Use them when developing or merging GoldenMatch SQL extensions and related Rust or Python integrations.
Why use it?
They define the required branch, pull-request, account, and environment procedures for changing these database-related extensions.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

Good fit Use them when developing or merging GoldenMatch SQL extensions and related Rust or Python integrations.

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

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/benseverndev-oss/goldenmatch/windsurfrules/github.svg)](https://agentmods.dev/rules/benseverndev-oss/goldenmatch/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/benseverndev-oss/goldenmatch/windsurfrules"><img src="https://agentmods.dev/badge/rules/benseverndev-oss/goldenmatch/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/benseverndev-oss/goldenmatch/windsurfrules"><img src="https://agentmods.dev/badge/rules/benseverndev-oss/goldenmatch/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,317 This file is loaded in full into every session.
When invoked 1,317 The same file — it is already loaded in full.
Security scan B 1 finding. 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.01317 $0.01317
Opus 5.5 $0.00527 $0.00527
Sonnet 5.5 $0.00263 $0.00263
Haiku 4.5 $0.00132 $0.00132

Measured 1mo ago against content hash 8ee84a9d5cb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

windsurfrules scanned grade B with 1 finding 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 1mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- System Python for Postgres: `sudo rm -f /usr/lib/python3/dist-packages/typing_extensions.py` then `sudo pip install --break-system-packages goldenmatch`
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.

packages/rust/extensions/.windsurfrules · 74 lines

How it starts

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

GoldenMatch Extensions

Native SQL extensions for GoldenMatch (D:\show_case\goldenmatch).

  • Main repo: D:\show_case\goldenmatch -- Python entity resolution toolkit (v1.1.0+).
  • This repo: Rust bridge + Postgres extension + DuckDB Python UDFs
  • PyPI packages: goldenmatch (Python), goldenmatch-duckdb (DuckDB UDFs)

Branch & Merge SOP (all Golden Suite repos)

  • Feature work goes on feature/<name> branches, never directly to main
  • Merge via squash merge PR (watchers see PR activity, history stays clean)
  • PR title format: feat: <description> or fix: <description>
  • PR body: summary bullets + test plan
  • Merge when: tests pass, docs updated. Days not weeks.
  • After merge: delete remote branch

Environment

  • Windows 11, bash shell (Git Bash) -- use Unix paths
  • Two GitHub accounts: benzsevern (personal, for this repo) and benzsevern-mjh (work)
  • MUST gh auth switch --user benzsevern before push, switch back to benzsevern-mjh after
  • Rust 1.94.0 at C:\Users\bsevern\.cargo\bin -- must set RUSTUP_HOME="C:/Users/bsevern/.rustup" and CARGO_HOME="C:/Users/bsevern/.cargo" in every bash command
  • No admin privileges -- no LLVM/libclang, no WSL2. pgrx builds only work in CI (Linux)
  • PostgreSQL 16 portable at C:\Users\bsevern\tools\pg16portable\pgsql
  • Bridge crate compiles locally. Postgres crate requires Linux (CI only).

Architecture

  • Rust workspace (Cargo.toml) contains only bridge/ crate
  • postgres/ is excluded from workspace (exclude = ["postgres"]) -- pgrx 0.12.9 bug with SQL generation in workspace mode
  • duckdb/ is a standalone Python package (not Rust)

bridge/ (goldenmatch-bridge)

  • Shared crate: embeds CPython via pyo3, calls goldenmatch Python API
  • api.rs -- wrappers for dedupe, match, score_strings, score_pair, explain_pair, dedupe_pairs (structured), dedupe_clusters (structured)
  • convert.rs -- JSON <-> Polars DataFrame conversion (future: Arrow C Data Interface)
  • error.rs -- BridgeError enum with From impls for PyErr and ArrowError

Read the full file on GitHub · 74 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. 1mo ago First seen · 74 lines · 1,317 tokens per session scan B 8ee84a9d5cb2

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository benseverndev-oss/goldenmatch (133 stars, last pushed today), licensed MIT. It adds 1,317 tokens to every session, about $0.0053 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). It is 100% identical to cursorrules, differing in 0 lines, and is treated as a copy.