Rechercher

PythonReactSEOPDF
OpenClaw

auto-doc-index

Auto-generate document index tables (ADR, RFC, Pitfall, etc.) from file frontmatter. In real-world testing, hand-maintained indexes had a 62% error rate — titles truncated, statuses fabricated, dates invented. This skill eliminates that silent drift. Use when creating doc directories, adding ADRs/RFCs, or setting up documentation governance.

erergb0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install erergb/auto-doc-index

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

Auto Doc Index — Derived Indexes from Frontmatter

Replaces hand-maintained index tables in README.md with auto-generated tables derived from structured frontmatter in individual doc files.

Why This Matters — Real Evidence

In a real project with 13 ADR files, comparing hand-maintained index vs auto-generated index revealed 8 discrepancies (62% error rate):

Issue Type Example Count
Title truncated "activate none" vs actual "activate none by default" 2
Status fabricated Index said "Decided" but file said "Accepted" 3
Date invented Index showed "2026-01-28" but file had no Date field 1
Metadata lost "(revised 2026-01-28)" stripped from status 1
Case "normalized" decided silently changed to Decided 4

These aren't hypothetical risks — they were already present and invisible in a well-maintained project. Hand-editing creates a false sense of correctness while the index silently diverges from its source files.

When to Use

  • Setting up a new documentation directory (ADR, RFC, Pitfall, Design Doc, etc.)
  • Adding a new document to an existing indexed directory
  • Onboarding a project that has hand-maintained doc indexes showing signs of drift
  • Resolving recurring merge conflicts in shared README.md index tables
  • Migrating from hand-maintained indexes to auto-generated ones

Boundaries

  • This skill generates index tables only — it does not create or modify the content of individual documents.
  • The generator script replaces content only between <!-- INDEX:START --> and <!-- INDEX:END --> markers. All other README.md content is preserved verbatim.
  • Do NOT use this for indexes that require editorial curation (e.g., "recommended reading order"). Auto-generation is for factual, exhaustive catalogs.
  • Do NOT introduce YAML frontmatter parsing libraries — the regex-based approach is intentional to keep the script zero-dependency. -...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/erergb/auto-doc-index
Version
—
Commit
d5f746caf71a64c4d6c6229fcac0d9f810a36a46
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

auto-doc-index

Auto-generate document index tables from file frontmatter.

AI agent skill that replaces hand-maintained README.md index tables with auto-generated ones derived from structured frontmatter in individual doc files. Eliminates merge conflicts, silent data drift, and stale indexes in multi-agent / multi-contributor documentation workflows.

The Problem

Hand-maintained index tables in README.md are shared mutable state. In a real project with 13 ADR files, we measured an 62% error rate in the hand-maintained index — titles truncated, statuses fabricated, dates invented. Nobody noticed because the index looked correct.

The Solution

Each document is self-describing via frontmatter. A zero-dependency generator script scans the directory, parses frontmatter, and injects a fresh index table between <!-- INDEX:START --> / <!-- INDEX:END --> markers. The index becomes a derived view — a stateless pure function of the source files.

OLD: Write doc → Hand-edit README.md → Merge conflict risk
NEW: Write doc → Run generator → Idempotent rebuild, zero conflicts

Quick Start

  1. Install as a Cursor skill:

    skillkit install zjlpaul/auto-doc-index
    
  2. Or install via ClawHub:

    openclaw install auto-doc-index
    
  3. Or just copy the template script: Copy template/generate-doc-index.ts to your project's scripts/ directory and run:

    npx tsx scripts/generate-doc-index.ts all
    

Supported Formats

Format Agent
SKILL.md Claude Code, Codex, Gemini CLI, 30+ agents
Cursor MDC Cursor
Markdown Rules Windsurf, GitHub Copilot

Use SkillKit to translate between formats:

skillkit translate --to cursor SKILL.md
skillkit translate --to windsurf SKILL.md

Frontmatter Patterns

ADR/RFC style (inline metadata):

