directory-index

directory-index is a cursor rule for Cursor from xuliang2024/cutcli-cookbook. It costs 2,007 tokens per session, scanned A, original, MIT.

A repository navigation rule that explains where major kinds of files belong in the cutcli-cookbook project. The project includes documentation, examples, templates, prompts, scripts, deployment code, and Cursor configuration.

In plain words
What is it for?
Use it to navigate the repository, find documentation and examples, identify maintenance scripts, and decide where a new or changed file belongs.
Why use it?
It helps locate the correct project layer before editing files, reducing the chance of changing the wrong area or missing related content.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/xuliang2024/cutcli-cookbook/directory-index
Clone the repo
git clone --depth 1 https://github.com/xuliang2024/cutcli-cookbook

Made for: Cursor.

Wrote 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.

agentmods badge for directory-index

README.md
[![agentmods](https://agentmods.dev/badge/rules/xuliang2024/cutcli-cookbook/directory-index.svg)](https://agentmods.dev/rules/xuliang2024/cutcli-cookbook/directory-index)
Your own site
<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>
Per session 2,007 This file is loaded in full into every session.
When invoked 2,007 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash d870f7e3992c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursor/rules/directory-index.mdc · 172 lines

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.mddocs/zh/reference/cli|api|concepts.md不要直接编辑 — 它们由 jy_cli/scripts/sync-to-cookbook.mjs 覆盖。改源头 jy_cli/docs/cli.md 等再跑同步。

当前过渡期:闭源同步脚本只输出中文,所以 docs/reference/{cli,api,concepts}.mddocs/zh/reference/... 都是中文;待 jy_cli/scripts/sync-to-cookbook.mjs 升级后,root 写英文、zh/ 写中文。

Read the full file on GitHub · 172 lines

Changes

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.

  1. 4d ago First seen · 172 lines · 2,007 tokens per session scan A d870f7e3992c

Subscribe to this mod's changes

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.