Loading...
Loading...
Compare original and translation side by side
file:linefile:line/deep-read/deep-read$ARGUMENTSGlob**/*.ts**/*.pyGrepAskUserQuestionsrc/services/billing/$ARGUMENTSGlob**/*.ts**/*.pyGrepAskUserQuestionsrc/services/billing/Globpackage.jsonCargo.tomlgo.modrequirements.txtGlobpackage.jsonCargo.tomlgo.modrequirements.txtfile:lineRequest enters at routes/payments.ts:42 (POST /api/payments)
-> calls PaymentService.processPayment() at services/payment.ts:87
-> validates input via PaymentSchema at schemas/payment.ts:15
-> calls StripeClient.charge() at clients/stripe.ts:34
-> constructs request at clients/stripe.ts:45-62
-> stores result via PaymentRepository.save() at repos/payment.ts:28
-> returns PaymentResponse at routes/payments.ts:58file:linefile:lineRequest enters at routes/payments.ts:42 (POST /api/payments)
-> calls PaymentService.processPayment() at services/payment.ts:87
-> validates input via PaymentSchema at schemas/payment.ts:15
-> calls StripeClient.charge() at clients/stripe.ts:34
-> constructs request at clients/stripe.ts:45-62
-> stores result via PaymentRepository.save() at repos/payment.ts:28
-> returns PaymentResponse at routes/payments.ts:58file:linecalculateCommission(sale: Sale): number [billing/commission.ts:45-78]
- Base rate: 5% of sale.amount (line 52)
- Bonus tier: if sale.amount > 10000, rate += 2% (line 56)
- Cap: commission capped at 5000 (line 62)
- Proration: multiplied by daysInPeriod/30 (line 67)
- Returns: rounded to 2 decimal places (line 74)file:linecalculateCommission(sale: Sale): number [billing/commission.ts:45-78]
- Base rate: 5% of sale.amount (line 52)
- Bonus tier: if sale.amount > 10000, rate += 2% (line 56)
- Cap: commission capped at 5000 (line 62)
- Proration: multiplied by daysInPeriod/30 (line 67)
- Returns: rounded to 2 decimal places (line 74)file:linemcp__sequential-thinking__sequentialthinking({
thought: "Synthesizing understanding of <target>. Evidence from phases: ...",
thoughtNumber: 1,
totalThoughts: 8,
nextThoughtNeeded: true
})file:linefile:linefile:linemcp__sequential-thinking__sequentialthinking({
thought: "Synthesizing understanding of <target>. Evidence from phases: ...",
thoughtNumber: 1,
totalThoughts: 8,
nextThoughtNeeded: true
})file:linefile:linefile:linefile:lineundefinedfile:lineundefined
**Gate:** All sections populated. Every finding cites `file:line`. Report complete.
---
**准入门槛:** 所有章节已填充,每一项发现都标注`file:line`引用,报告完成。
---| Phase | Primary Tools | When to Use Agents |
|---|---|---|
| 1. SCOPE | Read, Glob, Grep, AskUserQuestion | -- |
| 2. MAP | Glob, Grep, Read (configs, entry points) | Explore agents (parallel) for 20+ file codebases |
| 3. TRACE | Read (full files), Grep (cross-refs) | Explore agent for locating implementations |
| 4. DEEP READ | Read (full files, parallel) | -- |
| 5. CONNECT | sequential-thinking MCP | deep-analysis skill for complex reasoning |
| 6. REPORT | Structured output | -- |
| 阶段 | 核心工具 | 何时使用Agent |
|---|---|---|
| 1. 范围界定 | Read、Glob、Grep、AskUserQuestion | -- |
| 2. 结构映射 | Glob、Grep、Read(配置文件、入口点) | 超过20个文件的代码库使用并行Explore Agent |
| 3. 执行追踪 | Read(完整文件)、Grep(交叉引用) | 用Explore Agent定位实现代码 |
| 4. 深度阅读 | Read(完整文件,并行) | -- |
| 5. 模式合成 | sequential-thinking MCP | 复杂推理使用deep-analysis skill |
| 6. 结构化报告 | 结构化输出 | -- |
| Bad Habit | What |
|---|---|
| Read README/CLAUDE.md and call it done | Phase 1 treats docs as hints; Phases 3-4 read source |
| Skim file headers and imports only | Phase 4 requires line-by-line reading with citations |
| Summarize without evidence | Every claim must cite |
| Stop at the first abstraction layer | Phase 3 traces full call chains to leaf functions |
| Rely on function names to infer behavior | Phase 4 reads implementations, documents actual logic |
| Produce vague "this seems to do X" | Phase 4 requires concrete formulas and conditions |
| Read types/interfaces instead of implementations | Phase 3 Greps for implementations, not just signatures |
| Skip error paths and edge cases | Phase 3 traces secondary paths; Phase 4 documents edge cases |
| 不良习惯 | |
|---|---|
| 读完README/CLAUDE.md就结束 | 阶段1将文档视为参考提示,阶段3-4读取源代码 |
| 仅略读文件头部和导入 | 阶段4要求逐行阅读并标注引用 |
| 无证据的摘要总结 | 每一项结论都必须标注 |
| 停留在第一层抽象 | 阶段3追踪完整调用链直到叶子函数 |
| 依赖函数名推断行为 | 阶段4读取实现代码,记录实际逻辑 |
| 输出模糊的"看起来是做X的" | 阶段4要求输出具体的公式和条件 |
| 读取类型/接口而非实现 | 阶段3检索实现代码而非仅签名 |
| 跳过错误路径和边界场景 | 阶段3追踪次要路径,阶段4记录边界场景 |
/deep-read payment processing flow from checkout to settlement
/deep-read src/services/billing/
/deep-read how are sales commissions calculated and distributed?
/deep-read the authentication and authorization system
/deep-read data pipeline from ingestion to reporting dashboard
/deep-read how does the caching layer work and when does it invalidate?/deep-read payment processing flow from checkout to settlement
/deep-read src/services/billing/
/deep-read how are sales commissions calculated and distributed?
/deep-read the authentication and authorization system
/deep-read data pipeline from ingestion to reporting dashboard
/deep-read how does the caching layer work and when does it invalidate?/deep-read/deep-read| Situation | Use |
|---|---|
| Understand how existing code works | |
| Quick "what does this function do?" | Read tool directly |
| Bug, crash, error, unexpected behavior | |
| Architecture decision or trade-off | |
| Build a new feature | |
| Understand code, then reason about it | |
| Understand code, then redesign it | |
| Onboard to an unfamiliar codebase | |
| Code review with full context | |
| 场景 | 使用工具 |
|---|---|
| 理解现有代码的运行逻辑 | |
| 快速查询"这个函数是做什么的" | 直接使用Read工具 |
| Bug、崩溃、错误、异常行为 | |
| 架构决策或权衡分析 | |
| 开发新功能 | |
| 先理解代码再推理分析 | 先 |
| 先理解代码再重新设计 | 先 |
| 熟悉陌生代码库 | |
| 带完整上下文的代码评审 | 先 |