# ADR-001: Title Here
Status: Decided...

Contenu extrait

SKILL.md
# Auto Doc Index — Derived Indexes from Frontmatter

Replaces hand-maintained index tables in `README.md` with auto-generated
tables derived from structured frontmatter in individual doc files.

## Why This Matters — Real Evidence

In a real project with 13 ADR files, comparing hand-maintained index vs
auto-generated index revealed **8 discrepancies (62% error rate)**:

| Issue Type | Example | Count |
|------------|---------|-------|
| **Title truncated** | "activate none" vs actual "activate none **by default**" | 2 |
| **Status fabricated** | Index said "Decided" but file said "Accepted" | 3 |
| **Date invented** | Index showed "2026-01-28" but file had no Date field | 1 |
| **Metadata lost** | "(revised 2026-01-28)" stripped from status | 1 |
| **Case "normalized"** | `decided` silently changed to `Decided` | 4 |

These aren't hypothetical risks — they were **already present and invisible**
in a well-maintained project. Hand-editing creates a false sense of
correctness while the index silently diverges from its source files.

## When to Use

- Setting up a new documentation directory (ADR, RFC, Pitfall, Design Doc, etc.)
- Adding a new document to an existing indexed directory
- Onboarding a project that has hand-maintained doc indexes showing signs of drift
- Resolving recurring merge conflicts in shared `README.md` index tables
- Migrating from hand-maintained indexes to auto-generated ones

## Boundaries

- This skill generates **index tables only** — it does not create or modify the content of individual documents.
- The generator script replaces content **only between `<!-- INDEX:START -->` and `<!-- INDEX:END -->` markers**. All other README.md content is preserved verbatim.
- Do NOT use this for indexes that require editorial curation (e.g., "recommended reading order"). Auto-generation is for factual, exhaustive catalogs.
- Do NOT introduce YAML frontmatter parsing libraries — the regex-based approach is intentional to keep the script zero-dependency.
-...
README
# auto-doc-index

**Auto-generate document index tables from file frontmatter.**

AI agent skill that replaces hand-maintained `README.md` index tables with auto-generated ones derived from structured frontmatter in individual doc files. Eliminates merge conflicts, silent data drift, and stale indexes in multi-agent / multi-contributor documentation workflows.

## The Problem

Hand-maintained index tables in `README.md` are **shared mutable state**. In a real project with 13 ADR files, we measured an **62% error rate** in the hand-maintained index — titles truncated, statuses fabricated, dates invented. Nobody noticed because the index *looked* correct.

## The Solution

Each document is self-describing via frontmatter. A zero-dependency generator script scans the directory, parses frontmatter, and injects a fresh index table between `<!-- INDEX:START -->` / `<!-- INDEX:END -->` markers. The index becomes a **derived view** — a stateless pure function of the source files.

```
OLD: Write doc → Hand-edit README.md → Merge conflict risk
NEW: Write doc → Run generator → Idempotent rebuild, zero conflicts
```

## Quick Start

1. **Install as a Cursor skill:**
   ```bash
   skillkit install zjlpaul/auto-doc-index
   ```

2. **Or install via ClawHub:**
   ```bash
   openclaw install auto-doc-index
   ```

3. **Or just copy the template script:**
   Copy `template/generate-doc-index.ts` to your project's `scripts/` directory and run:
   ```bash
   npx tsx scripts/generate-doc-index.ts all
   ```

## Supported Formats

| Format | Agent |
|--------|-------|
| SKILL.md | Claude Code, Codex, Gemini CLI, 30+ agents |
| Cursor MDC | Cursor |
| Markdown Rules | Windsurf, GitHub Copilot |

Use [SkillKit](https://github.com/nicholasbarger/skillkit) to translate between formats:
```bash
skillkit translate --to cursor SKILL.md
skillkit translate --to windsurf SKILL.md
```

## Frontmatter Patterns

**ADR/RFC style (inline metadata):**
```markdown
# ADR-001: Title Here
Status: Decided...

Skills associés

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance