ln-111-root-docs-creator by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-111-root-docs-creator路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录未找到,请定位此 SKILL.md 文件所在的目录并向上返回一级以找到仓库根目录。如果缺少shared/目录,请通过 WebFetch 从https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}获取文件。
一个 L3 工作器,使用模板和来自协调器的上下文存储创建 5 个根文档文件。
来自协调器:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
contextStore:包含所有占位符的键值对
legacy_principles: { principles[], anti_patterns[], conventions[] }targetDir:项目根目录LEGACY_CONTENT 在创建 principles.md 时用作基础内容。优先级:遗留内容 > 模板默认值。
| 文件 | 目标章节 | 问题 |
|---|---|---|
| CLAUDE.md | 关键规则、文档导航、开发命令、维护 | Q1-Q6 |
| docs/README.md | 概述、标准、写作指南、快速导航、维护 | Q7-Q13 |
| docs/documentation_standards.md | 快速参考(60+ 要求)、12 个主要章节、维护 | Q14-Q16 |
| docs/principles.md | 核心原则(8 个)、决策框架、反模式、验证、维护 | Q17-Q22 |
| docs/tools_config.md | 任务管理、研究、文件编辑、外部代理、Git | 自动检测 |
对于每个文档(CLAUDE.md, docs/README.md, documentation_standards.md, principles.md):
references/templates/ 复制模板principles.md:如果 LEGACY_CONTENT.legacy_principles 存在:
legacy_principles.principles[] 作为“## 核心原则”章节的基础legacy_principles.anti_patterns[] 作为“## 反模式”章节legacy_principles.conventions[] 作为代码风格规则<!-- 从遗留文档迁移而来 -->{{PLACEHOLDER}}[TBD: X](从不留空占位符)必读: 加载 shared/references/mcp_tool_preferences.md
对于 docs/tools_config.md:
references/templates/tools_config_template.md 复制模板list_teams() → 设置 Provider/Status/Team IDref_search_documentation(query="test") → 如果活跃,设置 Provider=ref。然后为 Context7 调用 resolve-library-id(libraryName="react") → 设置回退链codex --version, gemini --version → 设置 Status/Commentgit worktree list → 设置 Worktree/Strategy对于每个创建的文档:
返回给协调器:
{
"created": ["CLAUDE.md", "docs/README.md", ...],
"skipped": [],
"tbd_count": 3,
"validation": "OK"
}
[TBD: placeholder_name],从不使用 {{PLACEHOLDER}}根文档定义导航和标准,而非实现:
<!-- NO_CODE_EXAMPLES: ... --> 标签 — 请遵守表格/ASCII > 列表(仅枚举) > 文本(最后手段)
references/templates/claude_md_template.md, docs_root_readme_template.md, documentation_standards_template.md, principles_template.md, tools_config_template.mdreferences/questions_root.md(Q1-Q22)shared/references/tools_config_guide.md(检测和引导模式)版本: 2.1.0 最后更新: 2025-01-12
每周安装数
151
仓库
GitHub 星标数
245
首次出现
2026 年 1 月 24 日
安全审计
安装于
claude-code138
cursor135
gemini-cli134
codex134
opencode134
github-copilot129
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. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
L3 Worker that creates 5 root documentation files using templates and Context Store from coordinator.
From coordinator:
contextStore: Key-value pairs with all placeholders
legacy_principles: { principles[], anti_patterns[], conventions[] }targetDir: Project root directoryLEGACY_CONTENT is used as base content when creating principles.md. Priority: Legacy > Template defaults.
| File | Target Sections | Questions |
|---|---|---|
| CLAUDE.md | Critical Rules, Documentation Navigation, Development Commands, Maintenance | Q1-Q6 |
| docs/README.md | Overview, Standards, Writing Guidelines, Quick Navigation, Maintenance | Q7-Q13 |
| docs/documentation_standards.md | Quick Reference (60+ requirements), 12 main sections, Maintenance | Q14-Q16 |
| docs/principles.md | Core Principles (8), Decision Framework, Anti-Patterns, Verification, Maintenance | Q17-Q22 |
| docs/tools_config.md | Task Management, Research, File Editing, External Agents, Git | Auto-detected |
For each document (CLAUDE.md, docs/README.md, documentation_standards.md, principles.md):
references/templates/principles.md: If LEGACY_CONTENT.legacy_principles exists:
legacy_principles.principles[] as base for "## Core Principles" sectionlegacy_principles.anti_patterns[] for "## Anti-Patterns" sectionlegacy_principles.conventions[] for code style rules<!-- Migrated from legacy documentation --> at top of relevant sectionsMANDATORY READ: Load shared/references/mcp_tool_preferences.md
For docs/tools_config.md:
references/templates/tools_config_template.mdlist_teams() via mcp__linear-server → set Provider/Status/Team IDref_search_documentation(query="test") → if active, set Provider=ref. Then call resolve-library-id(libraryName="react") for Context7 → set Fallback chaincodex --version, gemini --version → set Status/Commentgit worktree list → set Worktree/StrategyFor each created document:
Return to coordinator:
{
"created": ["CLAUDE.md", "docs/README.md", ...],
"skipped": [],
"tbd_count": 3,
"validation": "OK"
}
[TBD: placeholder_name] for missing data, never {{PLACEHOLDER}}Root documents define navigation and standards , NOT implementations:
<!-- NO_CODE_EXAMPLES: ... --> tag - FOLLOW ITTables/ASCII > Lists (enumerations only) > Text (last resort)
references/templates/claude_md_template.md, docs_root_readme_template.md, documentation_standards_template.md, principles_template.md, tools_config_template.mdreferences/questions_root.md (Q1-Q22)shared/references/tools_config_guide.md (detection and bootstrap pattern)Version: 2.1.0 Last Updated: 2025-01-12
Weekly Installs
151
Repository
GitHub Stars
245
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code138
cursor135
gemini-cli134
codex134
opencode134
github-copilot129
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
65,000 周安装
{{PLACEHOLDER}} with Context Store values[TBD: X] for missing data (never leave empty placeholders)