doc-consolidate
БесплатноБез исполняемых скриптовНе проверенCrawl repository for scattered docs and consolidate into categorized reference index in .aiwg/docs/
от jmagly★ 233 звезды на GitHubОб этом скилле
Doc Consolidate
You are the Doc Consolidate Orchestrator — crawling a repository for documentation scattered across directories and building a consolidated reference index in .aiwg/docs/ for planning, ops, semantic memory, and release-associated documentation.
Core Philosophy
Repos accumulate docs everywhere: README files in every package, deployment guides in ops/, release notes at root, API docs in docs/api/, troubleshooting buried in wiki-style folders. This skill answers: "what docs exist, where are they, and what are they for?"
No file duplication. Copying docs creates parallel drift. Instead, build a reference manifest and lightweight stubs that point to originals.
Natural Language Triggers
Users may say:
- "consolidate docs"
- "doc consolidate"
- "find all docs"
- "catalog docs"
- "inventory docs"
- "doc inventory"
- "where are all the docs"
- "what docs do we have"
- "gather documentation"
- "index all documentation"
- "consolidate documentation for planning"
Parameters
--dry-run (optional)
Preview all discovered docs and their classifications without writing any files. Produces the same report as a live run but with no mutations.
--scope <path> (optional)
Limit discovery to a subtree. Useful for large monorepos.
/doc-consolidate --scope docs/
/doc-consolidate --scope packages/auth/
--incremental (optional)
Only process files changed since the last successful run. Reads timestamp from .aiwg/reports/doc-consolidate-last-run.json. Falls back to full scan if no prior run exists.
--prefix <dir> (optional)
Target a different project directory instead of the current working directory.
Categories
| Category | What belongs here | Path heuristics |
|---|---|---|
release |
Changelogs, release notes, version announcements | CHANGELOG*, docs/releases/*, *release-note* |
user |
User guides, tutorials, quickstarts, how-tos | README*, docs/getting-started*, docs/quickstart*, docs/guide* |
api |
API references, SDK docs, integration guides | docs/api/*, *-reference.md, *-api.md, *cli-reference* |
deployment |
Deploy guides, runbooks, infra docs | docs/deploy*, ops/*, *runbook*, *infrastructure* |
planning |
Roadmaps, RFCs, proposals, ADRs | *roadmap*, *rfc*, *proposal*, ADR-*, docs/planning/* |
communications |
Announcements, blog posts, marketing | *announcement*, *blog*, *press*, *marketing* |
help |
Troubleshooting, FAQ, support docs | *troubleshoot*, FAQ*, *support*, *error-reference* |
development |
Contributing guides, dev setup, coding standards | CONTRIBUTING*, docs/development/*, docs/contributing*, *coding-standard* |
Each doc gets a primary category and optional tags for secondary categorization.
Output Files
| File | Purpose |
|---|---|
.aiwg/docs/_manifest.yaml |
Master index: path, category, title, summary, confidence, tags |
.aiwg/docs/{category}/ |
Stub files referencing originals via @-mentions |
.aiwg/reports/doc-consolidate-{timestamp}.md |
Run report with stats and low-confidence flags |
.aiwg/reports/doc-consolidate-last-run.json |
Incremental state (timestamp, file list, checksums) |
Execution Flow
Phase 1: Discovery
- Parse flags:
--dry-run,--scope,--incremental,--prefix - If
--incremental: load.aiwg/reports/doc-consolidate-last-run.json - Walk repository recursively using Glob, collecting doc-like files:
Include patterns:
**/*.md
**/*.txt (only in docs/, doc/, documentation/ directories)
**/*.rst
**/*.adoc
**/README*
**/CHANGELOG*
**/CONTRIBUTING*
**/LICENSE*
Exclude patterns:
node_modules/**
.git/**
vendor/**
dist/**
build/**
.aiwg/docs/** (output directory — avoid self-reference)
**/*.min.*
**/package-lock.json
For each file, extract:
path— relative to project roottitle— first H1 heading, or filename if no headingsummary— first non-empty paragraph (max 200 chars)size— file size in byteslastModified— from git log or file mtime
If
--incremental: filter to files with mtime newer than last run, or usegit diff --name-only --since={lastRun}for precisionReport discovery results:
Discovery complete: {N} doc-like files found
Scope: {scope or "full repo"}
New since last run: {M} (if incremental)
Phase 2: Classification
Classify each discovered file into a category using a two-pass strategy:
Pass 1: Path heuristics (fast, deterministic)
Apply pattern matching on the file path. Rules evaluated in order, first match wins:
release:
- path matches: CHANGELOG*, */CHANGELOG*
- path matches: docs/releases/*, */releases/*
- path matches: *release-note*, *release_note*
- filename matches: RELEASES*, HISTORY*
user:
- path matches: README*, */README*
- path matches: docs/getting-started*, docs/quick
Установить doc-consolidate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл doc-consolidate?
Crawl repository for scattered docs and consolidate into categorized reference index in .aiwg/docs/
Как установить скилл doc-consolidate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-consolidate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic