mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-21 22:10:09 +00:00
docs: 完成所有文档的中文翻译并应用到项目
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Common Patterns
|
||||
# 通用模式(Common Patterns)
|
||||
|
||||
## API Response Format
|
||||
## API 响应格式(API Response Format)
|
||||
|
||||
```typescript
|
||||
interface ApiResponse<T> {
|
||||
@@ -15,7 +15,7 @@ interface ApiResponse<T> {
|
||||
}
|
||||
```
|
||||
|
||||
## Custom Hooks Pattern
|
||||
## 自定义 Hook 模式(Custom Hooks Pattern)
|
||||
|
||||
```typescript
|
||||
export function useDebounce<T>(value: T, delay: number): T {
|
||||
@@ -30,7 +30,7 @@ export function useDebounce<T>(value: T, delay: number): T {
|
||||
}
|
||||
```
|
||||
|
||||
## Repository Pattern
|
||||
## 仓储模式(Repository Pattern)
|
||||
|
||||
```typescript
|
||||
interface Repository<T> {
|
||||
@@ -42,14 +42,14 @@ interface Repository<T> {
|
||||
}
|
||||
```
|
||||
|
||||
## Skeleton Projects
|
||||
## 骨架项目(Skeleton Projects)
|
||||
|
||||
When implementing new functionality:
|
||||
1. Search for battle-tested skeleton projects
|
||||
2. Use parallel agents to evaluate options:
|
||||
- Security assessment
|
||||
- Extensibility analysis
|
||||
- Relevance scoring
|
||||
- Implementation planning
|
||||
3. Clone best match as foundation
|
||||
4. Iterate within proven structure
|
||||
在实现新功能时:
|
||||
1. 搜索经过实战检验的骨架项目(Skeleton Projects)
|
||||
2. 使用并行智能体(Parallel Agents)评估备选项:
|
||||
- 安全性评估(Security assessment)
|
||||
- 可扩展性分析(Extensibility analysis)
|
||||
- 相关性评分(Relevance scoring)
|
||||
- 实施计划(Implementation planning)
|
||||
3. 克隆最匹配的项目作为基础
|
||||
4. 在已验证的结构内进行迭代
|
||||
|
||||
Reference in New Issue
Block a user