Borrowing it
Nothing to install: this file belongs to vohongtho/code-intel-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/vohongtho/code-intel-platform/main/.windsurfrulesgit clone --depth 1 https://github.com/vohongtho/code-intel-platformWrote 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.
[](https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules)<a href="https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules"><img src="https://agentmods.dev/badge/rules/vohongtho/code-intel-platform/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.
<a href="https://agentmods.dev/rules/vohongtho/code-intel-platform/windsurfrules"><img src="https://agentmods.dev/badge/rules/vohongtho/code-intel-platform/windsurfrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02796 | $0.02796 |
| Opus 5.5 | $0.01118 | $0.01118 |
| Sonnet 5.5 | $0.00559 | $0.00559 |
| Haiku 4.5 | $0.00280 | $0.00280 |
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 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.
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.
This is a copy
98% identical to code-intel — 26 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.
How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Intelligence — Tool Policy
MANDATORY: Use code-intel before any code action
FORBIDDEN (never use for symbol/code discovery): grep, rg, find, cat, sed, ls
REQUIRED workflow:
code-intel search "<concept>" # replaces grep/rg/find
code-intel inspect <symbol> # replaces cat + manual reading
code-intel impact <symbol> # replaces manual caller tracing
Rules:
- NEVER open a file cold — always
code-intel searchfirst - NEVER use grep for symbols — use
code-intel searchinstead - If impact shows ≥ 5 callers → warn user: HIGH blast radius
Code Intelligence — code-intel-platform
⚠ This section is auto-managed by
code-intel analyze. Do not edit between the markers — your changes will be overwritten. Add your own notes below the<!-- code-intel:end -->marker.
FORBIDDEN: grep, rg, find, cat, sed, ls (for symbol/code discovery) REQUIRED BEFORE ANY CODE ACTION:
- code-intel search "" ← replaces grep/rg/find
- code-intel inspect ← replaces cat + manual file reading
- code-intel impact ← replaces manual caller tracing
Indexed: 6,254 nodes | 11,376 edges | 333 files | analyzed in 1.8s
Index stale? Re-run:
code-intel analyze
Mandatory Rules — ALL Agents (Amp, Claude Code, Codex, Copilot, Cursor, Aider, Gemini, Kiro, Trae, Hermes, Factory, OpenCode, Pi, Antigravity, OpenClaw, and others)
These rules apply to every coding agent or AI assistant working in this repository.
Before Implementing Any Change
- Run
code-intel search "<concept>"— find existing symbols related to the task. - Run
code-intel inspect <symbol>— understand callers, callees, and imports. - Run
code-intel impact <symbol>— check blast radius before touching anything. - If impact shows ≥ 5 direct callers → warn the user: HIGH risk.
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.
- 1mo ago First seen · 199 lines · 2,796 tokens per session scan A 91193f6933c4
windsurfrules is a cursor rule published in the GitHub repository vohongtho/code-intel-platform (3 stars, last pushed 16d ago), licensed MIT. It adds 2,796 tokens to every session, about $0.0112 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to code-intel, differing in 26 lines, and is treated as a copy.
Other cursor rules, from other repositories
refactor-cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.
techdebt
Find and eliminate technical debt across the whole codebase — duplicated code, dead code, redundant abstractions.
code-change-refactor
This rule applies when refactoring existing code to improve quality, adopt new patterns, or integrate with newly created functionality.
validator_quality
Quality Validator — check for complexity, dead code, inconsistent naming, and technical debt.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.