doc-gardener

Scan repository docs to detect stale, missing, or unreferenced documentation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/matthabermehl/generation-b-kids-books --skill doc-gardener
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-gardener
Source: https://github.com/matthabermehl/generation-b-kids-books/tree/main/.codex/skills/doc-gardener
Command: npx skills add https://github.com/matthabermehl/generation-b-kids-books --skill doc-gardener

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Documentation often drifts out of sync with code changes, leaving docs inaccurate, links broken, and operational runbooks stale; doc-gardener helps surface and prioritize those mismatches so maintainers can update the repository documentation promptly.

Core Features & Use Cases

  • Scans the docs directory tree and reports missing or unreferenced files to reduce unnoticed documentation gaps.
  • Checks docs/index.md for missing references to other docs and lists TODO/FIXME occurrences for targeted cleanup.
  • Guidance notes to keep AGENTS.md concise and to move details into docs/ and scripts/agent/ for maintainable documentation structure.
  • Use cases: after a refactor that moves modules, following an API or architecture change, and before releases to ensure documentation accuracy.

Quick Start

Run the doc_garden.sh script to scan the docs directory, verify index links, and list any TODO or FIXME items for remediation.

Frequently Asked Questions about doc-gardener

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

FAQPage Schema
How do I detect documentation drift after code changes in my repository?

To detect documentation drift after code changes, you can scan the repository docs to identify stale, missing, or unreferenced files. This process surfaces mismatches so maintainers can update repository documentation promptly.

What's the best way to find missing references in docs/index.md?

The best way to find missing references in docs/index.md is by running a best-effort index cross-reference check. This scan identifies unreferenced files and flags missing links to reduce unnoticed documentation gaps.

How do I scan my docs directory for TODO and FIXME occurrences?

You can scan your docs directory for TODO and FIXME occurrences by running a repository shell script. This lists all TODO and FIXME items for targeted cleanup and remediation.

When do I need to perform a documentation audit for stale runbooks?

You need to perform a documentation audit for stale runbooks after a refactor that moves modules, following an API or architecture change, and before releases to ensure documentation accuracy and operational readiness.

Does this documentation audit approach require any special dependencies?

This documentation audit approach requires no special dependencies, only access to the repository file tree and basic shell utilities. It performs best-effort index cross-reference checks and TODO/FIXME scans.

How should I structure AGENTS.md to maintain accurate documentation?

To maintain accurate documentation, keep AGENTS.md concise and move details into docs/ and scripts/agent/ directories. This ensures a maintainable documentation structure and reduces unnoticed gaps.