goodvibes: Cursor rule for Windsurf

.windsurfrules

windsurfrules is a cursor rule for Windsurf from jgiox/goodvibes. It costs 258 tokens per session, scanned A, original, Apache-2.0.

A set of coding rules for an agent working in a software project. It requires stated assumptions, simple solutions, narrowly focused changes, clear failures, and attention to common security problems.

In plain words
What is it for?
Use it as an editor rule when implementing or modifying code in an existing project.
Why use it?
It limits unnecessary edits and makes risky assumptions, hidden errors, and unsafe handling of input or secrets easier to spot.

Cursor rule for Windsurf

Written for Windsurf: a Windsurf rule.

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

Reuse

Borrowing it

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

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/jgiox/goodvibes/windsurfrules.svg)](https://agentmods.dev/rules/jgiox/goodvibes/windsurfrules)
Your own site
<a href="https://agentmods.dev/rules/jgiox/goodvibes/windsurfrules"><img src="https://agentmods.dev/badge/rules/jgiox/goodvibes/windsurfrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 258 This file is loaded in full into every session.
When invoked 258 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.00258 $0.00258
Opus 5 $0.00129 $0.00129
Sonnet 5 $0.00052 $0.00052
Haiku 4.5 $0.00026 $0.00026

Measured today against content hash d08cb0370550, 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.

.windsurfrules · 29 lines

What it actually says

Engineering Rules — goodvibes

Think before coding

State assumptions before implementing. Stop if an assumption is security-sensitive, schema-sensitive, or has multiple materially different interpretations.

Simplicity first

Stop at the first rung that holds:

  1. Does this need to exist at all? Speculative need → skip it. (YAGNI)
  2. Already in this codebase? Reuse it.
  3. Stdlib does it? Use it.
  4. Native platform feature covers it? Use it.
  5. Already-installed dependency solves it? Use it.
  6. Can it be one line? One line.
  7. Only then: the minimum code that works.

No unrequested abstractions. No boilerplate for later. Deletion over addition.

Surgical changes

Keep diffs narrow. No opportunistic reformats. No renames unless the task requires it. Only remove what your change made unused.

Fail loud

No empty catch blocks. No silent retries. No returning fake success on real failure. Error messages must be actionable.

Security

Validate input at the boundary. Keep secrets out of code and logs. Apply least privilege.

Flag immediately: SQL injection, XSS, command injection, path traversal, broken auth, leaked secrets.

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 · 29 lines · 258 tokens per session scan A d08cb0370550

Subscribe to this mod's changes

windsurfrules is a cursor rule published in the GitHub repository jgiox/goodvibes (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 258 tokens to every session, about $0.0013 per session on Opus 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-06.