From principled-docs
Audit documentation health across all modules in the monorepo. Discovers modules, validates each, and produces an aggregate compliance report. Use --include-root to also validate the repo-level docs structure.
How this skill is triggered — by the user, by Claude, or both
Slash command
/principled-docs:docs-auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit documentation health across all modules in the monorepo and produce an aggregate compliance report.
Audit documentation health across all modules in the monorepo and produce an aggregate compliance report.
/docs-audit [--modules-dir <path>] [--format summary|detailed] [--include-root]
| Argument | Required | Description |
|---|---|---|
--modules-dir <path> | No | Root directory containing modules (default: packages or value from config) |
--format | No | Output format: summary (default) or detailed |
--include-root | No | Also validate the repo-level docs/ structure |
Parse arguments. Extract options from $ARGUMENTS. Use defaults from project configuration where not specified.
Discover modules. Find all subdirectories under the modules directory that appear to be modules (contain a docs/ directory, README.md, or CLAUDE.md).
ignoredModules glob patterns from project config.Determine module types. For each discovered module:
CLAUDE.md and look for the ## Module Type sectiondefaultModuleType from project configValidate each module. For each module with a known type, run the structural validation:
bash <plugin-root>/skills/scaffold/scripts/validate-structure.sh \
--module-path <module-path> --type <type>
Capture the results (present, missing, placeholder counts).
Validate root (if --include-root). Run:
bash <plugin-root>/skills/scaffold/scripts/validate-structure.sh --root
Aggregate results. Compute:
Format output. Based on --format:
/validate) plus summarySee reference/report-format.md for the complete output specification.
The audit skill respects project-level configuration from .claude/settings.json:
| Setting | Used For |
|---|---|
modulesDirectory | Default modules directory if --modules-dir not specified |
defaultModuleType | Fallback module type if CLAUDE.md doesn't declare one |
ignoredModules | Glob patterns for modules to skip |
strictMode | If true, placeholder-only files are treated as failures |
reference/report-format.md — Complete specification of the audit output formatnpx claudepluginhub alexnodeland/principled --plugin principled-docsAudits documentation against codebase reality across 6 phases (discovery, comparison, examples, links, config, structure) and produces an audit report for remediation.
Audits codebase documentation for accuracy, completeness, and freshness by comparing against code structure. Auto-fixes small discrepancies in fix mode, reports structural changes. Works with any language/framework.
Audits documentation against source code using git-based staleness detection. Run with no args for smart check or specify a path. Supports full audit, auto-fix, and check-only modes.