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.
npx agentmods add rules/yyshawn/explain-kit/cursor-rulegit clone --depth 1 https://github.com/YYShawn/explain-kitWhat 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 | $0.00000 | $0.00661 |
| Opus 5 | $0.00000 | $0.00331 |
| Sonnet 5 | $0.00000 | $0.00132 |
| Haiku 4.5 | $0.00000 | $0.00066 |
Grade A, and why
cursor-rule 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 yesterday.
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
当用户要求给当前原型 demo 加「需求讲解」时,按以下流程(全程在原 demo 的副本里操作,原 demo 不动):
- 定位 demo 根:找到含
.html的目录作为 demo 根——可能就是当前目录,也可能是子文件夹(如demo/)。需求文档可能在兄弟文件夹(如需求文档/)。 - 复制 demo 到同级副本:在 demo 根同级建
<原名>-讲解/,整份cp -R复制 demo 根进去。单文件 demo(一个.html躺在大杂烩文件夹里)只复制该.html+ 它引用的本地资源(<link>/<script>/<img>/<source>/<video>/<audio>本地路径,不含http(s)://、data:),保持目录结构;原代码绝对路径(/assets/...、file:///、C:\...)在副本里改相对,避免引用失效。后续都在副本里。 - 读 explain-kit 的
PLAYBOOK.md并按其流程操作:- 全局装过 skill 时位于
~/.claude/skills/explain/PLAYBOOK.md(或~/.codex/skills/explain/PLAYBOOK.md); - 否则从克隆的 explain-kit 仓库根读取
PLAYBOOK.md。
- 全局装过 skill 时位于
- 把
engine/拷到副本根(与.html同级)。 - 给副本里涉及的每个
.html加 3 行 include(engine/explain.css+engine/explain-engine.js+explain-config.js,相对路径),不动副本里的原 demo 内容。 - 基于
explain-config.template.js在副本根生成explain-config.js(需求→steps;Explain.registerAction/registerCleanup/registerExit;每步 setup 自包含)。 - 需求文档:若用户没给,先问用户要(路径/粘贴/按 demo 推断),不要臆造;多份文档时问「逐个生成」还是「一次性生成」并给利弊,建议默认逐个跑通第一条再批量。
- 告诉用户用浏览器打开副本里的
.html验证:右下角「📖 需求讲解」→ 选需求卡片 → 走右侧步骤点;讲解卡挡内容时可拖标题栏移开。
engine/与PLAYBOOK.md是单一真相源,与 explain skill 共用。
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.
- yesterday First seen · 21 lines · 0 tokens per session scan A 32509ab78b3f
cursor-rule is a cursor rule published in the GitHub repository YYShawn/explain-kit (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 661 tokens. 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.
Other cursor rules, from other repositories
webkit-browser
Cursor rule "webkit-browser" from duckduckgo/apple-browsers, covering webkit & browser development guidelines, webview configuration, basic webview setup, user scripts management and tab management.
cypress-e2e-testing-cursorrules-prompt-file
Cursor rules for Cypress development with E2E testing.
vasu-playwright-utils
../../templates/cursor-rules/vasu-playwright-utils.mdc.
dev-browser
Fallback browser automation with persistent Chrome state. Use only when Browser Use is unavailable or blocked.
node-dependencies
Enforce Node.js versioning and package management best practices.
security-standards
Cursor rule "security-standards" from wjgogogo/cursor-rules, covering 安全规范, 核心原则 [p0], 输入验证, xss 防护 and csrf 防护.