Overview
- Skill Key
- erergb/auto-doc-index
- Author
- erergb
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/erergb/auto-doc-index
- Latest Commit SHA
- d5f746caf71a64c4d6c6229fcac0d9f810a36a46
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.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 auto-doc-index 技能。 若已安装,则直接安装 auto-doc-index 技能。
# 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. -...
# 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...
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 pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
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 required.
lethehades
macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance
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 discoverability and citation.
carev01
Full-text search across structured Markdown documentation archives using SQLite FTS5. Use when you need to search large collections of Markdown articles that are separated by "---" delimiters and contain source URLs (marked with "*Source:" pattern). Provides fast BM25-ranked search with automatic source URL extraction for citations. Ideal for research, documentation lookups, and knowledge base exploration. Requires indexing documentation first with `docs.py index`.
caqlayan
Tweet Processor Skill