.claude/skills/ln-100-documents-pipeline/SKILL.md
Top orchestrator for complete doc system. Delegates to ln-110 coordinator (project docs via 5 L3 workers) + ln-120-150 workers. Phase 4: global cleanup. Idempotent.
npx skillsauth add cbbkrd-tech/jl-finishes ln-100-documents-pipelineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 archival, 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-600-docs-auditor (L2 Worker - optional)
└── ln-610-code-comments-auditor (L2 Worker - optional)
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 7-phase orchestration workflow: Legacy Migration (optional) → User confirmation → Invoke coordinator + 4 workers sequentially → Global cleanup → Documentation Audit (optional) → Summary. Phase 3 (validation) is intentionally skipped - each component validates its own output.
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:
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[] }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": [...] }
}
}
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, 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 + 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/Output: 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 4) (pending)
- Run Documentation Audit (Phase 5 - 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 5.
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 Scan for orphaned files
List all .md files in docs/
pattern: "docs/**/*.md"Check against expected structure:
Move orphaned files to archive:
.archive/YYYY-MM-DD/ directory (current date)mv {file_path} .archive/YYYY-MM-DD/Log results:
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)
- Archived {N} orphaned files to .archive/YYYY-MM-DD/
- list of archived files
- 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, orphaned files archived, 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-600-docs-auditor (6 categories)
2. AUDIT COMMENTS: Run ln-610-code-comments-auditor (6 categories)
3. BOTH: Run both auditors
4. SKIP: Continue to summary
Choose option (1/2/3/4): _
5.2 Run Selected Auditors:
Skill(skill: "ln-600-docs-auditor") → AUTOMATICSkill(skill: "ln-610-code-comments-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)
│ │ └── 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:
Benefits:
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-600-docs-auditor.
If any invoked skill fails:
Skill Invocation:
File Verification:
Global Cleanup:
Standards Compliance:
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-600-docs-auditor, ln-610-code-comments-auditorBefore 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 4):
.archive/YYYY-MM-DD/✅ Documentation Audit (Phase 5 - if selected):
✅ Summary Displayed (Phase 6):
✅ 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, no orphaned files, consolidated knowledge, validated cross-links)
Version: 8.1.0 Last Updated: 2025-01-12
testing
When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting. For SEO-specific audits, see seo-audit.
development
When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' or 'competitive landing pages.' Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. Emphasizes deep research, modular content architecture, and varied section types beyond feature tables.
development
Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Covers subject lines, opening lines, body copy, CTAs, personalization, and multi-touch follow-up sequences.
development
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' or 'involuntary churn.' This skill covers voluntary churn (cancel flows, save offers, exit surveys) and involuntary churn (dunning, payment recovery). For post-cancel win-back email sequences, see email-sequence. For in-app upgrade paywalls, see paywall-upgrade-cro.