documentation-auditor

Audit .carta/ documentation claims against the codebase and emit discrepancy reports.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/saxonthune/carta --skill documentation-auditor-saxonthune
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: documentation-auditor
Source: https://github.com/saxonthune/carta/tree/main/.claude/skills/documentation-auditor
Command: npx skills add https://github.com/saxonthune/carta --skill documentation-auditor-saxonthune

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents documentation drift by identifying claims in a .carta/ workspace that no longer match the actual codebase, including stale references, missing exports, incorrect type signatures, and phantom files.

Core Features & Use Cases

  • Reverse-audit docs → code: Traces claims from .carta/ documents back to the repository using targeted verification (existence checks, barrel exports, type/field greps, tool inventories, and env-var reads).
  • Structured, confidence-based verification: Extracts only structured, verifiable claims and separates high/medium-confidence checks from lower-confidence human judgment areas.
  • Actionable discrepancy reporting: Produces a severity-grouped audit report (errors, warnings, info) and suggests specific fixes without editing documentation.

Quick Start

Ask the AI to audit the .carta/ documentation against the codebase and return a discrepancy report with errors, warnings, and suggested fixes.

Frequently Asked Questions about documentation-auditor

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

FAQPage Schema
How do I find stale references and documentation drift after a codebase refactor?

Auditing documentation drift involves extracting structured claims from hierarchical workspace docs and verifying them against the actual codebase. This process checks file existence, barrel exports, and type signatures using targeted filesystem globs and greps to identify phantom files and incorrect references.

What is the best way to verify documentation claims against actual code?

The best way to verify documentation claims is through a reverse-audit that traces claims from hierarchical workspaces back to the repository. It uses existence checks, barrel exports, type greps, and env-var reads to produce a confidence-based discrepancy report with suggested fixes.

Can I automatically fix incorrect type signatures and missing exports found during a codebase audit?

No, the audit only suggests specific fixes without editing documentation. It produces a severity-grouped discrepancy report with errors, warnings, and info, leaving the application of fixes to the user for safety.

Does the documentation audit separate high-confidence checks from human judgment areas?

Yes, the audit separates high and medium-confidence checks from lower-confidence human judgment areas. It extracts only structured, verifiable claims to ensure automated verification focuses on factual codebase alignment rather than subjective documentation quality.

What types of workspace sync discrepancies can I detect when auditing docs against code?

You can detect stale references, missing barrel exports, incorrect type signatures, and phantom files. The audit verifies structured claims against the actual codebase to highlight these synchronization failures following refactors or reorganization.

When do I need to run a discrepancy report for my hierarchical documentation workspaces?

You need to run a discrepancy report when docs are stored in hierarchical workspaces and must stay synchronized with code, especially after refactors or reorganization. This prevents documentation drift by identifying claims that no longer match the repository.