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/mr-chen-05/rules-2.1-optimized/create-docsgit clone --depth 1 https://github.com/Mr-chen-05/rules-2.1-optimizedWhat 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.01596 |
| Opus 5 | $0.00000 | $0.00798 |
| Sonnet 5 | $0.00000 | $0.00319 |
| Haiku 4.5 | $0.00000 | $0.00160 |
Grade A, and why
create-docs 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.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
📝 Documentation Creation - 文档创建
生成全面、结构化的项目文档。
🚀 Commands - 命令
/create-docs- 创建完整文档/api-docs- 生成API文档/user-guide- 创建用户指南/dev-docs- 开发者文档
📋 Process - 文档流程
1. 📊 文档规划 (Documentation Planning)
- 分析目标受众和使用场景
- 确定文档结构和内容范围
- 选择合适的文档工具和格式
- 转换条件:文档规划完整,结构清晰
2. ✍️ 内容创建 (Content Creation)
- 编写核心文档内容
- 添加代码示例和截图
- 创建图表和流程图
- 转换条件:内容完整,质量达标
3. 🔍 审查优化 (Review & Optimization)
- 检查内容准确性和完整性
- 优化文档结构和可读性
- 添加导航和索引
- 转换条件:文档质量优秀,用户友好
4. 🚀 发布维护 (Publish & Maintain)
- 发布到文档平台
- 设置自动更新机制
- 收集用户反馈
- 转换条件:文档发布成功,维护机制完善
📚 Documentation Types - 文档类型
用户文档 (User Documentation)
- README - 项目概述和快速开始
- 用户指南 - 详细使用说明
- FAQ - 常见问题解答
- 教程 - 分步骤学习指南
开发者文档 (Developer Documentation)
- API文档 - 接口规范和示例
- 架构文档 - 系统设计和结构
- 贡献指南 - 开发参与规范
- 部署指南 - 环境配置和部署
技术文档 (Technical Documentation)
- 设计文档 - 技术方案和决策
- 测试文档 - 测试策略和用例
- 运维文档 - 监控和故障处理
- 变更日志 - 版本更新记录
🛠️ Documentation Tools - 文档工具
静态站点生成器
- VitePress - Vue生态文档工具
- Docusaurus - React生态文档平台
- GitBook - 在线文档协作
- Notion - 团队知识库
API文档工具
- Swagger/OpenAPI - REST API文档
- GraphQL Playground - GraphQL API文档
- Postman - API测试和文档
- Insomnia - API设计和测试
图表工具
- Mermaid - 代码化图表
- Draw.io - 在线图表编辑
- PlantUML - UML图表生成
- Excalidraw - 手绘风格图表
📋 Documentation Template - 文档模板
README模板
# 项目名称
简短的项目描述
## 🚀 快速开始
### 安装
\`\`\`bash
npm install
\`\`\`
### 使用
\`\`\`bash
npm start
\`\`\`
## 📚 文档
创建以下文档文件(在项目根目录的 docs/ 文件夹中):
- **用户指南** (`docs/user-guide.md`) - 面向最终用户的使用说明
- **API文档** (`docs/api.md`) - 详细的API接口文档
- **开发指南** (`docs/development.md`) - 开发者指南和最佳实践
## 🤝 贡献
请阅读 [项目说明](./README.md)
## 📄 许可证
[MIT](./LICENSE)
API文档模板
# API文档
## 认证
所有API请求需要包含认证头:
\`\`\`
Authorization: Bearer <token>
\`\`\`
## 端点
### GET /api/users
获取用户列表
**参数:**
- `page` (number) - 页码,默认1
- `limit` (number) - 每页数量,默认10
**响应:**
\`\`\`json
{
"data": [...],
"total": 100,
"page": 1
}
\`\`\`
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 · 239 lines · 0 tokens per session scan A 334223a191ad
create-docs is a cursor rule published in the GitHub repository Mr-chen-05/rules-2.1-optimized (172 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,596 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-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.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.