Audits document semantic content against stated SCOPE and project goals. Checks coverage, off-topic content, SSOT. File-based report with scope_alignment score.
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.
Specialized worker auditing semantic accuracy of project documentation.
Called ONLY for project documents (not reference/tasks):
| Document | Verification Focus |
|---|---|
CLAUDE.md | Instructions serve stated purpose, no off-topic content |
docs/README.md | Navigation scope correct, descriptions relevant |
docs/documentation_standards.md | Standards applicable to this project type |
docs/principles.md | Principles relevant to project architecture |
docs/project/requirements.md | Requirements scope complete, no stale items |
docs/project/architecture.md | Architecture scope covers all layers |
docs/project/tech_stack.md | Stack scope matches project reality |
docs/project/api_spec.md | API scope covers all endpoint groups |
docs/project/database_schema.md | Schema scope covers all entities |
docs/project/design_guidelines.md | Design scope covers active components |
docs/project/runbook.md | Runbook scope covers setup + operations |
Excluded: docs/tasks/, docs/reference/, docs/presentation/, tests/
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Receives from coordinator per invocation:
| Field | Description |
|---|---|
doc_path | Path to document to audit (e.g., docs/project/architecture.md) |
output_dir | Directory for report output (from contextStore) |
project_root | Project root path |
tech_stack | Detected technology stack |
<!-- SCOPE: ... --> commentAnalyze document sections against stated scope:
| Check | Finding Type |
|---|---|
| Section not serving scope | OFF_TOPIC |
| Scope aspect not covered | MISSING_COVERAGE |
| Excessive detail beyond scope | SCOPE_CREEP |
| Content duplicated elsewhere | SSOT_VIOLATION |
Scoring:
Calculate final score based on scope alignment:
overall_score = weighted_average(coverage, relevance, focus)
Coverage: how completely the scope is addressed. Relevance: how much content serves the scope. Focus: absence of off-topic content.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/references/audit_scoring.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/templates/audit_worker_report_template.md.
Write report to {output_dir}/612-semantic-{doc-slug}.md where doc-slug is derived from document filename (e.g., architecture, tech_stack, claude_md).
With category: "Semantic Content" and checks: scope_alignment.
Return summary to coordinator:
Report written: docs/project/.audit/ln-610/{YYYY-MM-DD}/612-semantic-architecture.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
{output_dir}/612-semantic-{doc-slug}.md (atomic single Write call)shared/references/audit_output_schema.mdVersion: 2.0.0 Last Updated: 2026-03-01