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/xuliang2024/cutcli-cookbook/directory-indexgit clone --depth 1 https://github.com/xuliang2024/cutcli-cookbookWrote 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/xuliang2024/cutcli-cookbook/directory-index)<a href="https://agentmods.dev/rules/xuliang2024/cutcli-cookbook/directory-index"><img src="https://agentmods.dev/badge/rules/xuliang2024/cutcli-cookbook/directory-index.svg" alt="Measured on agentmods" 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 | $0.02007 | $0.02007 |
| Opus 5 | $0.01004 | $0.01004 |
| Sonnet 5 | $0.00401 | $0.00401 |
| Haiku 4.5 | $0.00201 | $0.00201 |
Grade A, and why
directory-index 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
仓库目录索引
改动文件前先在这里查"它属于哪个层",避免越权或漏改。
顶层一览
cutcli-cookbook/
├── README.md / README.zh.md # 仓库门面(英文为主 / 中文)
├── LICENSE # MIT
├── CONTRIBUTING.md / CONTRIBUTING.zh.md
├── CODE_OF_CONDUCT.md # 已是英文
├── CHANGELOG.md / CHANGELOG.zh.md
├── package.json # 根 package(VitePress + 工具脚本依赖)
├── package-lock.json
├── .gitignore
│
├── docs/ # VitePress 文档站源(部署到 docs.cutcli.com)
│ ├── *.md / guide/ / cookbook/ # 英文(root locale)
│ └── zh/ # 中文 locale 镜像(/zh/)
├── examples/ # 一键运行的 cutcli 案例(核心资产;每个 case 双语 README)
├── templates/ # 可复用 JSON 片段
├── prompts/ # AI 工具提示词(双语)
├── showcase/ # 月刊精选 + 上线发布资料
├── scripts/ # 仓库工具脚本(lint / 校验 / R2 上传)
├── worker/ # docs.cutcli.com 的 Cloudflare Worker
├── .github/ # Issue/PR/CI/发布指南(模板双语,GOOD_FIRST_ISSUES 双语)
└── .cursor/ # Cursor IDE 规则与 MCP 配置(中文)
docs/ — 文档站
docs/
├── .vitepress/
│ └── config.mts # 站点配置(locales={root:en, zh:/zh/}, cleanUrls=false)
├── index.md # 英文首页 (hero + features)
├── public/ # 静态资源(被复制到 dist 根目录)
│ ├── 404.html # 英文 404 页(worker miss 时返回)
│ ├── favicon.svg / logo.svg / hero.svg
│ └── gallery.json # build:gallery 自动生成
├── guide/ # 英文入门指南(5 篇)
├── cookbook/ # 英文场景教程(5 篇)
├── reference/ # 英文命令参考(11 篇;cli/api/concepts 由同步脚本覆盖)
├── prompts/index.md # 英文 Prompts 库
└── zh/ # 中文 locale 镜像(与 root 同结构)
├── index.md
├── guide/ / cookbook/ / reference/ / prompts/
改
docs/reference/cli|api|concepts.md与docs/zh/reference/cli|api|concepts.md⚠ 不要直接编辑 — 它们由jy_cli/scripts/sync-to-cookbook.mjs覆盖。改源头jy_cli/docs/cli.md等再跑同步。当前过渡期:闭源同步脚本只输出中文,所以
docs/reference/{cli,api,concepts}.md与docs/zh/reference/...都是中文;待jy_cli/scripts/sync-to-cookbook.mjs升级后,root 写英文、zh/写中文。
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.
- 4d ago First seen · 172 lines · 2,007 tokens per session scan A d870f7e3992c
directory-index is a cursor rule published in the GitHub repository xuliang2024/cutcli-cookbook (192 stars, last pushed 3mo ago), licensed MIT. It adds 2,007 tokens to every session, about $0.0100 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.