Loading...
Loading...
Compare original and translation side by side
CRITICAL RULES
- Never assume context that doesn't exist. Only report what the code explicitly shows.
- Never invent dependencies. If a dependency isn't visible in imports, configs, or code, don't add it.
- If information is missing, say so explicitly. Document unknowns as unknowns, not guesses.
- Never copy full source code into the report. Explain how the code works — don't reproduce it.
核心规则
- 绝不假设不存在的上下文。仅报告代码明确展示的内容。
- 绝不虚构依赖关系。如果依赖关系未在导入、配置或代码中体现,请勿添加。
- 若信息缺失,需明确说明。将未知内容记录为未知,而非猜测。
- 绝不将完整源代码复制到报告中。解释代码的工作原理——不要重复代码。
| Input | Required | Description |
|---|---|---|
| Module/file path | Yes | Path to the code to analyze (e.g., |
| Code fragments | Optional | Partial or complete code snippets if not accessible via filesystem |
| Language/framework | Optional | If not detectable from code (e.g., "NestJS", "Next.js", "FastAPI") |
| Additional context | Optional | Business context, known constraints, specific questions |
| Analysis depth | Optional | |
/src/modules/payments/apps/core/auth/src/services/notification-service.ts| 输入项 | 是否必填 | 描述 |
|---|---|---|
| 模块/文件路径 | 是 | 待分析代码的路径(例如: |
| 代码片段 | 否 | 若无法通过文件系统访问,可提供部分或完整代码片段 |
| 语言/框架 | 否 | 若无法从代码中检测到(例如:"NestJS", "Next.js", "FastAPI") |
| 额外上下文 | 否 | 业务上下文、已知约束、特定问题 |
| 分析深度 | 否 | |
/src/modules/payments/apps/core/auth/src/services/notification-service.ts{output_dir}{output_dir}.agents/staging/code-analyzer/{project-name}/IMPORTANT: Everyreference in this skill depends on this resolution.{output_dir}
{output_dir}{output_dir}.agents/staging/code-analyzer/{project-name}/重要说明:本技能中所有引用均依赖此解析结果。{output_dir}
.mdtechnical-reportrefactor-plan[[REPORT]][[REFACTOR]]## Referencias| Metric | Before | After | Delta | Status |.mdtechnical-reportrefactor-plan[[REPORT]][[REFACTOR]]## Referencias| 指标 | 变更前 | 变更后 | 差值 | 状态 |{output_dir}/technical/module-analysis/{module-name}/## Referencias{output_dir}/technical/module-analysis/{module-name}/## Referencias## Referencias[[REPORT]]## Referencias[[REPORT]]{output_dir}/technical/module-analysis/
└── {module-name}/
├── REPORT.md # Main technical report
└── REFACTOR.md # Refactoring recommendations (v3 only)/src/modules/OrderService{output_dir}/technical/module-analysis/order-service//apps/core/payments{output_dir}/technical/module-analysis/payments//src/services/notification-service.ts{output_dir}/technical/module-analysis/notification-service/{output_dir}/technical/module-analysis/
└── {module-name}/
├── REPORT.md # 主技术报告
└── REFACTOR.md # 重构建议(仅v3版本)/src/modules/OrderService{output_dir}/technical/module-analysis/order-service//apps/core/payments{output_dir}/technical/module-analysis/payments//src/services/notification-service.ts{output_dir}/technical/module-analysis/notification-service/| Level | Name | Includes | Use When |
|---|---|---|---|
| v1 | Explanation | Executive Summary + Technical Analysis + Communication | Quick understanding of a module |
| v2 | Explanation + Diagrams | Everything in v1 + Mermaid Diagrams | Documentation or onboarding (default) |
| v3 | Full Analysis | Everything in v2 + Refactoring Recommendations | Pre-refactoring audit or technical review |
| 等级 | 名称 | 包含内容 | 适用场景 |
|---|---|---|---|
| v1 | 基础解释 | 执行摘要+技术分析+模块通信 | 快速了解模块 |
| v2 | 解释+图表 | v1所有内容+Mermaid图 | 文档编写或新人入职(默认) |
| v3 | 完整分析 | v2所有内容+重构建议 | 重构前审计或技术评审 |
processPayment()gateway.charge()payment.completedprocessPayment()gateway.charge()payment.completed@core/events@core/events| Concept | JavaScript/TypeScript | Python | Go | Java |
|---|---|---|---|---|
| Module | Module/Package | Module/Package | Package | Package |
| Entry point | | | | |
| Interface | Type/Interface | Protocol/ABC | Interface | Interface |
| Dependency injection | Constructor/Provider | | Struct fields | |
| 概念 | JavaScript/TypeScript | Python | Go | Java |
|---|---|---|---|---|
| 模块 | Module/Package | Module/Package | Package | Package |
| 入口点 | | | | |
| 接口 | Type/Interface | Protocol/ABC | Interface | Interface |
| 依赖注入 | Constructor/Provider | | 结构体字段 | |
{output_dir}/technical/module-analysis/{module-name}/{output_dir}/technical/module-analysis/{module-name}/universal-planneruniversal-plannercode-analyzeruniversal-plannercode-analyzeruniversal-planneruniversal-plannercode-analyzercode-analyzerobsidian.agents/staging/code-analyzer/obsidian.agents/staging/code-analyzer/| Issue | Solution |
|---|---|
| Module path doesn't exist | Verify path with user, check for typos, case sensitivity, or moved files |
| Can't determine framework | Ask user to specify, check config files ( |
| Module too large | Break into sub-modules, analyze separately, create top-level summary |
| Dependencies unclear | Mark as "suspected" with reasoning, check DI containers and config files |
| Report seems incomplete | Verify all files read, check for dynamic imports or config-driven behavior |
| 问题 | 解决方案 |
|---|---|
| 模块路径不存在 | 与用户确认路径,检查拼写错误、大小写敏感性或文件是否已移动 |
| 无法确定框架 | 询问用户,检查配置文件( |
| 模块过大 | 拆分为子模块,分别分析,创建顶层摘要 |
| 依赖关系不清晰 | 标记为“疑似”并说明理由,检查依赖注入容器和配置文件 |
| 报告内容不完整 | 验证是否读取了所有文件,检查是否存在动态导入或配置驱动的行为 |
## Referencias## Referencias