Borrowing it
Nothing to install: this file belongs to KongGithubDev/SAMP-MCP. 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/KongGithubDev/SAMP-MCP/main/.cursorrulesgit clone --depth 1 https://github.com/KongGithubDev/SAMP-MCPWrote 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/konggithubdev/samp-mcp/cursorrules)<a href="https://agentmods.dev/rules/konggithubdev/samp-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/konggithubdev/samp-mcp/cursorrules/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/konggithubdev/samp-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/konggithubdev/samp-mcp/cursorrules.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.00708 | $0.00708 |
| Opus 5.5 | $0.00283 | $0.00283 |
| Sonnet 5.5 | $0.00142 | $0.00142 |
| Haiku 4.5 | $0.00071 | $0.00071 |
Grade A, and why
cursorrules 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.
What it actually says
SAMP Project Rules for Cursor / AI agents
-
ENCODING (CRITICAL):
- Thai (Windows-874) source must stay Windows-874, byte-for-byte.
- Use encoding-aware file tools (e.g., mcp-file-tools) for ALL reads/writes/edits of .pwn/.inc/.cfg/log files — they auto-detect and preserve encoding + CRLF.
- Never re-save or transcode scripts with plain editors.
-
LANGUAGE:
- DO NOT translate Thai strings to English.
- New code must follow the existing language (Thai if applicable).
-
SAMP-MCP SCOPE (when samp-mcp is connected):
- samp-mcp is for SAMP server operations: status/query, RCON, compile ('compile_pawn' / 'compile_and_load_pawn'), audits ('audit_script', 'audit_sql', 'audit_performance', 'find_shadowing'), 'check_includes', 'get_server_diagnostics', 'manage_server', plugin/include installs.
- samp-mcp does NOT read or write script files.
- Prefer 'generate_boilerplate' / 'design_feature' for new features.
- HUD/UI textdraws: use the textdraw editor tools (textdraw_create/update/import, txd_scan for .txd sprites, model_scan/model_preview/model_export for font 5 3D model previews (.dff/.txd, .img archives), textdraw_preview for the web preview + draggable editor, textdraw_export to emit the Pawn code) instead of hand-writing coordinates.
- Custom .txd textures: edit them with the TXD editor tools (txd_open, txd_import_texture to turn a PNG into a texture with the format/mip levels you want (DXT compresses at quality=high by default), txd_texture for rename/duplicate/remove/convert, txd_export_texture, txd_save to write the file or the .img entry) instead of rebuilding dictionaries with external tools.
-
ARCHITECTURE (module pattern, when detected):
- Build every new feature as ONE self-contained module under
gamemodes/includes/system/<name>.inc(jobs:system/job/j_<name>.inc) — each module owns its state/hooks/commands/dialogs via YSI y_hooks (hook OnGameModeInit/OnPlayerConnect/OnPlayerDisconnect/OnPlayerKeyStateChange). - Register it in
gamemodes/main.pwnwith#include "includes/system/<name>.inc". - Timed actions use
StartProgress(...)+hook OnProgressFinish; messages useErrorMsg/ServerMsg/SyntaxMsg; per-player state lives inPlayerInfo[playerid][pX]or static arrays. - No gameplay logic in
main.pwn; no filterscripts for new features. - Commands are Pawn.CMD (
CMD:+flags:name(CMD_xxx)); dialogs are easyDialog (Dialog_Show+Dialog:NAMEhandlers). - PERFORMANCE: iterate players with
foreach(new i : Player); YSI timers (timer X[1000]/repeat) stopped on disconnect; threadedmysql_format+mysql_tqueryonly; Streamer dynamic objects; keepOnPlayerUpdatelight.
- Build every new feature as ONE self-contained module under
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 Changed · +2 lines · +171 tokens per session 1a096b0d302a
- 2mo ago Changed · +8 lines · +390 tokens per session 8701d4109750
- 2mo ago First seen · 16 lines · 147 tokens per session scan A a0814c1388e6
cursorrules is a cursor rule published in the GitHub repository KongGithubDev/SAMP-MCP (6 stars, last pushed 1mo ago), licensed MIT. It adds 708 tokens to every session, about $0.0028 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-08-31.
cursorrules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursorrulesKongGithubDev/SAMP-MCP | Cursor rule | 6 | 1mo ago | MIT | A | 708 | Cursor |
| AIRulesbytepine/NexusLink | Cursor rule | 9 | yesterday | MIT | A | 26 | Cursor |
| world-model-mcpputervision/state-memory-mcp | Cursor rule | 42 | 1mo ago | MIT | A | 673 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 185k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 101k | yesterday | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 75k | yesterday | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | yesterday | Apache-2.0 | A | 0 | Cursor |