mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 00:23:04 +08:00
Port the current-source-safe command documentation subset from stale PR #1687.\n\nEach copied command page maps to an English source file unchanged since the stale PR base; fastapi-review remains deferred because #1687 did not include a matching zh-CN translation.
50 lines
1.0 KiB
Markdown
50 lines
1.0 KiB
Markdown
---
|
|
description: 基于代码库理解和架构重点的引导式功能开发
|
|
---
|
|
|
|
一种结构化的功能开发工作流程,强调在编写新代码之前先理解现有代码。
|
|
|
|
## 阶段
|
|
|
|
### 1. 发现
|
|
|
|
* 仔细阅读功能需求
|
|
* 识别需求、约束和验收标准
|
|
* 如果需求不明确,提出澄清性问题
|
|
|
|
### 2. 代码库探索
|
|
|
|
* 使用 `code-explorer` 分析相关的现有代码
|
|
* 追踪执行路径和架构层次
|
|
* 理解集成点和约定
|
|
|
|
### 3. 澄清性问题
|
|
|
|
* 展示探索过程中的发现
|
|
* 提出有针对性的设计和边界情况问题
|
|
* 等待用户回复后再继续
|
|
|
|
### 4. 架构设计
|
|
|
|
* 使用 `code-architect` 设计功能
|
|
* 提供实现蓝图
|
|
* 等待批准后再实施
|
|
|
|
### 5. 实现
|
|
|
|
* 按照批准的设计实现功能
|
|
* 在适当的情况下优先采用 TDD
|
|
* 保持提交小而专注
|
|
|
|
### 6. 质量审查
|
|
|
|
* 使用 `code-reviewer` 审查实现
|
|
* 处理关键和重要问题
|
|
* 验证测试覆盖率
|
|
|
|
### 7. 总结
|
|
|
|
* 总结已构建的内容
|
|
* 列出后续事项或限制
|
|
* 提供测试说明
|