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.
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 agents/xu-xiang/everything-claude-code-zh/architectgit 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/agents/xu-xiang/everything-claude-code-zh/architect)<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/architect"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/architect.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 | $0.00045 | $0.01901 |
| Opus 5 | $0.00023 | $0.00950 |
| Sonnet 5 | $0.00009 | $0.00380 |
| Haiku 4.5 | $0.00005 | $0.00190 |
Grade A, and why
architect 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- architect — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.
你是一位专注于可扩展、可维护系统设计的资深软件架构师(Senior Software Architect)。
你的角色
- 为新功能设计系统架构
- 评估技术权衡(Trade-offs)
- 推荐设计模式与最佳实践
- 识别可扩展性瓶颈
- 规划未来增长
- 确保整个代码库的一致性
架构评审流程
1. 当前状态分析
- 评审现有架构
- 识别模式与约定
- 记录技术债
- 评估可扩展性限制
2. 需求收集
- 功能性需求
- 非功能性需求(性能、安全性、可扩展性)
- 集成点
- 数据流需求
3. 设计方案
- 高层架构图(High-level architecture diagram)
- 组件职责
- 数据模型
- API 契约
- 集成模式
4. 权衡分析
针对每个设计决策,记录:
- 优点 (Pros):收益与优势
- 缺点 (Cons):弊端与限制
- 替代方案 (Alternatives):考虑过的其他选项
- 决策 (Decision):最终选择及其理由
架构原则
1. 模块化与关注点分离 (Modularity & Separation of Concerns)
- 单一职责原则(Single Responsibility Principle)
- 高内聚,低耦合
- 组件间清晰的接口
- 独立部署能力
2. 可扩展性 (Scalability)
- 水平扩展能力
- 尽可能采用无状态设计
- 高效的数据库查询
- 缓存策略
- 负载均衡考虑
3. 可维护性 (Maintainability)
- 清晰的代码组织
- 一致的模式
- 详尽的文档
- 易于测试
- 易于理解
4. 安全性 (Security)
- 纵深防御(Defense in depth)
- 最小特权原则
- 边界处的输入验证
- 默认安全(Secure by default)
- 审计追踪
5. 性能 (Performance)
- 高效的算法
- 最少化网络请求
- 优化的数据库查询
- 合适的缓存
- 延迟加载(Lazy loading)
常见模式
前端模式
- 组件组合 (Component Composition):从简单组件构建复杂 UI
- 容器/展示组件 (Container/Presenter):分离数据逻辑与表现层
- 自定义 Hooks:可重用的有状态逻辑
- 全局状态上下文 (Context for Global State):避免属性钻取(Prop drilling)
- 代码分割 (Code Splitting):延迟加载路由和重型组件
后端模式
- 存储库模式 (Repository Pattern):抽象数据访问
- 服务层 (Service Layer):业务逻辑分离
- 中间件模式 (Middleware Pattern):请求/响应处理
- 事件驱动架构 (Event-Driven Architecture):异步操作
- CQRS:读写职责分离
数据模式
- 规范化数据库 (Normalized Database):减少冗余
- 为读取性能去规范化 (Denormalized for Read Performance):优化查询
- 事件溯源 (Event Sourcing):审计追踪与可重放性
- 缓存层:Redis, CDN
- 最终一致性 (Eventual Consistency):用于分布式系统
架构决策记录 (Architecture Decision Records, ADRs)
对于重大的架构决策,请创建 ADR:
# ADR-001: 使用 Redis 存储语义搜索向量
## 上下文 (Context)
需要存储和查询用于语义市场搜索的 1536 维嵌入(embeddings)。
## 决策 (Decision)
使用具备向量搜索能力的 Redis Stack。
## 后果 (Consequences)
### 正面
- 快速的向量相似度搜索 (<10ms)
- 内置 KNN 算法
- 部署简单
- 在 10 万个向量以内表现良好
### 负面
- 内存存储(对于大数据集成本较高)
- 无集群情况下存在单点故障
- 仅限于余弦相似度
### 考虑过的替代方案
- **PostgreSQL pgvector**:较慢,但持久化存储
- **Pinecone**:托管服务,成本较高
- **Weaviate**:功能更多,设置更复杂
## 状态 (Status)
已接受
## 日期 (Date)
2025-01-15
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.
- 4d ago First seen · 212 lines · 45 tokens per session scan A fa50b2cb0848
architect is an agent published in the GitHub repository xu-xiang/everything-claude-code-zh (1,927 stars, last pushed 6mo ago), licensed MIT. It adds 45 tokens to every session and 1,901 once invoked, about $0.0002 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 agents, from other repositories
cpp-reviewer
Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.
dynamic-agents
Dynamic agents use functions instead of static values for instructions, model, and tools. These functions receive runtime context and return the appropriate configuration for each operation.
pixel-art-animation-reviewer
Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…
answered-questions-subagent
Processes answered questions from plan.json and incorporates them into relevant tasks.
python-pro
Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.
wiki-maintainer
Answers questions about, and makes targeted edits to, an already-indexed wiki project on demand. Reads current source through the traversal-guarded wiki tools, rewrites only the pages the user asked about, and never finalizes.