Docs Index Keeper

Keep a repository's Markdown docs index in sync with the files that actually exist, by installing and running docs-index-keeper in a pre-commit hook, in CI, or as a one-off sweep. Use when the user says "the docs index is stale", "update the docs index", "add a docs index check to CI", "our doc links are out of date", or when new docs were added without being linked anywhere.

oleg-koval 8797b97 1.5 KB Updated

File contents

docs-index-keeper

Use this skill when a repository keeps docs under docs/ and needs a Markdown index table updated automatically as docs are added or changed.

Trigger phrases

  • keep a docs index up to date
  • auto-update docs/README.md
  • add a pre-commit hook for docs indexing
  • enforce docs index freshness in CI
  • add a specific docs/*.md file into a Markdown index table

Workflow

  1. Confirm the repo has a docs directory and an index table such as | Doc | Purpose |.
  2. Install the package if it is not already present:
npm install -D docs-index-keeper
  1. Initialize the hook:
npx docs-index-keeper init
  1. For CI enforcement, run:
npx docs-index-keeper check
  1. For one-off staged maintenance, run:
npx docs-index-keeper update

Notes

  • update operates on staged Markdown files.
  • check exits non-zero when the index is missing entries for staged docs.
  • Purpose text comes from the first Markdown heading when available.
  • New rows are inserted before an archive sentinel row when present.

oleg-koval/agent-skills/tree/main/plugins/olko-web-ops/skills/docs-index-keeper commit 8797b97c54

Frequently asked questions

npx skillmds@latest add oleg-koval/docs-index-keeper