everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.
Borrowing it
Nothing to install: this file belongs to xu-xiang/everything-claude-code-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.
curl -O https://raw.githubusercontent.com/xu-xiang/everything-claude-code-zh/main/.opencode/commands/build-fix.mdgit clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zhWrote 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/commands/xu-xiang/everything-claude-code-zh/build-fix)<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/build-fix"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/build-fix.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.1 | $0.00015 | $0.00534 |
| Opus 5 | $0.00008 | $0.00267 |
| Sonnet 5 | $0.00003 | $0.00107 |
| Haiku 4.5 | $0.00002 | $0.00053 |
Grade A, and why
build-fix 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 6d 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.
What it actually says
构建修复(Build Fix)命令
以最小改动修复构建与 TypeScript 错误:$ARGUMENTS
你的任务
- 运行类型检查:
npx tsc --noEmit - 收集所有错误
- 逐一修复错误,保持最小改动
- 验证每次修复,确保未引入新错误
- 运行最终检查,确认所有错误已解决
方法论(Approach)
建议(DO):
- ✅ 使用正确的类型修复类型错误
- ✅ 添加缺失的导入(imports)
- ✅ 修复语法错误
- ✅ 保持最小改动
- ✅ 保留现有行为
- ✅ 每次改动后运行
tsc --noEmit
禁止(DON'T):
- ❌ 重构(Refactor)代码
- ❌ 添加新功能
- ❌ 更改架构(Architecture)
- ❌ 使用
any类型(除非绝对必要) - ❌ 添加
@ts-ignore注释 - ❌ 更改业务逻辑
常见错误修复
| 错误(Error) | 修复(Fix) |
|---|---|
| Type 'X' is not assignable to type 'Y' | 添加正确的类型标注 |
| Property 'X' does not exist | 在接口(interface)中添加属性或修复属性名 |
| Cannot find module 'X' | 安装包或修复导入路径 |
| Argument of type 'X' is not assignable | 进行类型转换或修复函数签名 |
| Object is possibly 'undefined' | 添加空值检查(null check)或可选链(optional chaining) |
验证步骤(Verification Steps)
修复后:
npx tsc --noEmit- 应显示 0 个错误npm run build- 应构建成功npm test- 测试应仍能通过
重要提示:仅关注修复错误。禁止重构、禁止改进、禁止架构变更。以最小的差异(diff)使构建通过(Get the build green)。
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.
- 6d ago First seen · 57 lines · 15 tokens per session scan A cceb27718e4e
build-fix is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,931 stars, last pushed 6mo ago), licensed MIT. It adds 15 tokens to every session and 534 once invoked, about $0.0001 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 commands, from other repositories
build-fix
Fix build and TypeScript errors with minimal changes.
cpp-build
Fix C++ build errors, CMake issues, and linker problems incrementally. Invokes the cpp-build-resolver agent for minimal, surgical fixes.
rust-build
Fix Rust build errors and borrow checker issues.
go-build
Fix Go build and vet errors.
build-fix
Incrementally fix TypeScript and build errors with minimal diffs. Fix one error at a time for safety.
cpp-test
Enforce TDD workflow for C++. Write GoogleTest tests first, then implement. Verify coverage with gcov/lcov.