with one click
docs-index-keeper
// Keep a repository's Markdown docs index in sync by installing and running docs-index-keeper in pre-commit hooks, CI, or one-off maintenance flows.
// Keep a repository's Markdown docs index in sync by installing and running docs-index-keeper in pre-commit hooks, CI, or one-off maintenance flows.
| name | docs-index-keeper |
| description | Keep a repository's Markdown docs index in sync by installing and running docs-index-keeper in pre-commit hooks, CI, or one-off maintenance flows. |
| license | MIT |
| compatibility | Codex, Claude Code, Cursor, and other Agent Skills compatible tools. Requires shell access and Node.js 18+ when installing from npm. |
| metadata | {"author":"Oleg Koval","package":"docs-index-keeper","tags":["docs","markdown","documentation","pre-commit","ci","index","codex","claude","cursor"]} |
Use this skill when a repository keeps documentation under docs/ and needs docs/README.md or another Markdown index table updated automatically as docs are added or changed.
Trigger this skill when the user asks for any of the following:
docs/README.md when new Markdown files are addeddocs/*.md file into an index tabledocs-index-keeper scans staged Markdown files, filters to a configured docs directory, and inserts missing rows into a Markdown table.
Default behavior:
docs/README.mddocsREADME.md, archive/Commands:
docs-index-keeper initdocs-index-keeper updatedocs-index-keeper checkdocs-index-keeper add <path|mask...>| Doc | Purpose |.npm install -D docs-index-keeper
npx docs-index-keeper init
npx docs-index-keeper check
npx docs-index-keeper update
npx docs-index-keeper add docs/my-doc.md docs/plans/*.md
Prefer package.json:
{
"docsIndexKeeper": {
"indexFile": "docs/README.md",
"docsDir": "docs",
"exclude": ["README.md", "archive/"],
"allowedRootMd": ["README.md", "AGENTS.md", "CONTRIBUTING.md"],
"warnRootMd": true
}
}
You can also use .docs-index-keeper.json at the repo root.
update works from staged files, not every file in the repo.check exits non-zero when staged docs would require index changes.After installing or changing config, verify with:
npx docs-index-keeper check
If you are changing the package itself, verify with:
npm run build
npm test
[HINT] Download the complete skill directory including SKILL.md and all related files