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/claudate/project-multilevel-index/cursorrulesgit clone --depth 1 https://github.com/Claudate/project-multilevel-indexWhat 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.00745 | $0.00745 |
| Opus 5 | $0.00373 | $0.00373 |
| Sonnet 5 | $0.00149 | $0.00149 |
| Haiku 4.5 | $0.00075 | $0.00075 |
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 2d 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
项目约定 - 分形索引系统
Cursor AI 编辑器专用配置 - 本文件在每次新对话时自动加载
📚 核心职责
本项目使用分形多级索引系统自动维护文档。当你修改代码文件时,自动更新索引系统。
🎯 核心工作流程
1. 检测变更类型
检查文件是否包含结构性变更关键字:
- 依赖:
import,require,use,from,#include,using - 导出:
export,public,class,interface,function,def,fn,struct
2. 执行更新策略
-
结构性变更 → 执行完整更新:
- ✅ 更新文件头注释 (Input/Output/Pos)
- ✅ 更新所在文件夹的 FOLDER_INDEX.md
- ✅ 更新 PROJECT_INDEX.md 和依赖关系图
-
实现变更 → 跳过更新,继续当前任务
3. 保持静默
- 小改动: 静默处理,不打断用户
- 大改动: 简短提示 "✅ 索引已更新"
🔄 关键原则
- 主动性: 主动检测并执行更新,不等待用户提醒
- 准确性: 正确识别变更类型
- 静默性: 不打断用户工作流
- 一致性: 确保三级索引同步
💡 快速参考
过滤规则
- 跳过文件:
PROJECT_INDEX.md,FOLDER_INDEX.md - 跳过目录:
node_modules,.git,dist,build,.next,target - 支持语言:
.js .jsx .ts .tsx .py .java .kt .rs .go .cpp .c .h .php .rb .swift .cs - 文件大小: 跳过 > 500KB 的文件
三级索引结构
PROJECT_INDEX.md (根索引 + Mermaid 依赖图)
├── src/FOLDER_INDEX.md (文件夹索引)
│ └── file.ts (文件头注释: Input/Output/Pos)
📖 详细规则
完整的维护规则、执行流程、错误处理等详细信息,请参考:
规则文件: .cursor/rules/doc-maintenance.md
你可以随时阅读该文件以了解完整的实现细节。
🎨 快速命令
用户可以使用以下命令:
- 初始化索引: "请为本项目初始化索引系统"
- 更新索引: "请更新索引系统"
- 检查一致性: "请检查索引一致性"
- 切换语言: "请将索引系统切换为英文/中文"
版本: 2.0.0 更新日期: 2025-12-24 架构: 引用分离 (核心要点 + 路径引用) 自动生成: 由 scripts/generate-platform-configs.js 生成 重要: 这是项目级约定,请在每次会话中遵守此规则。
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.
- 2d ago First seen · 89 lines · 745 tokens per session scan A d06edc961c7e
cursorrules is a cursor rule published in the GitHub repository Claudate/project-multilevel-index (139 stars, last pushed 7mo ago), licensed MIT. It adds 745 tokens to every session, about $0.0037 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-08-30.
Other cursor rules, from other repositories
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.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.