awesome-cursorrules-zh: Instructions file for Claude Code

CLAUDE.md

awesome-cursorrules-zh CLAUDE.md is an instructions file for Claude Code from holtwood/awesome-cursorrules-zh. It costs 848 tokens per session, scanned A, original, MIT.

Project instructions for Claude Code, a command-line coding assistant, in a Chinese-language collection of Cursor editor rules. They describe the project, its tools, common commands, folders, and contribution workflow.

In plain words
What is it for?
Use them when working on the documentation site, adding or updating rule files, running validation and builds, or following the project's commit conventions.
Why use it?
They give the coding assistant and contributors shared project context, reducing guesswork about how the site is organised and checked.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is holtwood/awesome-cursorrules-zh's own configuration. It tells Claude Code how to work on awesome-cursorrules-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything awesome-cursorrules-zh configures →

Reuse

Borrowing it

Nothing to install: this file belongs to holtwood/awesome-cursorrules-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/holtwood/awesome-cursorrules-zh/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/holtwood/awesome-cursorrules-zh

Made for: Claude Code.

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 awesome-cursorrules-zh CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/holtwood/awesome-cursorrules-zh/claude-md/github.svg)](https://agentmods.dev/instructions/holtwood/awesome-cursorrules-zh/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/holtwood/awesome-cursorrules-zh/claude-md"><img src="https://agentmods.dev/badge/instructions/holtwood/awesome-cursorrules-zh/claude-md/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.

agentmods 80×15 button for awesome-cursorrules-zh CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/holtwood/awesome-cursorrules-zh/claude-md"><img src="https://agentmods.dev/badge/instructions/holtwood/awesome-cursorrules-zh/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 848 This file is loaded in full into every session.
When invoked 848 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00848 $0.00848
Opus 5 $0.00424 $0.00424
Sonnet 5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

Measured 9d ago against content hash cd88f58ff415, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

awesome-cursorrules-zh CLAUDE.md 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 9d 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.

CLAUDE.md · 121 lines

What it actually says

CLAUDE.md

本文件为 Claude Code CLI 提供项目特定配置和指导。

项目概述

awesome-cursorrules-zh 是一个 Cursor AI 编辑器规则集合网站,提供精选的 .cursorrules 规则文件。

技术栈

技术 版本 用途
Node.js >=20.0.0 运行时
VitePress ^1.6.4 静态站点生成
markdownlint-cli2 ^0.22.1 Markdown 检查

常用命令

npm run dev          # 启动开发服务器
npm run build        # 构建静态站点
npm run preview      # 预览构建结果
npm run lint         # Markdown 格式检查
npm run lint:fix     # 自动修复格式问题
npm run validate     # 验证规则文件
npm run check        # lint + validate
npm run ci           # check + build

目录结构

awesome-cursorrules-zh/
├── .vitepress/           # VitePress 配置
├── docs/                 # 文档源文件
│   ├── zh/               # 中文文档
│   └── en/               # 英文文档
├── zh/                   # 中文站点页面(符号链接)
├── en/                   # 英文站点页面(符号链接)
├── rules/                # 规则文件(核心)
├── scripts/              # 工具脚本
├── AGENTS.md             # AI 助手工作指南
└── CLAUDE.md             # 本文件

开发工作流

添加新规则

  1. rules/ 对应领域下创建目录
  2. 编写 .cursorrules 文件
  3. 编写 README.md 说明
  4. 运行 npm run validate 验证

文档更新

  1. 更新 docs/zh/ 中文文档
  2. 更新 docs/en/ 英文文档
  3. 运行 npm run lint 检查格式

提交规范

使用约定式提交:feat/fix/docs/chore/translate

规则文件规范

标准模板

# [技术名称] .cursorrules 提示文件

你是 [技术领域] 方面的专家。

## 核心原则

- 原则1
- 原则2

## 技术栈

- 技术1
- 技术2

## 最佳实践

1. 实践1
2. 实践2

质量要求

  • 文件大小 >= 200 字节
  • 必须包含角色定义
  • 推荐包含最佳实践
  • 使用中文编写

双语支持

  • 文档:docs/zh/docs/en/
  • 规则文件:中文为主
  • 技术术语:保持英文原文

CI/CD

工作流 触发 功能
ci.yml push/PR 质量检查 + 构建
deploy.yml push main 部署 GitHub Pages

注意事项

  1. 规则验证:所有规则文件必须通过 npm run validate
  2. Markdown 格式:遵循 .markdownlint.json 配置
  3. 提交规范:使用约定式提交
  4. 双语更新:文档更新需同步中英文

相关文档

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. 9d ago First seen · 121 lines · 848 tokens per session scan A cd88f58ff415

Subscribe to this mod's changes

awesome-cursorrules-zh CLAUDE.md is an instructions file published in the GitHub repository holtwood/awesome-cursorrules-zh (233 stars, last pushed 1mo ago), licensed MIT. It adds 848 tokens to every session, about $0.0042 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens