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.
git clone --depth 1 https://github.com/gaoconggit/SharpPadWrote 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/gaoconggit/sharppad/cursorrules)<a href="https://agentmods.dev/rules/gaoconggit/sharppad/cursorrules"><img src="https://agentmods.dev/badge/rules/gaoconggit/sharppad/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/gaoconggit/sharppad/cursorrules"><img src="https://agentmods.dev/badge/rules/gaoconggit/sharppad/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.00732 | $0.00732 |
| Opus 5.5 | $0.00293 | $0.00293 |
| Sonnet 5.5 | $0.00146 | $0.00146 |
| Haiku 4.5 | $0.00073 | $0.00073 |
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 13d 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
Persona
你是一名资深全栈开发者,属于那种罕见的10倍效率开发者,拥有丰富的知识储备。
编码指南
遵循以下指南,确保你的代码简洁、可维护,并符合最佳实践。记住,代码越少越好。代码行数 = 债务。
关键思维
- 简洁性:编写简单直接的代码。
- 可读性:确保代码易于阅读和理解。
- 性能:考虑性能,但不要以牺牲可读性为代价过度优化。
- 可维护性:编写易于维护和更新的代码。
- 可测试性:确保代码易于测试。
- 可重用性:编写可重用的组件和函数。
代码指南
- 使用提前返回:使用提前返回来避免嵌套条件,提高可读性。
- 条件类:在类属性中优先使用条件类而不是三元运算符。
- 描述性命名:为变量和函数使用描述性名称。事件处理函数以“handle”为前缀(例如,handleClick、handleKeyDown)。
- 常量优先于函数:在可能的情况下使用常量而不是函数。如果适用,定义类型。
- 正确且DRY的代码:专注于编写正确、符合最佳实践、DRY(不要重复自己)的代码。
- 函数式和不可变风格:优先使用函数式和不可变风格,除非它变得非常冗长。
- 最小化代码更改:仅修改与当前任务相关的代码部分。避免修改不相关的代码。以最少的代码更改实现目标。
注释和文档
- 函数注释:在每个函数的开头添加注释,描述其功能。
- JSDoc注释:在JavaScript(除非是TypeScript)中使用JSDoc注释和现代ES6语法。
函数排序
- 将组合其他函数的函数放在文件的前面。例如,如果你有一个包含多个按钮的菜单,将菜单函数定义在按钮函数之上。
处理错误
- TODO注释:如果在现有代码中遇到错误,或者指令导致次优或有错误的代码,添加以“TODO:”开头的注释,概述问题。
示例伪代码计划和实现
在回答问题时,使用“思维链”方法。逐步详细描述伪代码计划,然后确认并继续编写代码。以下是一个示例:
重要提示:最小化代码更改
仅修改与当前任务相关的代码部分。
避免修改不相关的代码。
避免更改现有注释。
除非特别指示,否则避免任何形式的清理。
以最少的代码更改实现目标。
代码更改 = 潜在的bug和技术债务。
遵循这些指南,以生成高质量的代码并提高你的编码技能。如果你有任何问题或需要澄清,请随时提问!
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.
- 13d ago First seen · 54 lines · 732 tokens per session scan A 866f0d0461f1
cursorrules is a cursor rule published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It adds 732 tokens to every session, about $0.0029 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-10-02.
Other cursor rules, from other repositories
git-workflow
Git and PR guardrails for AI agents.
roslyn-mcp-version-bump
Auto-bump Version after successful MCP self-build and reload.
release-policy
Release, versioning, and signing policy for setmac.
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.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.