Skip to content
Back to skills

Docs Index Keeper

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 14, 2026
ai-agentsshellbashnodegitdocumentation

Works with

  • claude code
  • cursor

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 14, 2026

npx -y skills add oleg-koval/agent-skills --skill docs-index-keeper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Index Keeper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Index Keeper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oleg-koval-docs-index-keeper/badge)](https://www.skillsdirectory.com/skills/oleg-koval-docs-index-keeper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-index-keeper
description: >
  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.
license: MIT
allowed-tools: Bash, Read, Write, Edit, Grep, Glob
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires shell access and Node.js 18+ when installing from npm.
metadata:
  targets: [_source-only]
  author: Oleg Koval
  package: docs-index-keeper
  tags:
    - docs
    - markdown
    - documentation
    - pre-commit
    - ci
    - index
---
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->

# 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:

```bash
npm install -D docs-index-keeper
```

3. Initialize the hook:

```bash
npx docs-index-keeper init
```

4. For CI enforcement, run:

```bash
npx docs-index-keeper check
```

5. For one-off staged maintenance, run:

```bash
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.