Doc auditor

From fritzprix/libr-agent · View interactive version

Doc auditor is an AI agent skill from the GitHub repository fritzprix/libr-agent. Analyze a codebase to discover documentation gaps in README.md and docs/ directories, then generate or update missing documentation. Use when the user asks to (1) audit README/docs for missing coverage, (2) find undocumented features or modules, (3) fill documentation gaps, (4) update docs to match

How to use this skill

Skill file

Doc Auditor

Audit a codebase against its README.md and docs/ to find missing coverage, then generate or update documentation to close the gaps.

Workflow

Step 1 — Inventory the codebase

Run the analysis script to produce a machine-readable feature inventory:

python3 .agents/skills/doc-auditor/scripts/audit.py . --output .libragent/tmp/doc-audit.json

The script discovers:

Step 2 — Review the gap report

Read .libragent/tmp/doc-audit.json and review discovered gaps:

Step 3 — Prioritize and plan

Use this priority framework:

| Priority | Criteria | Example |

| --------------------- | ------------------------------------------------- | --------------------------------------------------------------------- |

| P0 — Must fix | User-facing feature with zero docs | scheduled-tasks/, history/, browser_sidecar/, session_export/ |

| P1 — Should fix | Documented internally/arch but missing user guide | knowledge/, session_isolation/ |

| P2 — Nice to have | System/spec modules needing architecture docs | db_schema_validator, execution_mode |

| P3 — Low impact | Internal helpers, test code, generated files | utils/, performance/, mime-utils |

Step 4 — Propose plan and obtain user approval

[!IMPORTANT]

Git Protection Rule (AGENTS.md): docs/, src/, src-tauri/, and README*.md are git-protected directories.

DO NOT modify or create files in these directories without explicit user confirmation.

1. Present the list of missing docs to create/update.

2. Propose draft file paths and outline content.

3. Ask the user for confirmation before writing protected files.

Target locations for new docs:

Target locations for index updates:

Step 5 — Validate and report

After writing docs, run lightweight validation on modified files:

# Verify formatting and markdown structure (DO NOT run heavy full pipelines like `pnpm refactor:validate` unless explicitly requested)
pnpm lint:format

Report results in a summary table:

| File | Status | Lines | Coverage Category |

|------|--------|-------|-------------------|

| docs/user/guides/scheduled-tasks.md | Created | 180 | P0 (New Guide) |

| docs/architecture/db-schema-validator.md | Created | 120 | P2 (Spec) |

| docs/user/README.md | Updated | 45 | Index Link |

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.