ln-002-best-practices-researcher by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-002-best-practices-researcher路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录中未找到,请定位此SKILL.md文件所在的目录,然后向上返回一级即为仓库根目录。
在一个工作流程中研究行业标准并创建项目文档。
目标: 识别项目技术栈,以筛选研究查询并调整输出。
检测方法:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 指示器 | 技术栈 | 查询前缀 | 官方文档 |
|---|
*.csproj, *.sln | .NET | "C# ASP.NET Core" | Microsoft 文档 |
package.json + tsconfig.json | Node.js | "TypeScript Node.js" | MDN, npm 文档 |
requirements.txt, pyproject.toml | Python | "Python" | Python 文档, PyPI |
go.mod | Go | "Go Golang" | Go 文档 |
Cargo.toml | Rust | "Rust" | Rust 文档 |
build.gradle, pom.xml | Java | "Java" | Oracle 文档, Maven |
用法:
query_prefix| 参数 | 必需 | 描述 |
|---|---|---|
| doc_type | 是 | "guide" / "manual" / "adr" / "research" |
| topic | 是 | 要记录的内容(模式名称、包名称、决策标题、研究问题) |
| story_context | 否 | 故事/任务上下文,用于提高相关性 |
| 工具 | 使用场景 | 查询模式 |
|---|---|---|
ref_search_documentation | 标准、模式、RFC | "[topic] RFC standard best practices {current_year}" |
context7__resolve-library-id | 获取库的 ID 以查询文档 | libraryName="[topic]" |
context7__query-docs | 库的 API、方法 | topic="[stack_prefix] [topic]" |
WebSearch | 市场、竞争对手、版本 | "[topic] latest {current_year}" 或 "[topic] vs alternatives" |
时间限制: 研究用时 5-10 分钟;如果主题琐碎则跳过
| 类型 | 重点 | 主要来源 | 关键问题 |
|---|---|---|---|
| 技术性 | 解决方案比较 | 文档、基准测试、RFC | "哪种解决方案适合我们的用例?" |
| 市场性 | 行业格局 | 报告、博客、文章 | "市场规模/趋势如何?" |
| 竞争性 | 他人如何解决 | 产品页面、评论、演示 | "竞争对手提供哪些功能?" |
| 需求性 | 用户需求 | 反馈、支持工单、论坛 | "客户抱怨什么?" |
| 可行性 | 我们能否构建? | 概念验证、原型、本地测试 | "这在技术上可行吗?" |
| 功能需求 | 功能可行性 | 竞争对手功能 + 博客/社交媒体 + 用户投诉 | "这个功能值得构建吗?" |
| doc_type | 目的 | 研究来源 | 模板 | 输出路径 | 字数 |
|---|---|---|---|---|---|
| guide | 包含 Do/Don't/When 表格的模式 | ref_search (最佳实践) | guide_template.md | guides/NN-[slug].md | 300-500 |
| manual | API/库参考 | context7__query-docs | manual_template.md | manuals/[pkg]-[ver].md | 300-500 |
| adr | 架构决策 | 对话(5 个问题) | adr_template.md | adrs/adr-NNN-[slug].md | 300-500 |
| research | 回答问题的调查 | 参见上方的"研究方法"表 | research_template.md | research/rsh-NNN-[slug].md | 300-700 |
通用工作流程: 检测编号(如果需要)→ 研究 → 根据模板生成 → 验证(SCOPE, POSIX)→ 保存 → 返回路径
按 doc_type 提取内容与章节:
验证细节: guide:存在模式表格;manual:文件名中包含版本;adr:ISO 日期、状态字段;所有:来源 ≤ 1 年
ADR 对话(5 个问题): Q1:标题? → Q2:类别(战略/技术)? → Q3:上下文? → Q4:决策 + 理由? → Q5:备选方案(2 个,含优缺点)?
输出: 返回文件路径,以便在故事/任务中链接;对于 ADR,提醒在 architecture.md 中引用;对于研究,如果需要决策,则建议创建 ADR
强制文件创建:
禁止代码示例(所有文档类型):
| 禁止 | 允许 |
|---|---|
| 代码片段 | 表格(参数、配置、备选方案) |
| 实现示例 | ASCII 图表、Mermaid 图表 |
| 超过 1 行的代码块 | 方法签名(1 行内联) |
| 指向官方文档的链接 |
格式优先级(严格):
┌───────────────────────────────────────────────┐
│ 1. 表格 + ASCII 图表 ←── 优先级 │
│ 参数、配置、备选方案、流程 │
├───────────────────────────────────────────────┤
│ 2. 列表(仅用于枚举) │
│ 枚举项、文件列表、工具 │
├───────────────────────────────────────────────┤
│ 3. 文本(最后手段) │
│ 仅当无法用表格表达时 │
└───────────────────────────────────────────────┘
| 内容类型 | 格式 |
|---|---|
| 参数 | 表格:名称 |
| 配置 | 表格:选项 |
| 备选方案 | 表格:方案 |
| 模式 | 表格:做 |
| 工作流程 | ASCII 图表:A → B → C |
其他规则:
shared/templates/guide_template.mdshared/templates/manual_template.mdshared/templates/adr_template.mdshared/templates/research_template.mddocs/standards/DOCUMENTATION_STANDARDS.md(如果存在)shared/references/research_tool_fallback.md版本: 3.0.1 最后更新: 2026-02-14
每周安装数
119
仓库
GitHub 星标数
262
首次出现
Jan 24, 2026
安全审计
安装于
claude-code106
gemini-cli105
opencode105
codex105
cursor103
github-copilot100
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Research industry standards and create project documentation in one workflow.
Objective : Identify project stack to filter research queries and adapt output.
Detection:
| Indicator | Stack | Query Prefix | Official Docs |
|---|---|---|---|
*.csproj, *.sln | .NET | "C# ASP.NET Core" | Microsoft docs |
package.json + tsconfig.json | Node.js | "TypeScript Node.js" | MDN, npm docs |
requirements.txt, pyproject.toml | Python | "Python" | Python docs, PyPI |
go.mod | Go | "Go Golang" |
Usage:
query_prefix to all MCP search queries| 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 |
| Tool | Use Case | Query Pattern |
|---|---|---|
ref_search_documentation | Standards, patterns, RFCs | "[topic] RFC standard best practices {current_year}" |
context7__resolve-library-id | Get library ID for docs | libraryName="[topic]" |
context7__query-docs | Library API, methods | topic="[stack_prefix] [topic]" |
Time-box: 5-10 minutes for research; skip if topic is trivial
| 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 |
| doc_type | Purpose | Research Source | Template | Output Path | Words |
|---|---|---|---|---|---|
| guide | Pattern with Do/Don't/When table | ref_search (best practices) | guide_template.md | guides/NN-[slug].md | 300-500 |
| manual | API/library reference | context7__query-docs | manual_template.md | manuals/[pkg]-[ver].md | 300-500 |
Common Workflow: Detect number (if needed) → Research → Generate from template → Validate (SCOPE, POSIX) → Save → Return path
Extract & Sections by doc_type:
Validation specifics: guide: patterns table present; manual: version in filename; adr: ISO date, status field; all: sources ≤ 1 year old
ADR Dialog (5 questions): Q1: Title? → Q2: Category (Strategic/Technical)? → Q3: Context? → Q4: Decision + Rationale? → Q5: Alternatives (2 with pros/cons)?
Output: File path for linking in Stories/Tasks; for ADR remind to reference in architecture.md; for Research suggest ADR if decision needed
MANDATORY FILE CREATION:
NO_CODE_EXAMPLES (ALL document types):
| 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 |
Format Priority (STRICT):
┌───────────────────────────────────────────────┐
│ 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 |
| Configuration | Table: Option |
| Alternatives | Table: Alt |
| Patterns | Table: Do |
| Workflow | ASCII diagram: A → B → C |
Other Rules:
shared/templates/guide_template.mdshared/templates/manual_template.mdshared/templates/adr_template.mdshared/templates/research_template.mddocs/standards/DOCUMENTATION_STANDARDS.md (if exists)shared/references/research_tool_fallback.mdVersion: 3.0.1 Last Updated: 2026-02-14
Weekly Installs
119
Repository
GitHub Stars
262
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code106
gemini-cli105
opencode105
codex105
cursor103
github-copilot100
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
| Go docs |
Cargo.toml | Rust | "Rust" | Rust docs |
build.gradle, pom.xml | Java | "Java" | Oracle docs, Maven |
WebSearch |
| Market, competitors, versions |
"[topic] latest {current_year}" or "[topic] vs alternatives" |
| Competitor features + blogs/socials + user complaints |
| "Is this feature worth building?" |
| adr | Architecture decision | Dialog (5 questions) | adr_template.md | adrs/adr-NNN-[slug].md | 300-500 |
| research | Investigation answering question | See Methodology table above | research_template.md | research/rsh-NNN-[slug].md | 300-700 |