Init docs

From lukoshkin/evangelist · View interactive version

Init docs is an AI agent skill from the GitHub repository lukoshkin/evangelist. Use when a docs subdirectory lacks an aggregator README.md with a Key Files column, or when setting up documentation structure for a new doc category. Prerequisite for /upd-docs.

How to use this skill

Skill file

Init Docs

Generate aggregator README.md files for documentation directories that lack one.

When to Use

Input

The user specifies which docs/*/ directory to initialize. If none specified, scan all docs/*/ directories and offer to initialize those missing a valid aggregator.

Procedure

Step 1: Scan Directory

  1. List all .md files in the target docs/<dir>/ (excluding README.md itself)
  2. For each doc file, extract Key Files candidates:
  1. Deduplicate and validate: confirm each candidate path actually exists on disk

Step 2: Generate Aggregator

Build the README.md with this structure:

# <Directory Title>

<1-2 sentence overview of what this documentation covers.>

## Topic Index

| Topic | Description | Key Files |
|-------|-------------|-----------|
| [Doc Name](doc-name.md) | Brief description | `src/path/to/file.py`, `src/path/to/other.py` |

Description column: extract from the doc's first heading or opening paragraph — keep to one line.

Key Files column:

Step 3: Present for Review

Show the generated README.md to the user before writing. They may want to:

Only write the file after user confirmation.

Existing README.md

If a README.md already exists but lacks Key Files:

Anti-Patterns

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.