everything-claude-code-zh / rules
Cursor rule2k starsChanged 9 months agoMITView on GitHub
性能优化:模型选择、上下文管理、构建故障排除
Trending
More talk lately.thin dataabout the whole repository
Who's talking about xu-xiang/everything-claude-code-zh
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- .cursor/rules/common-agents.mdCursor rule
- .cursor/rules/common-coding-style.mdCursor rule
- .cursor/rules/common-development-workflow.mdCursor rule
- .cursor/rules/common-git-workflow.mdCursor rule
- .cursor/rules/common-hooks.mdCursor rule
- .cursor/rules/common-patterns.mdCursor rule
- .cursor/rules/common-security.mdCursor rule
- .cursor/rules/common-testing.mdCursor rule
- .cursor/rules/golang-coding-style.mdCursor rule
- .cursor/rules/golang-hooks.mdCursor rule
- .cursor/rules/golang-patterns.mdCursor rule
- .cursor/rules/golang-security.mdCursor rule
- .cursor/rules/golang-testing.mdCursor rule
- .cursor/rules/python-coding-style.mdCursor rule
- .cursor/rules/python-hooks.mdCursor rule
- .cursor/rules/python-patterns.mdCursor rule
- .cursor/rules/python-security.mdCursor rule
- .cursor/rules/python-testing.mdCursor rule
- .cursor/rules/swift-coding-style.mdCursor rule
- .cursor/rules/swift-hooks.mdCursor rule
- .cursor/rules/swift-patterns.mdCursor rule
- .cursor/rules/swift-security.mdCursor rule
- .cursor/rules/swift-testing.mdCursor rule
- .cursor/rules/typescript-coding-style.mdCursor rule
- .cursor/rules/typescript-hooks.mdCursor rule
- .cursor/rules/typescript-patterns.mdCursor rule
- .cursor/rules/typescript-security.mdCursor rule
- .cursor/rules/typescript-testing.mdCursor rule
- api-designSkill
- article-writingSkill
- backend-patternsSkill
- coding-standardsSkill
- content-engineSkill
- e2e-testingSkill
- eval-harnessSkill
- frontend-patternsSkill
- frontend-slidesSkill
- investor-materialsSkill
- investor-outreachSkill
- market-researchSkill
- security-reviewSkill
- strategic-compactSkill
- tdd-workflowSkill
- verification-loopSkill
- oneskillSkill
- article-writingSkill
- content-engineSkill
- frontend-slidesSkill
- investor-materialsSkill
- investor-outreachSkill
- market-researchSkill
- api-designSkill
- article-writingSkill
- autonomous-loopsSkill
- backend-patternsSkill
- The first 60 shown.
The file
Files
性能优化 (Performance Optimization)
模型选择策略 (Model Selection Strategy)
Haiku 4.5 (具备 Sonnet 90% 的能力,成本降低 3 倍):
- 频繁调用的轻量级智能体 (Agents)
- 结对编程与代码生成
- 多智能体系统中的工作智能体 (Worker agents)
Sonnet 4.6 (最佳编程模型):
- 主要开发工作
- 编排多智能体工作流 (Orchestrating multi-agent workflows)
- 复杂的编程任务
Opus 4.5 (最深层的推理能力):
- 复杂的架构决策
- 极高的推理需求
- 研究与分析任务
上下文窗口管理 (Context Window Management)
避免在上下文窗口 (Context Window) 最后 20% 的容量内执行以下操作:
- 大规模重构
- 跨越多个文件的功能实现
- 调试复杂的交互行为
对上下文敏感度较低的任务:
- 单个文件编辑
- 独立实用工具的创建
- 文档更新
- 简单的 Bug 修复
扩展思考 (Extended Thinking) + 计划模式 (Plan Mode)
扩展思考(Extended Thinking)默认开启,为内部推理预留高达 31,999 个 Token。
通过以下方式控制扩展思考:
- 切换开关: Option+T (macOS) / Alt+T (Windows/Linux)
- 配置文件: 在
~/.claude/settings.json中设置alwaysThinkingEnabled - 预算上限:
export MAX_THINKING_TOKENS=10000 - 详细模式: Ctrl+O 查看思考过程输出
对于需要深层推理的复杂任务:
- 确保扩展思考已开启(默认开启)
- 开启 计划模式 (Plan Mode) 以使用结构化方法
- 进行多轮审阅以实现透彻分析
- 使用分工明确的子智能体 (Sub-agents) 以获得多样化的视角
构建故障排除 (Build Troubleshooting)
如果构建失败:
- 使用 build-error-resolver 智能体
- 分析错误信息
- 进行增量修复
- 每次修复后进行验证
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

