mit einem Klick
ln-100-documents-pipeline
Top orchestrator for complete doc system. Delegates to ln-110 coordinator (project docs) + ln-120-150 workers. Phase 3: global cleanup. Idempotent.
Menü
Top orchestrator for complete doc system. Delegates to ln-110 coordinator (project docs) + ln-120-150 workers. Phase 3: global cleanup. Idempotent.
Research best practices via MCP Ref/Context7/WebSearch and create documentation (guide/manual/ADR/research). Single research, multiple output types.
Commit and push ALL changes (staged + unstaged + untracked) to the remote repository
Sync skills (symlinks) and MCP settings from Claude to Gemini CLI and Codex CLI
Probes CLI agents (Codex, Gemini) and writes docs/environment_state.json — agent availability config for Phase 0
Meta-orchestrator: reads kanban board, lets user pick ONE Story, drives it through pipeline 300->310->400->500 via TeamCreate. Creates worktree isolation; coordinates workers + reports.
Coordinates project documentation creation. Gathers context once, detects project type, delegates to specialized workers (ln-111-115).
| name | ln-100-documents-pipeline |
| description | Top orchestrator for complete doc system. Delegates to ln-110 coordinator (project docs) + ln-120-150 workers. Phase 3: global cleanup. Idempotent. |
| license | MIT |
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.
This skill orchestrates the creation of a complete documentation system by invoking L2 coordinator + 4 L2 workers. The coordinator (ln-110) delegates to 5 L3 workers for project docs; other L2 workers handle reference/tasks/test/presentation domains. Each component validates its own output.
Top-level orchestrator that creates a complete project documentation system in one invocation. Chains ln-110 coordinator + ln-120/130/140/150 workers sequentially, then runs global cleanup (deduplication, orphan reporting, cross-link validation).
ln-100-documents-pipeline (L1 Top Orchestrator - this skill)
├── ln-110-project-docs-coordinator (L2 Coordinator)
│ ├── ln-111-root-docs-creator (L3 Worker) → 4 docs
│ ├── ln-112-project-core-creator (L3 Worker) → 3 docs
│ ├── ln-113-backend-docs-creator (L3 Worker) → 2 conditional
│ ├── ln-114-frontend-docs-creator (L3 Worker) → 1 conditional
│ └── ln-115-devops-docs-creator (L3 Worker) → 1 conditional
├── ln-120-reference-docs-creator (L2 Worker)
├── ln-130-tasks-docs-creator (L2 Worker)
├── ln-140-test-docs-creator (L2 Worker - optional)
├── ln-150-presentation-creator (L2 Worker)
└── ln-610-docs-auditor (L2 Coordinator - optional, delegates to ln-611/612/613/614)
This skill should be used when:
Alternative: If you prefer granular control, invoke workers manually:
Note: Each worker now validates its own output in Phase 2/3. Orchestrator handles global operations only.
The skill follows a 6-phase orchestration workflow: Legacy Migration (optional) → User confirmation → Invoke coordinator + 4 workers sequentially → Global cleanup → Documentation Audit (optional) → Summary.
Objective: Detect existing documentation in non-standard formats, extract valuable content, and prepare for migration.
Trigger: Always runs at pipeline start. User can skip if no legacy docs or wants to keep existing structure.
Process:
0.1 Legacy Detection:
references/legacy_detection_patterns.md:
ARCHITECTURE.md, REQUIREMENTS.md, STACK.md, API.md, DATABASE.md, DEPLOYMENT.mddocumentation/, doc/, wiki/, docs/ with wrong structure## Architecture, ## Tech Stack, ## Requirements, etc.## Development, ## Code Style, ## Coding Standardslegacy_manifest: list of { path, detected_type, target_doc, confidence }0.2 Content Extraction:
references/legacy_detection_patterns.md):
architecture_extractor → { layers[], components[], diagrams[] }requirements_extractor → { functional[], non_functional[] }tech_stack_extractor → { frontend, backend, database, versions }principles_extractor → { principles[], anti_patterns[] }api_spec_extractor → { endpoints[], authentication }database_schema_extractor → { tables[], relationships[] }runbook_extractor → { prerequisites[], install_steps[], env_vars[] }infrastructure_extractor → { servers[], domains[], ports[], services[], artifacts{}, cicd{} }extracted_content object0.3 User Confirmation:
📂 Legacy Documentation Detected:
| File | Type | Confidence | Target |
|------|------|------------|--------|
| README.md (## Architecture) | architecture | HIGH | docs/project/architecture.md |
| docs/ARCHITECTURE.md | architecture | HIGH | docs/project/architecture.md |
| CONTRIBUTING.md (## Development) | principles | MEDIUM | docs/principles.md |
🔄 Migration Options:
1. MIGRATE (recommended): Extract → Inject → Archive → Delete
2. ARCHIVE ONLY: Backup without extraction
3. SKIP: Leave legacy as-is (may cause duplication)
Choose option (1/2/3): _
0.4 Backup and Archive:
.archive/legacy-{timestamp}/ directory.archive/
└── legacy-YYYY-MM-DD-HHMMSS/
├── README_migration.md # Rollback instructions
├── original/ # Exact copies of legacy files
│ ├── README.md
│ ├── ARCHITECTURE.md
│ └── documentation/
└── extracted/ # Extracted content (for reference)
├── architecture_content.md
└── principles_content.md
original/extracted/README_migration.md with rollback instructions0.5 Content Injection:
migration_context from extracted content:
{
"LEGACY_CONTENT": {
"legacy_architecture": { "sections": [...], "diagrams": [...] },
"legacy_requirements": { "functional": [...] },
"legacy_principles": { "principles": [...] },
"legacy_tech_stack": { "frontend": "...", "backend": "..." },
"legacy_api": { "endpoints": [...] },
"legacy_database": { "tables": [...] },
"legacy_runbook": { "install_steps": [...] },
"legacy_infrastructure": { "servers": [...], "domains": [...], "ports": {} }
}
}
contextStore.LEGACY_CONTENT = migration_context0.6 Cleanup (Legacy Files):
## Architecture → See [Architecture](docs/project/architecture.md)## Tech Stack → See [Tech Stack](docs/project/tech_stack.md)Output: migration_summary { migrated_count, archived_count, skipped_count, legacy_content }
Objective: Check existing files, explain workflow, and get user approval.
Process:
Migration Summary (if Phase 0 ran):
Pre-flight Check (scan existing documentation):
CLAUDE.md, docs/README.md, docs/documentation_standards.md, docs/principles.mddocs/reference/README.md, docs/reference/adrs/, docs/reference/guides/, docs/reference/manuals/, docs/reference/research/docs/tasks/README.md, docs/tasks/kanban_board.mddocs/project/requirements.md, architecture.md, tech_stack.md, api_spec.md, database_schema.md, design_guidelines.md, infrastructure.md, runbook.mddocs/presentation/README.md, presentation_final.html, assets/ directorydocs/reference/guides/testing-strategy.md, tests/README.md📊 Documentation Status:
✓ Found: X existing files
✗ Missing: Y files
⚠️ Pipeline will create ONLY missing files.
✅ Existing files will be preserved (no overwrites).
Show user what will be created:
Ask: "Proceed with creating missing files? (yes/no)"
Ask: "Include test documentation (tests/README.md)? (yes/no)"
Output: File scan summary + user approval + test docs preference
Objective: Create complete documentation system by invoking L2 coordinator + 4 L2 workers in order.
Process (AUTOMATIC invocations with Skill tool):
2.1 Create Root + Project Documentation:
Skill(skill: "ln-110-project-docs-coordinator") → AUTOMATICLEGACY_CONTENT from Phase 0 (if migration was performed)CLAUDE.md + docs/README.md + docs/documentation_standards.md + docs/principles.md) + Project docs (docs/project/requirements.md, architecture.md, tech_stack.md, infrastructure.md + conditional: api_spec.md, database_schema.md, design_guidelines.md, runbook.md)context_store from ln-110 result (contains TECH_STACK for ln-120)2.2 Create Reference Structure + Smart Documents:
Skill(skill: "ln-120-reference-docs-creator") → AUTOMATICcontext_store from ln-110 (TECH_STACK enables smart document creation)docs/reference/README.md + adrs/, guides/, manuals/, research/ directories + justified ADRs/Guides/Manuals2.3 Create Task Management Docs:
Skill(skill: "ln-130-tasks-docs-creator") → AUTOMATICdocs/tasks/README.md + optionally kanban_board.md (if user provides Linear config)2.4 Create Test Documentation (Optional):
Skill(skill: "ln-140-test-docs-creator") → AUTOMATICtests/README.md (test documentation with Story-Level Test Task Pattern)2.5 Create HTML Presentation:
Skill(skill: "ln-150-presentation-creator") → AUTOMATICdocs/presentation/README.md + presentation_final.html + assets/2.6 Extract Skills from Documentation (Optional):
Skill(skill: "ln-160-docs-skill-extractor") → AUTOMATIC.claude/commands/*.md files extracted from procedural documentation sectionsOutput: Complete documentation system with coordinator + 4 workers completed and validated
TodoWrite format (mandatory): Add ALL invocations to todos before starting:
- Invoke ln-110-project-docs-coordinator (pending)
- Invoke ln-120-reference-docs-creator (pending)
- Invoke ln-130-tasks-docs-creator (pending)
- Invoke ln-140-test-docs-creator (pending)
- Invoke ln-150-presentation-creator (pending)
- Run Global Cleanup (Phase 3) (pending)
- Run Documentation Audit (Phase 4 - optional) (pending)
Mark each as in_progress when starting, completed when worker returns success.
Objective: Remove duplicates, orphaned files, consolidate knowledge across ALL documentation.
Trigger: Only after ALL workers complete Phase 2/3 validation.
Process:
4.0 Documentation Quality Check
Quick quality check per created document:
| # | Check | PASS | FAIL |
|---|---|---|---|
| 1 | Completeness | All template sections filled (no TODOs remaining) | Empty sections or placeholder text |
| 2 | Accuracy | Tech stack matches actual project files | References non-existent frameworks |
| 3 | Actuality | Dates and versions match current state | Outdated references |
Gate: All FAIL items → fix inline before continuing cleanup. Report quality summary in Phase 4.
4.1 Scan for duplicate content
Read all .md files in docs/
pattern: "docs/**/*.md"Identify duplicate sections:
80% content similarity (simple word overlap check)
Determine canonical version:
Remove duplicates:
See [Development Principles](../principles.md#development-principles) for details.
Log results:
4.2 Report unexpected files (advisory)
List all .md files in docs/
pattern: "docs/**/*.md"Check against expected structure (files created by workers + user-created reference docs)
Report findings (DO NOT move/delete/archive):
4.3 Consolidate knowledge
Identify scattered information:
For each scattered concept:
Update non-SSoT files:
See [Linear Configuration](../tasks/kanban_board.md#linear-configuration) for team ID and settings.
Log results:
4.4 Cross-link validation
Scan all .md files for internal links:
[text](path)Verify link targets exist:
Fix broken links:
Add missing critical links:
Log results:
4.5 Final report
✅ Global Cleanup Complete:
Structure:
- Removed {N} duplicate sections (canonical: principles.md)
- Found {N} unexpected files (listed for user review)
- Consolidated {N} scattered concepts
Links:
- Fixed {N} broken links
- Added {N} missing critical links:
- list of added links
Output: All documentation cleaned up, duplicates removed, unexpected files reported, knowledge consolidated, cross-links validated
Objective: Audit documentation and code comments quality.
Trigger: Only if user requests audit OR pipeline invoked with audit flags.
Process:
5.1 Ask User:
Documentation Audit Options:
1. AUDIT DOCS: Run ln-610-docs-auditor (structure + semantic + comments)
2. SKIP: Continue to summary
Choose option (1/2): _
5.2 Run Selected Auditor:
Skill(skill: "ln-610-docs-auditor") → AUTOMATIC5.3 Show Audit Summary:
📊 Audit Results:
- Documentation Quality: X/10 overall
- Hierarchy & Links: X/10
- Single Source of Truth: X/10
- ...
- Code Comments Quality: X/10 overall
- WHY not WHAT: X/10
- Density (15-20%): X/10
- ...
See full reports above for detailed findings.
Output: Audit reports with compliance scores and findings
Objective: Provide complete overview of created system.
Process:
List all created files with sizes:
CLAUDE.md (project entry point)docs/README.md (root documentation hub)docs/documentation_standards.md (60 universal requirements)docs/principles.md (11 development principles)docs/project/requirements.md, architecture.md, tech_stack.md + conditional documents (3-7 total)docs/reference/README.md (reference hub with empty adrs/, guides/, manuals/, research/ directories)docs/tasks/README.md + optionally kanban_board.mddocs/presentation/README.md + presentation_final.htmltests/README.md (if created)Show documentation system features:
Recommend next steps:
Output: Summary message with file list and recommendations
project_root/
├── CLAUDE.md # ← Project entry point (link to docs/)
├── docs/
│ ├── README.md # ← Root documentation hub (general standards)
│ ├── documentation_standards.md # ← 60 universal requirements (Claude Code + industry standards)
│ ├── principles.md # ← 11 development principles (Standards First, YAGNI, KISS, DRY, etc.)
│ ├── project/
│ │ ├── requirements.md # ← Functional Requirements (NO NFR per project policy)
│ │ ├── architecture.md # ← arc42-based architecture with C4 Model
│ │ ├── tech_stack.md # ← Technology versions, Docker config
│ │ ├── api_spec.md # ← API endpoints (conditional)
│ │ ├── database_schema.md # ← Database schema (conditional)
│ │ ├── design_guidelines.md # ← UI/UX system (conditional)
│ │ ├── infrastructure.md # ← Infrastructure inventory (always)
│ │ └── runbook.md # ← Operations guide (conditional)
│ ├── reference/
│ │ ├── README.md # ← Reference documentation hub (registries)
│ │ ├── adrs/ # ← Empty, ready for ADRs
│ │ ├── guides/ # ← Empty, ready for guides
│ │ ├── manuals/ # ← Empty, ready for manuals
│ │ └── research/ # ← Empty, ready for research
│ ├── tasks/
│ │ ├── README.md # ← Task management system rules
│ │ └── kanban_board.md # ← Linear integration (optional)
│ └── presentation/
│ ├── README.md # ← Navigation hub for presentation
│ ├── presentation_final.html # ← Final standalone HTML (~130-180 KB)
│ └── assets/ # ← Modular HTML structure
└── tests/
└── README.md # ← Test documentation (optional)
Recommended workflow for new projects:
Trade-offs:
When to use manual approach instead:
All documents created by this pipeline MUST follow these rules:
| Rule | Description | Enforcement |
|---|---|---|
| NO_CODE Rule | Documents describe contracts, not implementations | No code blocks >5 lines; use tables/ASCII/links |
| Stack Adaptation | Links must match project TECH_STACK | .NET → Microsoft docs, JS → MDN |
| Format Priority | Tables/ASCII > Lists (enumerations only) > Text | Tables for params, config, alternatives |
These standards are enforced by L3 workers (ln-111-115) and audited by ln-610-docs-auditor.
If any invoked skill fails:
Skill Invocation:
File Verification:
Global Cleanup:
Standards Compliance:
MANDATORY READ: Load shared/references/meta_analysis_protocol.md
Skill type: planning-coordinator. Run after all phases complete. Output to chat using the planning-coordinator format.
references/legacy_detection_patterns.mdln-110-project-docs-coordinator, ln-120-reference-docs-creator, ln-130-tasks-docs-creator, ln-140-test-docs-creator, ln-150-presentation-creatorln-610-docs-auditor (coordinates ln-611/612/613/614)Before completing work, verify ALL checkpoints:
✅ Legacy Migration (Phase 0 - if applicable):
.archive/legacy-{timestamp}/original/.archive/legacy-{timestamp}/extracted/✅ User Confirmation (Phase 1):
✅ Coordinator + Workers Invoked Sequentially (Phase 2):
CLAUDE.md + docs/README.md + docs/documentation_standards.md + docs/principles.md) + Project docs (docs/project/requirements.md, architecture.md, tech_stack.md + conditional 3-7 files)docs/reference/README.md + directories (adrs/, guides/, manuals/, research/) + justified ADRs/Guides/Manuals based on TECH_STACKdocs/tasks/README.md + optionally kanban_board.mdtests/README.mddocs/presentation/README.md + presentation_final.html + assets/✅ File Verification Complete:
✅ Global Cleanup Complete (Phase 3):
✅ Documentation Audit (Phase 4 - if selected):
✅ Summary Displayed (Phase 5):
✅ Error Handling (if applicable):
Output: Complete documentation system (CLAUDE.md + docs/ with README.md, documentation_standards.md, principles.md + presentation/ + optionally tests/) with global cleanup (no duplicates, orphaned files reported, consolidated knowledge, validated cross-links)
Version: 8.1.0 Last Updated: 2025-01-12