nop-doc-audit

Cross-validates documentation against actual code and fixes inaccurate references and descriptions.

693|100|Updated Aug 18, 2022
One-click install
npx skills add https://github.com/entropy-cloud/nop-entropy --skill nop-doc-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nop-doc-audit
Source: https://github.com/entropy-cloud/nop-entropy/tree/main/.opencode/skills/nop-doc-audit
Command: npx skills add https://github.com/entropy-cloud/nop-entropy --skill nop-doc-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Technical documentation often drifts out of sync with the actual codebase, containing references to classes, methods, or configuration items that no longer exist or behave differently. This Skill provides a structured audit workflow that cross-validates docs against real code and fixes inconsistencies.

Core Features & Use Cases

  • Code Reference Verification: Extracts class names, method names, and file paths from documentation and verifies their existence in the actual Java/XML codebase using grep-based searches.
  • Behavior Consistency Checks: Compares documented behavior (parameters, return values, config defaults) against actual code implementations.
  • Cross-Document Validation: Checks that multiple documents describe the same concept consistently and that internal links and index routing are valid.
  • Prioritized Fix Reports: Generates audit reports classifying issues as High (nonexistent descriptions), Medium (behavior mismatches), or Low (missing information).
  • Use Case: When auditing the nop-orm module documentation, the Skill verifies that every entity, field, and configuration item mentioned in docs-for-ai/ actually exists in the *.orm.xml files and Java sources, then produces a fix list.

Quick Start

Ask the AI to audit the documentation for a specific module, for example: run a doc audit on the nop-auth module and verify all code references in its docs.

Frequently Asked Questions about nop-doc-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify that documentation matches actual code?

Extract code references such as class names, method names, and file paths from the documentation, then search the codebase with grep or find to confirm each one exists. This Skill automates that cross-validation workflow and reports mismatches.

How to audit documentation for a specific module like nop-orm?

Set the audit scope to the target module or a specific markdown file, then run the phased workflow: extract references, verify them in code, check behavior consistency, and validate cross-document links. The Skill produces a prioritized fix report.

What types of documentation issues does a doc audit detect?

It detects three severity levels: High for descriptions of classes or features that do not exist in code, Medium for behavior mismatches like wrong return types or config defaults, and Low for missing but important information such as exception handling.

Can this check broken links between markdown documents?

Yes, cross-document validation checks that internal markdown links point to existing files and that INDEX.md routing is correct. The repository also provides helper tools like check-doc-links.mjs for automated link checking.

What are the limitations of automated documentation audits?

Audits should be scoped per module rather than run across the entire docs tree at once, since full-repo audits are slow and hard to review. The process also requires reading actual code, not just documentation, so purely prose content without code references needs manual judgment.