Loading...
Loading...
Compare original and translation side by side
| Indicator | Stack | Query Prefix | Official Docs |
|---|---|---|---|
| .NET | "C# ASP.NET Core" | Microsoft docs |
| Node.js | "TypeScript Node.js" | MDN, npm docs |
| Python | "Python" | Python docs, PyPI |
| Go | "Go Golang" | Go docs |
| Rust | "Rust" | Rust docs |
| Java | "Java" | Oracle docs, Maven |
query_prefix| 检测指标 | 技术栈 | 查询前缀 | 官方文档 |
|---|---|---|---|
| .NET | "C# ASP.NET Core" | Microsoft docs |
| Node.js | "TypeScript Node.js" | MDN, npm docs |
| Python | "Python" | Python docs, PyPI |
| Go | "Go Golang" | Go docs |
| Rust | "Rust" | Rust docs |
| Java | "Java" | Oracle docs, Maven |
query_prefix| Parameter | Required | Description |
|---|---|---|
| doc_type | Yes | "guide" / "manual" / "adr" / "research" |
| topic | Yes | What to document (pattern name, package name, decision title, research question) |
| story_context | No | Story/Task context for relevance |
| 参数名 | 是否必填 | 描述 |
|---|---|---|
| doc_type | 是 | "guide" / "manual" / "adr" / "research" |
| topic | 是 | 文档主题(模式名称、包名、决策标题、研究问题) |
| story_context | 否 | 需求故事/任务上下文,用于关联相关性 |
| Tool | Use Case | Query Pattern |
|---|---|---|
| Standards, patterns, RFCs | |
| Get library ID for docs | |
| Library API, methods | |
| Market, competitors, versions | |
| 工具 | 适用场景 | 查询模式 |
|---|---|---|
| 标准、模式、RFC文档 | |
| 获取库的ID用于文档查询 | |
| 库API、方法查询 | |
| 市场、竞品、版本信息 | |
| Type | Focus | Primary Sources | Key Questions |
|---|---|---|---|
| Technical | Solution comparison | Docs, benchmarks, RFCs | "Which solution fits our use-case?" |
| Market | Industry landscape | Reports, blogs, articles | "What's the market size/trend?" |
| Competitor | How others solve it | Product pages, reviews, demos | "What features do competitors offer?" |
| Requirements | User needs | Feedback, support tickets, forums | "What do customers complain about?" |
| Feasibility | Can we build it? | PoC, prototypes, local tests | "Is it technically possible?" |
| Feature Demand | Feature viability | Competitor features + blogs/socials + user complaints | "Is this feature worth building?" |
| 类型 | 研究重点 | 主要来源 | 核心问题 |
|---|---|---|---|
| 技术类 | 方案对比 | 文档、基准测试、RFC | "哪种方案符合我们的使用场景?" |
| 市场类 | 行业格局 | 报告、博客、文章 | "市场规模/趋势如何?" |
| 竞品类 | 竞品解决方案 | 产品页面、评测、演示 | "竞品提供了哪些功能?" |
| 需求类 | 用户需求 | 反馈、支持工单、论坛 | "用户抱怨的点是什么?" |
| 可行性类 | 技术实现可能性 | 概念验证、原型、本地测试 | "技术上是否可行?" |
| 需求度类 | 功能可行性 | 竞品功能+博客/社交平台+用户反馈 | "该功能是否值得开发?" |
| doc_type | Purpose | Research Source | Template | Output Path | Words |
|---|---|---|---|---|---|
| guide | Pattern with Do/Don't/When table | | guide_template.md | | 300-500 |
| manual | API/library reference | | manual_template.md | | 300-500 |
| adr | Architecture decision | Dialog (5 questions) | adr_template.md | | 300-500 |
| research | Investigation answering question | See Methodology table above | research_template.md | | 300-700 |
| doc_type | 用途 | 研究来源 | 模板 | 输出路径 | 字数范围 |
|---|---|---|---|---|---|
| guide | 包含Do/Don't/When表格的模式文档 | | guide_template.md | | 300-500 |
| manual | API/库参考文档 | | manual_template.md | | 300-500 |
| adr | 架构决策记录 | 对话(5个问题) | adr_template.md | | 300-500 |
| research | 针对问题的调研文档 | 参考上述研究方法表格 | research_template.md | | 300-700 |
| Forbidden | Allowed |
|---|---|
| Code snippets | Tables (params, config, alternatives) |
| Implementation examples | ASCII diagrams, Mermaid diagrams |
| Code blocks >1 line | Method signatures (1 line inline) |
| Links to official docs |
┌───────────────────────────────────────────────┐
│ 1. TABLES + ASCII diagrams ←── PRIORITY │
│ Params, Config, Alternatives, Flows │
├───────────────────────────────────────────────┤
│ 2. LISTS (enumerations only) │
│ Enumeration items, file lists, tools │
├───────────────────────────────────────────────┤
│ 3. TEXT (last resort) │
│ Only if cannot express as table │
└───────────────────────────────────────────────┘| Content Type | Format |
|---|---|
| Parameters | Table: Name | Type | Required | Default |
| Configuration | Table: Option | Type | Default | Description |
| Alternatives | Table: Alt | Pros | Cons | Why Rejected |
| Patterns | Table: Do | Don't | When |
| Workflow | ASCII diagram: |
| 禁止内容 | 允许内容 |
|---|---|
| 代码片段 | 表格(参数、配置、替代方案) |
| 实现示例 | ASCII图、Mermaid图 |
| 超过1行的代码块 | 单行方法签名(内联) |
| 官方文档链接 |
┌───────────────────────────────────────────────┐
│ 1. 表格 + ASCII图 ←── 最高优先级 │
│ 参数、配置、替代方案、流程 │
├───────────────────────────────────────────────┤
│ 2. 列表(仅枚举类型) │
│ 枚举项、文件列表、工具 │
├───────────────────────────────────────────────┤
│ 3. 文本(最后选择) │
│ 仅当无法用表格表达时使用 │
└───────────────────────────────────────────────┘| 内容类型 | 格式要求 |
|---|---|
| 参数 | 表格:名称 | 类型 | 是否必填 | 默认值 |
| 配置 | 表格:选项 | 类型 | 默认值 | 描述 |
| 替代方案 | 表格:方案 | 优点 | 缺点 | 被否决原因 |
| 模式 | 表格:Do | Don't | 适用场景 |
| 工作流 | ASCII图: |
shared/templates/guide_template.mdshared/templates/manual_template.mdshared/templates/adr_template.mdshared/templates/research_template.mddocs/DOCUMENTATION_STANDARDS.mdshared/templates/guide_template.mdshared/templates/manual_template.mdshared/templates/adr_template.mdshared/templates/research_template.mddocs/DOCUMENTATION_STANDARDS.md