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/skills/{path}.
Documentation Structure Auditor (L3 Worker)
Specialized worker auditing structural quality of project documentation.
Purpose & Scope
- Worker in ln-610 coordinator pipeline - invoked by ln-610-docs-auditor
- Audit documentation for structural quality across 7 categories
- Scan all
.md files in project, build hierarchy from CLAUDE.md
- Return structured findings to coordinator with severity, location, recommendations
- Calculate compliance score (X/10) for Documentation Structure
Inputs (from Coordinator)
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Receives contextStore with: tech_stack, project_root, output_dir.
Workflow
- Parse Context: Extract tech stack, project root, output_dir from contextStore
- Scan Docs: Find all
.md files in project (CLAUDE.md, README.md, docs/**)
- Build Tree: Construct hierarchy from CLAUDE.md outward links
- Audit Categories 1-7: Run structural checks (see Audit Categories below)
- Collect Findings: Record each violation with severity, location (file:line), effort estimate (S/M/L), recommendation
- Calculate Score: Count violations by severity, calculate compliance score (X/10)
- Write Report: Build full markdown report per
shared/templates/audit_worker_report_template.md, write to {output_dir}/611-structure.md in single Write call
- Return Summary: Return minimal summary to coordinator (see Output Format)
Audit Categories
| # |
Category |
What to Check |
| 1 |
Hierarchy & Links |
CLAUDE.md is root; all docs reachable via links; no orphaned files; no broken links |
| 2 |
Single Source of Truth |
No content duplication; duplicates replaced with links to source; clear ownership |
| 3 |
Proactive Compression |
Eliminate verbose/redundant content; prose to tables; remove meaningless info; compress even under-limit files; see size_limits.md |
| 4 |
Requirements Compliance |
Correct sections; within size limits; no code blocks (tables/ASCII diagrams/text only); stack-appropriate doc links |
| 5 |
Freshness Indicators |
Detect staleness signals: dates >6 months in content, deprecated API/tool references, TODO/FIXME markers, placeholder text left in place; deep fact-checking handled by dedicated worker |
| 6 |
Legacy Cleanup |
No history sections; no "was changed" notes; no deprecated info; current state only |
| 7 |
Stack Adaptation |
Links/refs match project stack; no Python examples in .NET project; official docs for correct platform |
Severity Mapping
| Issue Type |
Severity |
| Staleness indicators (old dates, deprecated refs, TODO markers) |
MEDIUM |
| Broken links, orphaned docs |
HIGH |
| Content duplication |
MEDIUM |
| Missing compression opportunity |
LOW |
| Legacy/history content |
MEDIUM |
| Wrong stack references |
HIGH |
Scoring Algorithm
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/references/audit_scoring.md.
Output Format
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/templates/audit_worker_report_template.md.
Write report to {output_dir}/611-structure.md with category: "Documentation Structure" and checks: hierarchy_links, ssot, compression, requirements_compliance, freshness_indicators, legacy_cleanup, stack_adaptation.
Return summary to coordinator:
Report written: docs/project/.audit/ln-610/{YYYY-MM-DD}/611-structure.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
Critical Rules
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
- Do not auto-fix: Report violations only; coordinator aggregates for user
- Tech stack aware: Use contextStore
tech_stack to apply stack-specific checks (e.g., .NET vs Node.js doc standards)
- No deep fact-checking: Detect staleness signals only (dates, deprecated refs, TODO markers)
- Compress always: Size limits are upper bounds, not targets. A 100-line file instead of 300 is a win
- No code in docs: Documents describe algorithms in tables or ASCII diagrams. Code belongs in codebase
- Code is truth: When docs contradict code, report docs as needing update (not code)
- Delete, don't archive: Legacy content should be removed, not moved to "archive"
- Location precision: Always include
file:line for programmatic navigation
Definition of Done
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Reference Files
- Size limits and targets: references/size_limits.md
- Detailed checklist: references/audit_checklist.md
Version: 1.0.0
Last Updated: 2026-03-01
1---2name: ln-611-docs-structure-auditor-43description: Checks hierarchy, links, SSOT, compression, requirements compliance, freshness, legacy cleanup. Use when auditing documentation structure.4license: MIT5---6
7> **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/skills/{path}`.
8
9# Documentation Structure Auditor (L3 Worker)
10
11Specialized worker auditing structural quality of project documentation.
12
13## Purpose & Scope
14
15- **Worker in ln-610 coordinator pipeline** - invoked by ln-610-docs-auditor
16- Audit documentation for **structural quality** across 7 categories
17- Scan all `.md` files in project, build hierarchy from CLAUDE.md
18- Return structured findings to coordinator with severity, location, recommendations
19- Calculate compliance score (X/10) for Documentation Structure
20
21## Inputs (from Coordinator)
22
23**MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md`.
24
25Receives `contextStore` with: `tech_stack`, `project_root`, `output_dir`.
26
27## Workflow
28
291) **Parse Context:** Extract tech stack, project root, output_dir from contextStore
302) **Scan Docs:** Find all `.md` files in project (CLAUDE.md, README.md, docs/**)
313) **Build Tree:** Construct hierarchy from CLAUDE.md outward links
324) **Audit Categories 1-7:** Run structural checks (see Audit Categories below)
335) **Collect Findings:** Record each violation with severity, location (file:line), effort estimate (S/M/L), recommendation
346) **Calculate Score:** Count violations by severity, calculate compliance score (X/10)
357) **Write Report:** Build full markdown report per `shared/templates/audit_worker_report_template.md`, write to `{output_dir}/611-structure.md` in single Write call
368) **Return Summary:** Return minimal summary to coordinator (see Output Format)
37
38## Audit Categories
39
40| # | Category | What to Check |
41|---|----------|---------------|
42| 1 | **Hierarchy & Links** | CLAUDE.md is root; all docs reachable via links; no orphaned files; no broken links |
43| 2 | **Single Source of Truth** | No content duplication; duplicates replaced with links to source; clear ownership |
44| 3 | **Proactive Compression** | Eliminate verbose/redundant content; prose to tables; remove meaningless info; compress even under-limit files; see [size_limits.md](references/size_limits.md) |
45| 4 | **Requirements Compliance** | Correct sections; within size limits; **no code blocks** (tables/ASCII diagrams/text only); stack-appropriate doc links |
46| 5 | **Freshness Indicators** | Detect staleness signals: dates >6 months in content, deprecated API/tool references, TODO/FIXME markers, placeholder text left in place; deep fact-checking handled by dedicated worker |
47| 6 | **Legacy Cleanup** | No history sections; no "was changed" notes; no deprecated info; current state only |
48| 7 | **Stack Adaptation** | Links/refs match project stack; no Python examples in .NET project; official docs for correct platform |
49
50### Severity Mapping
51
52| Issue Type | Severity |
53|------------|----------|
54| Staleness indicators (old dates, deprecated refs, TODO markers) | MEDIUM |
55| Broken links, orphaned docs | HIGH |
56| Content duplication | MEDIUM |
57| Missing compression opportunity | LOW |
58| Legacy/history content | MEDIUM |
59| Wrong stack references | HIGH |
60
61## Scoring Algorithm
62
63**MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md` and `shared/references/audit_scoring.md`.
64
65## Output Format
66
67**MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md` and `shared/templates/audit_worker_report_template.md`.
68
69Write report to `{output_dir}/611-structure.md` with `category: "Documentation Structure"` and checks: hierarchy_links, ssot, compression, requirements_compliance, freshness_indicators, legacy_cleanup, stack_adaptation.
70
71Return summary to coordinator:
72```
73Report written: docs/project/.audit/ln-610/{YYYY-MM-DD}/611-structure.md
74Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
75```
76
77## Critical Rules
78
79**MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md`.
80
81- **Do not auto-fix:** Report violations only; coordinator aggregates for user
82- **Tech stack aware:** Use contextStore `tech_stack` to apply stack-specific checks (e.g., .NET vs Node.js doc standards)
83- **No deep fact-checking:** Detect staleness signals only (dates, deprecated refs, TODO markers)
84- **Compress always:** Size limits are upper bounds, not targets. A 100-line file instead of 300 is a win
85- **No code in docs:** Documents describe algorithms in tables or ASCII diagrams. Code belongs in codebase
86- **Code is truth:** When docs contradict code, report docs as needing update (not code)
87- **Delete, don't archive:** Legacy content should be removed, not moved to "archive"
88- **Location precision:** Always include `file:line` for programmatic navigation
89
90## Definition of Done
91
92**MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md`.
93
94- [ ] contextStore parsed successfully (including output_dir)
95- [ ] All 7 structural categories audited
96- [ ] Findings collected with severity, location, effort, recommendation
97- [ ] Score calculated using penalty algorithm
98- [ ] Report written to `{output_dir}/611-structure.md` (atomic single Write call)
99- [ ] Summary returned to coordinator
100
101## Reference Files
102
103- Size limits and targets: [references/size_limits.md](references/size_limits.md)
104- Detailed checklist: [references/audit_checklist.md](references/audit_checklist.md)
105
106---
107**Version:** 1.0.0
108**Last Updated:** 2026-03-01
109
110