
ln-111-root-docs-creator
Creates root documentation files (AGENTS.md, CLAUDE.md, docs/README.md, standards, principles). Use for initial project doc setup.
- Installs
- 379
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-111-root-docs-creator- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads ln-111-root-docs-creator automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Paths: File paths (
references/,../ln-*) are relative to this skill directory.
Root Documentation Creator
Type: L3 Worker
L3 Worker that creates 7 root documentation files using templates and Context Store from coordinator.
Purpose & Scope
- Creates 7 root documentation files (entry points for AI agents)
- Receives Context Store from ln-110-project-docs-coordinator
- Replaces placeholders with project-specific data
- Self-validates structure and content (22 questions)
- Never gathers context itself; uses coordinator input
Inputs
From coordinator:
contextStore: Key-value pairs with all placeholders- PROJECT_NAME, PROJECT_DESCRIPTION
- TECH_STACK_SUMMARY
- DEV_COMMANDS (from package.json scripts)
- DATE (current date)
ENABLE_WORKFLOW_PRINCIPLES(optional boolean; defaultfalse) — whentrue, expands the{{WORKFLOW_PRINCIPLES_BLOCK}}placeholder in AGENTS.md with the content ofreferences/templates/agents_md_workflow_principles.md
targetDir: Project root directory
MANDATORY READ: Load references/docs_quality_contract.md, and references/agent_instructions_writing_guide.md (the canonical writing guide for AGENTS.md / CLAUDE.md).
Optional rule catalog: load references/docs_quality_rules.json only when exact rule IDs, path matrices, or allowlisted placeholder exceptions are needed.
Documents Created
| File | Target Sections | Questions |
|---|---|---|
| AGENTS.md | Quick Navigation, Agent Entry, Critical Rules, (optional) Workflow Principles, Development Commands, Maintenance | Q1-Q6 |
| CLAUDE.md | @AGENTS.md import + ## Claude Code delta (≤20 lines total) | Q1-Q6 |
| docs/README.md | Quick Navigation, Agent Entry, Documentation Map, 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 |
Workflow
Phase 1: Receive Context
- Parse Context Store from coordinator
- Validate required keys present (PROJECT_NAME, PROJECT_DESCRIPTION)
- Set defaults for missing optional keys (
ENABLE_WORKFLOW_PRINCIPLESdefaults tofalse)
Phase 2: Create Documents
For each document (AGENTS.md, CLAUDE.md, docs/README.md, docs/documentation_standards.md, docs/principles.md):
- Check if file exists (idempotent)
- If exists: skip with log
- If not exists:
- Copy template from
references/templates/ - For AGENTS.md: enforce the shared header contract (
SCOPE,DOC_KIND,DOC_ROLE: canonical,READ_WHEN,SKIP_WHEN,PRIMARY_SOURCES) and the top-section contract (## Quick Navigation,## Agent Entry,## Critical Rules,## Maintenance) - For AGENTS.md: if
ENABLE_WORKFLOW_PRINCIPLES=true, replace the{{WORKFLOW_PRINCIPLES_BLOCK}}placeholder with the full content ofreferences/templates/agents_md_workflow_principles.md; otherwise strip the placeholder line and its leading comment - For CLAUDE.md: use the import-stub template (
claude_md_template.md). It containsDOC_ROLE: derived, a single@AGENTS.mdline, and a bounded harness-specific delta. Do not inline any AGENTS.md content - For
docs/principles.md: prefer normalized principle inputs already present in Context Store - If project-specific principles are absent, keep the template structure and fill only facts supported by current project sources
- Replace
{{PLACEHOLDER}}tokens with Context Store values - Never leave template markers in published root docs
- If data is missing: omit the claim or use a concise neutral fallback, but do NOT emit
[TBD: ...] - Write file
- Copy template from
Root entrypoint rule (canonical model):
AGENTS.mdis the single canonical source of content. It holds the Critical Rules table, MCP Tool Preferences, Navigation, Development Commands, and optional Workflow Principles.CLAUDE.mdis a Claude Code-specific stub that contains@AGENTS.mdplus a## Claude Codedelta with harness-specific rules (≤20 lines total, ≤50 absolute max). Do not duplicate AGENTS.md content.- Claude Code expands
@pathimports into the session context at launch, so the imported AGENTS.md is available automatically. - Harness delta content: command terminology (
/compact,/memory show), storage pointers (~/.claude/projects/<project>/memory/), and Claude-only features (.claude/rules/withpaths:frontmatter, nested on-demand loading).
Phase 3: Self-Validate
For each created document:
- Check SCOPE tag in first 12 lines
- Check metadata markers (
DOC_KIND,DOC_ROLE,READ_WHEN,SKIP_WHEN,PRIMARY_SOURCES) - For AGENTS.md: check
Quick Navigation,Agent Entry,Critical Rules,Maintenance - For CLAUDE.md: check
@AGENTS.mdimport line is present and the file is ≤50 lines - Check required sections (from questions_root.md)
- Check docs-quality contract compliance (no forbidden placeholders, no leaked template metadata)
- Check POSIX endings (single newline at end)
- Auto-fix issues where possible
Phase 4: Return Status
Return to coordinator:
{
"created_files": ["AGENTS.md", "CLAUDE.md", "docs/README.md", "docs/documentation_standards.md", "docs/principles.md"],
"skipped_files": [],
"quality_inputs": {
"doc_paths": ["AGENTS.md", "CLAUDE.md", "docs/README.md", "docs/documentation_standards.md", "docs/principles.md"],
"owners": {
"AGENTS.md": "ln-111-root-docs-creator",
"CLAUDE.md": "ln-111-root-docs-creator",
"docs/README.md": "ln-111-root-docs-creator",
"docs/documentation_standards.md": "ln-111-root-docs-creator",
"docs/principles.md": "ln-111-root-docs-creator"
}
},
"validation_status": "passed"
}
Critical Notes
Core Rules
- Idempotent: Never overwrite existing files; skip and log
- No context gathering: All data comes from coordinator's Context Store
- Publishable output: Root docs must not contain
[TBD: ...],TODO, or leaked template metadata - Language: All root docs in English (universal standards)
- SCOPE tags: Required in first 10 lines of each file (HTML comments are stripped from Claude Code's injected context but stay visible to maintainers and auditors)
- Canonical-stub root model:
AGENTS.mdis the single source;CLAUDE.mdis an@AGENTS.mdimport plus bounded harness delta. Seereferences/agent_instructions_writing_guide.mdfor rationale and anti-patterns.
NO_CODE_EXAMPLES Rule (MANDATORY)
Root documents define navigation and standards, NOT implementations:
- FORBIDDEN: Code blocks, implementation snippets
- ALLOWED: Tables, links, command examples (1 line)
- TEMPLATE RULE: All templates include
<!-- NO_CODE_EXAMPLES: ... -->tag - FOLLOW IT
Stack Adaptation Rule (MANDATORY)
- All external links must match project stack (detected in Context Store)
- .NET project → Microsoft docs; Node.js → MDN, npm docs; Python → Python docs
- Never mix stack references (no Python examples in .NET project)
Format Priority (MANDATORY)
Tables/ASCII > Lists (enumerations only) > Text (last resort)
Runtime Summary Artifact
MANDATORY READ: Load references/docs_generation_summary_contract.md
Accept optional summaryArtifactPath.
Summary kind:
docs-generation
Required payload semantics:
worker = "ln-111"statuscreated_filesskipped_filesquality_inputsvalidation_statuswarnings
Write the summary to the provided artifact path or return the same envelope in structured output.
Definition of Done
- Context Store received and validated
- Root documents created (or skipped if exist)
- All placeholders replaced; no
[TBD: ...]markers or template metadata remain in root docs -
CLAUDE.mdcontains exactly one@AGENTS.mdline and a bounded harness delta (≤50 lines total) - If
ENABLE_WORKFLOW_PRINCIPLES=true: the workflow principles shard is expanded in AGENTS.md; iffalse: the placeholder line is stripped - Self-validation passed (SCOPE, metadata markers, top sections, Maintenance, POSIX)
- Actuality verified: all document facts match current code (paths, functions, APIs, configs exist and are accurate)
- Status returned
Reference Files
- Templates:
references/templates/agents_md_template.md,references/templates/claude_md_template.md,references/templates/agents_md_workflow_principles.md,references/templates/docs_root_readme_template.md,references/templates/documentation_standards_template.md,references/templates/principles_template.md - Questions:
references/questions_root.md(Q1-Q22) - Writing guide:
references/agent_instructions_writing_guide.md(canonical rationale for the@AGENTS.mdimport pattern, size budgets, anti-patterns) - Environment state:
references/environment_state_contract.md(detection and bootstrap pattern)
Version: 2.1.0 Last Updated: 2025-01-12
FAQ
What does the ln-111-root-docs-creator skill do?
Creates root documentation files (AGENTS.md, CLAUDE.md, docs/README.md, standards, principles). Use for initial project doc setup.
How do I install ln-111-root-docs-creator?
Run npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-111-root-docs-creator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ln-111-root-docs-creator/ (personal) or .claude/skills/ln-111-root-docs-creator/ (project).
Which AI agents can use ln-111-root-docs-creator?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is ln-111-root-docs-creator safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains ln-111-root-docs-creator?
It is published by levnikolaevich in levnikolaevich/claude-code-skills. It has 379 recorded installs.
More from levnikolaevich/claude-code-skills
ln-100-documents-pipeline
levnikolaevich/claude-code-skills
Creates complete project documentation system (project docs, reference, tasks, tests). Use when bootstrapping docs from scratch or regenerating all.
ln-620-codebase-auditor
levnikolaevich/claude-code-skills
Use when auditing the codebase through the evaluation platform with mandatory research, coordinated domain audit workers, and structured summaries.
ln-775-api-docs-generator
levnikolaevich/claude-code-skills
Configures Swagger/OpenAPI documentation for backend APIs. Use when adding interactive API docs to a project.
ln-624-code-quality-auditor
levnikolaevich/claude-code-skills
Checks cyclomatic complexity, nesting, long methods, god classes, O(n2), N+1 queries, constants management. Use when auditing code quality.
ln-782-test-runner
levnikolaevich/claude-code-skills
Executes all test suites and reports results with coverage. Use when verifying that test infrastructure works after bootstrap.
ln-634-test-coverage-auditor
levnikolaevich/claude-code-skills
Identifies missing tests for unique critical local logic: money, auth, permissions, data integrity, algorithms, and domain rules. Use when auditing critical logic coverage gaps.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.