Loading...
Loading...
Compare original and translation side by side
.package.jsonnamepyproject.toml[project] nameCargo.toml[package] namego.mod.package.jsonnamepyproject.toml[project] nameCargo.toml[package] namego.moduv run {SKILL_DIR}/scripts/scan-project.py {TARGET_DIR} --format summary--format jsonuv run {SKILL_DIR}/scripts/scan-project.py {TARGET_DIR} --format summary--format jsonundefinedundefinedundefinedundefineddocs/CODEBASE_MAP.mddocs/CODEBASE_MAP.mdtotal_tokens| Total Tokens | Mode | Strategy |
|---|---|---|
| ≤ 80k | Direct | Skip subagents. Opus reads all files directly and performs all analysis in a single context. |
| 80k – 200k | 2 agents | Agent AB (Core + Architecture + Design), Agent C (Usage + Patterns + Deployment) |
| 200k – 400k | 3 agents | Agent A (Core + Design), Agent B (Architecture + Patterns), Agent C (Usage + Deployment) |
| > 400k | 3 agents | Agent A, Agent B, Agent C — each ≤150k tokens, with overflow files assigned to lightest agent |
detected_sectionstotal_tokens| 总令牌数 | 模式 | 策略 |
|---|---|---|
| ≤ 80k | 直接模式 | 跳过子代理。Opus直接读取所有文件,并在单个上下文内完成所有分析。 |
| 80k – 200k | 2代理模式 | 代理AB(核心+架构+设计)、代理C(使用+模式+部署) |
| 200k – 400k | 3代理模式 | 代理A(核心+设计)、代理B(架构+模式)、代理C(使用+部署) |
| > 400k | 3代理模式 | 代理A、B、C——每个代理处理≤150k令牌的文件,溢出文件分配给负载最轻的代理 |
detected_sectionsRun in parallel with Phase 2 subagent launches (or with Phase 3 in direct mode).
与阶段2的子代理启动并行执行(或在直接模式下与阶段3并行执行)。
.git/configgit -C {TARGET_DIR} remote get-url originowner/repogh api repos/{owner}/{repo} --jq '{stars: .stargazers_count, forks: .forks_count, open_issues: .open_issues_count}'ghN/A.git/configgit -C {TARGET_DIR} remote get-url originowner/repogh api repos/{owner}/{repo} --jq '{stars: .stargazers_count, forks: .forks_count, open_issues: .open_issues_count}'ghN/Apackage.jsonWebFetch https://api.npmjs.org/downloads/point/last-month/{package_name}pyproject.tomlWebFetch https://pypistats.org/api/packages/{package_name}/recentN/Apackage.jsonWebFetch https://api.npmjs.org/downloads/point/last-month/{package_name}pyproject.tomlWebFetch https://pypistats.org/api/packages/{package_name}/recentN/AN/AN/A| Criteria | Score |
|---|---|
| < 3 months, < 3 releases, 1-2 contributors | experimental |
| 3-12 months, 3-10 releases, 2-5 contributors | growing |
| 1-3 years, 10-50 releases, 5-20 contributors | stable |
| > 3 years, > 50 releases, > 20 contributors | mature |
| 评估标准 | 成熟度等级 |
|---|---|
| 时长<3个月,发布次数<3,贡献者1-2人 | 实验性 |
| 3-12个月,3-10次发布,2-5名贡献者 | 成长期 |
| 1-3年,10-50次发布,5-20名贡献者 | 稳定期 |
| >3年,>50次发布,>20名贡献者 | 成熟期 |
Direct mode (≤80k tokens): SKIP this entire phase. Proceed to Phase 3. Opus reads files directly during synthesis.
Task直接模式(≤80k令牌):完全跳过此阶段,直接进入阶段3。Opus在合成文档时按需读取文件。
TaskTask prompt for Agent A — subagent_type: "general-purpose", model: "sonnet"Task prompt for Agent A — subagent_type: "general-purpose", model: "sonnet"{file_path}:ClassName{file_path}:function_name{file_path}:ClassName{file_path}:function_name{file_path}:ClassName{file_path}:function_name{file_path}:ClassName{file_path}:function_name{file_path}:SymbolName{file_path}:SymbolName{file_path}{file_path}file:SymbolNameundefinedfile:SymbolNameundefinedTask prompt for Agent B — subagent_type: "general-purpose", model: "sonnet"Task prompt for Agent B — subagent_type: "general-purpose", model: "sonnet"| Layer | Modules | Files | Responsibility |
|---|
| 层级 | 模块 | 文件数 | 职责 |
|---|
{file:SymbolName}{file:SymbolName}{path}{path}anyanyfile:SymbolNameundefinedfile:SymbolNameundefinedTask prompt for Agent C — subagent_type: "general-purpose", model: "sonnet"Task prompt for Agent C — subagent_type: "general-purpose", model: "sonnet"{file_path}:ClassName{file_path}:function_name{file_path}:ClassName{file_path}:function_name| Source | Path | Key Settings |
|---|
| 来源 | 路径 | 关键设置 |
|---|
| Mode | Evidence | Prerequisites |
|---|
| 模式 | 证据 | 前置条件 |
|---|
| Metric | Value | Source |
|---|---|---|
| {LLM calls per request} | {N} | |
| {Cache strategy} | {type} | |
| {Rate limiting} | {config} | |
| 指标 | 数值 | 来源 |
|---|---|---|
| {每次请求的LLM调用次数} | {N} | |
| {缓存策略} | {类型} | |
| {速率限制} | {配置} | |
file:SymbolName
---file:SymbolName
---detected_sectionsPromise.allreferences/section-detection-rules.md- [x] Storage Layer — scanner detected: prisma in dependencies
- [ ] Embedding Pipeline — not detected
- [x] Infrastructure Layer — scanner detected: Dockerfile present
- [ ] Knowledge Graph — not detected
- [ ] Scalability — not detected
- [x] Concurrency — Agent B reported: Promise.all pattern in src/worker.tsdetected_sectionsPromise.allreferences/section-detection-rules.md- [x] 存储层 — 扫描器检测到:依赖中包含prisma
- [ ] 嵌入流水线 — 未检测到
- [x] 基础设施层 — 扫描器检测到:存在Dockerfile
- [ ] 知识图谱 — 未检测到
- [ ] 可扩展性 — 未检测到
- [x] 并发处理 — 代理B报告:src/worker.ts中存在Promise.all模式graph TBsequenceDiagram- **{module_name}** (\graph TBsequenceDiagram- **{module_name}** (\references/output-template.md| Section | Primary Source | Secondary Source |
|---|---|---|
| 1. Project Identity | Scanner metadata + Phase 1 | Git metadata |
| 2. Architecture | Agent B (Parts 1-6) | Agent A (abstractions per layer) |
| 3. Core Abstractions | Agent A (Part 1) | Agent B (layer context) |
| 4. Conditional | Phase 3 detection + relevant agents | — |
| 5. Usage Guide | Agent C (Parts 1-4) | Scanner entry_points |
| 6. Performance & Cost | Agent C (Part 6) + Agent B | — |
| 7. Security & Privacy | Agent C (Part 5) | — |
| 8. Design Decisions | Agent A (Part 2) | Agent B (architecture context) |
| 8.5 Code Quality & Patterns | Agent B (Part 7) | Agent A (supporting observations) |
| 9. Recommendations | Agent A (Part 4) | Agents B/C (supporting evidence) |
references/output-template.md| 章节 | 主要数据源 | 次要数据源 |
|---|---|---|
| 1. 项目标识 | 扫描器元数据 + 阶段1 | Git元数据 |
| 2. 架构设计 | 代理B(第1-6部分) | 代理A(各层级抽象) |
| 3. 核心抽象 | 代理A(第1部分) | 代理B(层级上下文) |
| 4. 条件模块 | 阶段3检测结果 + 相关代理报告 | — |
| 5. 使用指南 | 代理C(第1-4部分) | 扫描器入口点数据 |
| 6. 性能与成本 | 代理C(第6部分) + 代理B | — |
| 7. 安全与隐私 | 代理C(第5部分) | — |
| 8. 设计决策 | 代理A(第2部分) | 代理B(架构上下文) |
| 8.5 代码质量与模式 | 代理B(第7部分) | 代理A(辅助观察结果) |
| 9. 改进建议 | 代理A(第4部分) | 代理B/C(辅助证据) |
docs/{project-name}.mddocs/{project-name}.mdreferences/quality-checklist.mdreferences/quality-checklist.mdwell-designed, elegant, elegantly, robust, clean, impressive,
state-of-the-art, cutting-edge, best-in-class, beautifully,
carefully crafted, thoughtfully, well-thought-out, well-architected,
nicely, cleverly, sophisticated, powerful, seamless, seamlessly,
intuitive, intuitively優雅、完美、強大、直觀、無縫、精心、巧妙、出色、卓越、先進、高效、靈活、穩健、簡潔well-designed, elegant, elegantly, robust, clean, impressive,
state-of-the-art, cutting-edge, best-in-class, beautifully,
carefully crafted, thoughtfully, well-thought-out, well-architected,
nicely, cleverly, sophisticated, powerful, seamless, seamlessly,
intuitive, intuitively優雅、完美、強大、直觀、無縫、精心、巧妙、出色、卓越、先進、高效、靈活、穩健、簡潔##>##>file:SymbolNamefile:SymbolNamefile_pathfile:SymbolNamefile:SymbolNamefile_pathProfile generated: docs/{project-name}.md
- {total_files} files scanned ({total_tokens} tokens)
- {N} core abstractions identified
- {N} design decisions documented
- {N} recommendations
- Conditional sections: {list of included sections or "none"}已生成项目概要文档:docs/{project-name}.md
- 扫描文件总数:{total_files}(总令牌数:{total_tokens})
- 识别核心抽象数量:{N}
- 记录设计决策数量:{N}
- 提出改进建议数量:{N}
- 条件模块:{已包含的模块列表或“无”}