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. If shared/ is missing, fetch files via WebFetch from https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/{path}.
Project Core Documentation Creator
L3 Worker that creates 4 core project documentation files. These are ALWAYS created regardless of project type.
Purpose & Scope
- Creates 4 core project documentation files (required for all projects)
- Receives Context Store from ln-110-project-docs-coordinator
- Heavy use of auto-discovery (architecture needs full project scan)
- Replaces placeholders with project-specific data
- Self-validates structure and content (16+ questions)
- Never gathers context itself; uses coordinator input
Invocation (who/when)
- ln-110-project-docs-coordinator: ALWAYS invoked as second worker (after ln-111)
- Never called directly by users
Inputs
From coordinator:
contextStore: Full Context Store with all discovered data
- PROJECT_NAME, PROJECT_DESCRIPTION
- TECH_STACK (full object: frontend, backend, database, etc.)
- DEPENDENCIES (from package.json)
- SRC_STRUCTURE (folder analysis)
- EXTERNAL_SYSTEMS (from .env.example)
- CODE_CONVENTIONS (from eslint, prettier)
- ADR_LIST (from docs/reference/adrs/)
- LEGACY_CONTENT (optional, from ln-100 Phase 0 migration):
legacy_architecture: { layers[], components[], diagrams[], data_flow }
legacy_requirements: { functional[], non_functional[], user_stories[] }
legacy_tech_stack: { frontend, backend, database, versions }
targetDir: Project root directory
LEGACY_CONTENT is used as base content when creating documents. Priority: Legacy > Auto-discovery > Template defaults.
Documents Created (4)
| File |
Target Sections |
Questions |
Auto-Discovery |
| docs/project/requirements.md |
Functional Requirements (FR-XXX-NNN format) |
Q23 |
Low |
| docs/project/architecture.md |
11 arc42 sections with C4 diagrams |
Q24-Q34 |
High |
| docs/project/tech_stack.md |
Frontend, Backend, Database, Additional |
Q35-Q38 |
High |
| docs/architecture/patterns_catalog.md |
Pattern summary, 4-score model, trend tracking |
— |
High |
Workflow
Phase 1: Receive Context
- Parse full Context Store from coordinator
- Validate required keys (PROJECT_NAME, TECH_STACK)
- Extract architecture-specific data (SRC_STRUCTURE, DEPENDENCIES)
Phase 2: Create Documents
For each document (requirements.md, architecture.md, tech_stack.md, patterns_catalog.md):
- Check if file exists (idempotent)
- If exists: skip with log
- If not exists:
- Copy template from
references/templates/
- Check LEGACY_CONTENT for this document type:
- For
architecture.md: If LEGACY_CONTENT.legacy_architecture exists:
- Use
legacy_architecture.layers[] for "## Building Block View" (Section 5)
- Use
legacy_architecture.components[] for component descriptions
- Use
legacy_architecture.diagrams[] for existing diagrams (preserve mermaid/images)
- Use
legacy_architecture.data_flow for "## Runtime View" (Section 6)
- Merge with auto-discovered SRC_STRUCTURE (legacy takes priority)
- Mark:
<!-- Migrated from legacy documentation --> at top of merged sections
- For
requirements.md: If LEGACY_CONTENT.legacy_requirements exists:
- Use
legacy_requirements.functional[] as base for FR-XXX requirements
- Use
legacy_requirements.user_stories[] if FR format not found
- Augment with template structure (add MoSCoW labels if missing)
- For
tech_stack.md: If LEGACY_CONTENT.legacy_tech_stack exists:
- Use
legacy_tech_stack.versions as base for technology versions
- Merge with auto-discovered TECH_STACK (legacy versions take priority)
- Use
legacy_tech_stack.rationale for decision explanations
- For
patterns_catalog.md:
- Copy template from
shared/templates/patterns_template.md
- Auto-detect patterns in codebase:
- Grep("Queue|Worker|Job|Bull") → Job Processing
- Grep("EventEmitter|publish|subscribe") → Event-Driven
- Grep("Cache|Redis|Memcached") → Caching
- Grep("CircuitBreaker|Retry") → Resilience
- Add detected patterns as "Status: Detected" (not yet audited)
- Link to existing ADRs if pattern names match
- Mark:
<!-- Auto-detected by ln-112, audit with ln-640 -->
- Replace
{{PLACEHOLDER}} with Context Store values
- Generate C4 diagrams from SRC_STRUCTURE (for architecture.md, if no legacy diagrams)
- Insert ADR links (for architecture.md Section 8)
- Mark
[TBD: X] for missing data
Phase 3: Self-Validate
For each created document:
- Check SCOPE tag in first 10 lines
- Check required sections (from questions_core.md)
- Validate specific format requirements:
- requirements.md: FR-XXX identifiers, MoSCoW labels
- architecture.md: 11 sections, C4 diagrams, ADR references
- tech_stack.md: versions, rationale for each technology
- Check Maintenance section
- Auto-fix issues where possible
Phase 4: Return Status
Return to coordinator:
{
"created": ["docs/project/requirements.md", ...],
"skipped": [],
"tbd_count": 5,
"validation": "OK",
"diagrams_generated": 3
}
Critical Notes
- Idempotent: Never overwrite existing files
- Heavy auto-discovery: architecture.md requires deep project analysis
- C4 diagrams: Generated from SRC_STRUCTURE in Mermaid format
- ADR integration: Section 8 links to docs/reference/adrs/
- arc42 compliance: ISO/IEC/IEEE 42010:2022 structure
- TBD markers: Use
[TBD: X] for missing data
NO_CODE_EXAMPLES Rule (MANDATORY)
Documents describe contracts and decisions, NOT implementations:
- FORBIDDEN: Code blocks > 5 lines, function implementations, imports, DI configuration
- ALLOWED: Mermaid diagrams, component tables, method signatures (1 line), ADR links
- INSTEAD OF CODE: Reference source: "See src/Services/UserService.cs:45"
- TEMPLATE RULE: All templates include
<!-- NO_CODE_EXAMPLES: ... --> tag - FOLLOW IT
Stack Adaptation Rule (MANDATORY)
- Links must reference stack-appropriate docs (Microsoft for .NET, MDN for JS)
- Never mix stack references (no Python examples in .NET project)
Format Priority (MANDATORY)
Tables > Mermaid/ASCII diagrams > Lists > Text
Definition of Done
Reference Files
- Templates:
references/templates/requirements_template.md, architecture_template.md, tech_stack_template.md
- Patterns template:
shared/templates/patterns_template.md
- Questions:
references/questions_core.md (Q23-Q38)
Version: 2.2.0
Last Updated: 2025-01-12
1---2name: ln-112-project-core-creator-73description: Creates core project docs (requirements, architecture, tech stack, patterns catalog). Use for any project regardless of type.4license: MIT5---67> **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. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/{path}`.89# Project Core Documentation Creator1011L3 Worker that creates 4 core project documentation files. These are ALWAYS created regardless of project type.1213## Purpose & Scope14- Creates 4 core project documentation files (required for all projects)15- Receives Context Store from ln-110-project-docs-coordinator16- Heavy use of auto-discovery (architecture needs full project scan)17- Replaces placeholders with project-specific data18- Self-validates structure and content (16+ questions)19- Never gathers context itself; uses coordinator input2021## Invocation (who/when)22- **ln-110-project-docs-coordinator:** ALWAYS invoked as second worker (after ln-111)23- Never called directly by users2425## Inputs26From coordinator:27- `contextStore`: Full Context Store with all discovered data28 - PROJECT_NAME, PROJECT_DESCRIPTION29 - TECH_STACK (full object: frontend, backend, database, etc.)30 - DEPENDENCIES (from package.json)31 - SRC_STRUCTURE (folder analysis)32 - EXTERNAL_SYSTEMS (from .env.example)33 - CODE_CONVENTIONS (from eslint, prettier)34 - ADR_LIST (from docs/reference/adrs/)35 - **LEGACY_CONTENT** (optional, from ln-100 Phase 0 migration):36 - `legacy_architecture`: { layers[], components[], diagrams[], data_flow }37 - `legacy_requirements`: { functional[], non_functional[], user_stories[] }38 - `legacy_tech_stack`: { frontend, backend, database, versions }39- `targetDir`: Project root directory4041**LEGACY_CONTENT** is used as base content when creating documents. Priority: **Legacy > Auto-discovery > Template defaults**.4243## Documents Created (4)4445| File | Target Sections | Questions | Auto-Discovery |46|------|-----------------|-----------|----------------|47| docs/project/requirements.md | Functional Requirements (FR-XXX-NNN format) | Q23 | Low |48| docs/project/architecture.md | 11 arc42 sections with C4 diagrams | Q24-Q34 | High |49| docs/project/tech_stack.md | Frontend, Backend, Database, Additional | Q35-Q38 | High |50| docs/architecture/patterns_catalog.md | Pattern summary, 4-score model, trend tracking | — | High |5152## Workflow5354### Phase 1: Receive Context551. Parse full Context Store from coordinator562. Validate required keys (PROJECT_NAME, TECH_STACK)573. Extract architecture-specific data (SRC_STRUCTURE, DEPENDENCIES)5859### Phase 2: Create Documents60For each document (requirements.md, architecture.md, tech_stack.md, patterns_catalog.md):611. Check if file exists (idempotent)622. If exists: skip with log633. If not exists:64 - Copy template from `references/templates/`65 - **Check LEGACY_CONTENT for this document type:**66 - For `architecture.md`: If `LEGACY_CONTENT.legacy_architecture` exists:67 - Use `legacy_architecture.layers[]` for "## Building Block View" (Section 5)68 - Use `legacy_architecture.components[]` for component descriptions69 - Use `legacy_architecture.diagrams[]` for existing diagrams (preserve mermaid/images)70 - Use `legacy_architecture.data_flow` for "## Runtime View" (Section 6)71 - Merge with auto-discovered SRC_STRUCTURE (legacy takes priority)72 - Mark: `<!-- Migrated from legacy documentation -->` at top of merged sections73 - For `requirements.md`: If `LEGACY_CONTENT.legacy_requirements` exists:74 - Use `legacy_requirements.functional[]` as base for FR-XXX requirements75 - Use `legacy_requirements.user_stories[]` if FR format not found76 - Augment with template structure (add MoSCoW labels if missing)77 - For `tech_stack.md`: If `LEGACY_CONTENT.legacy_tech_stack` exists:78 - Use `legacy_tech_stack.versions` as base for technology versions79 - Merge with auto-discovered TECH_STACK (legacy versions take priority)80 - Use `legacy_tech_stack.rationale` for decision explanations81 - For `patterns_catalog.md`:82 - Copy template from `shared/templates/patterns_template.md`83 - **Auto-detect patterns in codebase:**84 - Grep("Queue|Worker|Job|Bull") → Job Processing85 - Grep("EventEmitter|publish|subscribe") → Event-Driven86 - Grep("Cache|Redis|Memcached") → Caching87 - Grep("CircuitBreaker|Retry") → Resilience88 - Add detected patterns as "Status: Detected" (not yet audited)89 - Link to existing ADRs if pattern names match90 - Mark: `<!-- Auto-detected by ln-112, audit with ln-640 -->`91 - Replace `{{PLACEHOLDER}}` with Context Store values92 - Generate C4 diagrams from SRC_STRUCTURE (for architecture.md, if no legacy diagrams)93 - Insert ADR links (for architecture.md Section 8)94 - Mark `[TBD: X]` for missing data9596### Phase 3: Self-Validate97For each created document:981. Check SCOPE tag in first 10 lines992. Check required sections (from questions_core.md)1003. Validate specific format requirements:101 - requirements.md: FR-XXX identifiers, MoSCoW labels102 - architecture.md: 11 sections, C4 diagrams, ADR references103 - tech_stack.md: versions, rationale for each technology1044. Check Maintenance section1055. Auto-fix issues where possible106107### Phase 4: Return Status108Return to coordinator:109```json110{111 "created": ["docs/project/requirements.md", ...],112 "skipped": [],113 "tbd_count": 5,114 "validation": "OK",115 "diagrams_generated": 3116}117```118119## Critical Notes120- **Idempotent:** Never overwrite existing files121- **Heavy auto-discovery:** architecture.md requires deep project analysis122- **C4 diagrams:** Generated from SRC_STRUCTURE in Mermaid format123- **ADR integration:** Section 8 links to docs/reference/adrs/124- **arc42 compliance:** ISO/IEC/IEEE 42010:2022 structure125- **TBD markers:** Use `[TBD: X]` for missing data126127### NO_CODE_EXAMPLES Rule (MANDATORY)128Documents describe **contracts and decisions**, NOT implementations:129- **FORBIDDEN:** Code blocks > 5 lines, function implementations, imports, DI configuration130- **ALLOWED:** Mermaid diagrams, component tables, method signatures (1 line), ADR links131- **INSTEAD OF CODE:** Reference source: "See src/Services/UserService.cs:45"132- **TEMPLATE RULE:** All templates include `<!-- NO_CODE_EXAMPLES: ... -->` tag - FOLLOW IT133134### Stack Adaptation Rule (MANDATORY)135- Links must reference stack-appropriate docs (Microsoft for .NET, MDN for JS)136- Never mix stack references (no Python examples in .NET project)137138### Format Priority (MANDATORY)139Tables > Mermaid/ASCII diagrams > Lists > Text140141## Definition of Done142- [ ] Context Store received and validated143- [ ] 4 core documents created (or skipped if exist)144- [ ] C4 diagrams generated (Context, Container, Component)145- [ ] ADR links populated146- [ ] Patterns auto-detected and added to catalog147- [ ] Self-validation passed (SCOPE, sections, format)148- [ ] **Actuality verified:** all document facts match current code (paths, functions, APIs, configs exist and are accurate)149- [ ] Status returned to coordinator150151## Reference Files152- Templates: `references/templates/requirements_template.md`, `architecture_template.md`, `tech_stack_template.md`153- Patterns template: `shared/templates/patterns_template.md`154- Questions: `references/questions_core.md` (Q23-Q38)155156---157**Version:** 2.2.0158**Last Updated:** 2025-01-12