skills-catalog/ln-612-semantic-content-auditor/SKILL.md
Checks document semantic content against SCOPE and project goals, coverage gaps, off-topic content, SSOT. Use when auditing documentation relevance.
npx skillsauth add levnikolaevich/claude-code-skills ln-612-semantic-content-auditorInstall 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. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Type: L3 Worker
Specialized worker auditing semantic fitness of project documentation.
Called ONLY for project documents (not reference/tasks):
| Document | Verification Focus |
|----------|-------------------|
| AGENTS.md / CLAUDE.md | Entry instructions stay scoped, navigable, and free of 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/infrastructure.md | Infrastructure scope covers all deployment targets |
| 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, shared/references/docs_quality_contract.md, and shared/references/markdown_read_protocol.md.
MANDATORY READ: Load shared/references/mcp_tool_preferences.md and shared/references/mcp_integration_patterns.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 |
hex-line is optional for this doc-only worker. Use it to outline large markdown files when available; otherwise continue with built-in Read/Grep/Glob/Bash and do not block on MCP availability.
SCOPEDOC_KINDDOC_ROLEREAD_WHENSKIP_WHENPRIMARY_SOURCESDOC_KIND from the shared contract when missingJudge the document according to its kind:
| DOC_KIND | Main semantic question |
|----------|------------------------|
| index | Does it route efficiently and avoid deep factual overload? |
| reference | Is it precise, complete enough, and easy to lookup? |
| how-to | Is the procedure actionable and sequenced correctly? |
| explanation | Does it build the right mental model and rationale? |
| record | Does it preserve the decision trace and consequences? |
Analyze the document against stated scope and kind:
| 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 |
Agent instruction file checks (applies when the audited file is AGENTS.md or CLAUDE.md):
| Check | Finding Type | Severity | Recommendation |
|-------|--------------|----------|----------------|
| Style / formatting rules (indentation, quote style, trailing whitespace, naming conventions) | NOT_A_LINTER | WARN | Move to Biome, Prettier, Ruff, EditorConfig, or a Claude Code Stop hook. Instruction files are loaded into every session and cost tokens against the ~100-imperative budget; deterministic tools do this for free. |
| Conditional / non-universal rules at the root (when working on src/api/..., if modifying the billing service, for the Z service) | NON_UNIVERSAL_RULE | WARN | Move to .claude/rules/*.md with a paths: frontmatter filter (Anthropic built-in path scoping). Non-universal rules bias Claude Code toward ignoring the entire file via the <system-reminder> wrapper. |
| Self-Improvement Loop rule pointing at a manual tasks/lessons.md | OBSOLETE_PATTERN | WARN | Delete. Claude Code's built-in auto memory at ~/.claude/projects/<project>/memory/ already does this; a parallel hand-maintained convention wastes context. |
All three WARN only — they require human judgment (intentional style rule? conditional scope that's actually project-wide?). Cite shared/references/agent_instructions_writing_guide.md in every finding.
Read strategy:
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 JSON summary per shared/references/audit_summary_contract.md. In managed mode the caller passes both runId and summaryArtifactPath; in standalone mode the worker generates its own run-scoped artifact path per shared contract.
Write report to {output_dir}/ln-612--{doc-slug}.md where doc-slug is derived from document filename (e.g., architecture, tech_stack, agents_md).
With category: "Semantic Content" and checks: scope_alignment, not_a_linter, non_universal_rule, obsolete_pattern (the last three fire only on AGENTS.md / CLAUDE.md targets).
Return summary per shared/references/audit_summary_contract.md.
When summaryArtifactPath is absent, write the standalone runtime summary under .hex-skills/runtime-artifacts/runs/{run_id}/evaluation-worker/{worker}--{identifier}.json and optionally echo the same summary in structured output.
Report written: .hex-skills/runtime-artifacts/runs/{run_id}/audit-report/ln-612--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.
docs_quality_contract.md; do not invent alternate scope rules per fileMANDATORY READ: Load shared/references/audit_worker_core_contract.md.
{output_dir}/ln-612--{doc-slug}.md (atomic single Write call)shared/references/audit_output_schema.mdVersion: 2.0.0 Last Updated: 2026-03-01
testing
Audits architecture config boundaries: typed settings, scattered env reads, config leakage, and layer ownership. Use for config architecture.
tools
Finds architecture-level modernization opportunities: obsolete custom mechanisms, overbuilt extension points, and simplifiable architecture. Use when auditing architecture evolution.
development
Builds dependency topology, detects cycles, validates import rules, and calculates coupling metrics. Use when auditing architecture topology.
testing
Checks layer, resource ownership, and orchestration boundaries. Use when auditing architecture boundary enforcement.