From claude-ecosystem
Manages Claude Code docs lifecycle: scrape official sources, validate index integrity/drift, refresh/rebuild index, clear cache. Invoke via /docs-ops <action>.
npx claudepluginhub melodic-software/claude-code-plugins --plugin claude-ecosystemThis skill is limited to using the following tools:
Manage the Claude Code documentation lifecycle through a single consolidated skill.
Manages Codex CLI documentation index: scrape from llms.txt sources, validate integrity, refresh filesystem, rebuild-index, clear-cache.
Manages Claude documentation: local index search/discovery/resolution by keywords/tags/natural language, sitemap scraping, metadata/alias handling, drift detection.
Manages Cursor documentation index lifecycle: scrape from llms.txt sources, validate integrity, refresh from filesystem, rebuild-index, clear-cache.
Share bugs, ideas, or general feedback.
Manage the Claude Code documentation lifecycle through a single consolidated skill.
| Action | Description |
|---|---|
scrape | Scrape documentation from official sources, then refresh and validate |
validate | Validate index integrity and detect drift (read-only) |
refresh | Refresh index from filesystem without scraping |
rebuild-index | Clear and immediately rebuild the search index |
clear-cache | Clear the search cache (lazy rebuild on next search) |
Parse $ARGUMENTS to determine the action. The first token is the action keyword. Remaining tokens are passed as options to the action handler.
Scrape Claude documentation from official sources and run the full post-scrape workflow (index refresh and validation).
When invoked without qualifiers:
Invoke the claude-ecosystem:docs-management skill.
Request scraping with natural language:
Please scrape all configured Claude documentation sources. Skip unchanged documents, then refresh the local index and metadata and validate. After validation, clean up aged-out Anthropic articles (older than the configured max_age_days threshold). Run in foreground so we can see progress.
IMPORTANT: Use Python 3.13 for validation (py -3.13) due to spaCy compatibility. Python 3.14 works for scraping.
Let the skill decide which scripts to run based on its SKILL.md guidance.
Use natural language to narrow scope:
scrape-only: Skip index refresh and validation.scrape+refresh: Scrape and refresh index (default).scrape+detect-drift: Scrape and detect drift (404s, missing files).scrape+auto-cleanup: Scrape and automatically cleanup drift.scrape+age-cleanup: Scrape, refresh, and remove aged-out Anthropic articles.Distinguish by domain:
docs.claude.com and code.claude.com: Serve .md URLs successfullyanthropic.com: Does NOT serve .md URLs (expected 404s, falls back to HTML)Report per-domain statistics accurately.
Validate the Claude documentation index integrity and detect drift. This is read-only - no changes made.
Invoke the claude-ecosystem:docs-management skill to validate the documentation index.
Request validation report including any detected issues or drift.
Refresh the local Claude documentation index without network scraping.
Use this action when you want to:
For full scraping + refresh, use the scrape action instead.
Invoke the claude-ecosystem:docs-management skill to refresh the local documentation index.
Request index rebuild and metadata validation from the skill.
Note: Use Python 3.13 for this action due to spaCy compatibility:
Please refresh the local documentation index and validate metadata. Use Python 3.13 (py -3.13) for spaCy compatibility.
Clear and immediately rebuild the docs-management search index. This is faster than clear-cache + waiting for next search because it triggers the rebuild immediately.
index.yaml or documentation filesgit pull with documentation changes| Action | Behavior | Search Availability |
|---|---|---|
clear-cache | Clears cache only | Rebuild on next search (lazy) |
rebuild-index | Clears + rebuilds | Immediate (eager) |
This action clears the documentation search cache and immediately rebuilds the index.
First, check the current cache state by running the cache manager info command. Report whether the cache exists, is valid, and when it was last built.
Unless the user passed --force, show a rebuild plan with the current cache state and ask for confirmation before proceeding. Explain that rebuilding takes a few seconds and search will be unavailable during the rebuild.
Once confirmed (or if --force was passed):
Report the new index statistics including document count, terms indexed, and build time. Confirm that search is now available.
## Index Rebuilt
Successfully rebuilt Claude Code documentation search index.
**New index stats:**
- Size: 1.8 MB
- Terms indexed: 6,020
- Documents: 451
- Tags: 33
- Categories: 16
- Build time: 45ms
**Search is now available.**
The index automatically rebuilds when:
--clear-cache flag is passed to find_docs.pyThe cache_manager.py uses content hashes (not just mtime) to detect changes. This correctly handles git operations where mtime changes but content doesn't.
Clear the docs-management search cache (inverted index). This forces the index to rebuild on the next documentation search.
index.yamlgit pull with documentation changesCheck if --force flag is present.
force_mode = "--force" in arguments (case-insensitive)
The docs-management cache is located at:
~/.claude/plugins/cache/<marketplace>/claude-ecosystem/<version>/skills/docs-management/.cache/
Detection approach:
~/.claude/plugins/installed_plugins.jsonskills/docs-management/.cache/List the cache files and their sizes:
| File | Purpose |
|---|---|
inverted_index.json | Search index (~1.8 MB) |
cache_version.json | Hash-based validity tracking |
If cache directory doesn't exist or is empty, report: "Cache already clear. Nothing to do."
If NOT force_mode, present the cache clear plan:
## Cache Clear Plan
**Target:** Claude Code documentation search index
| File | Size |
|------|------|
| inverted_index.json | X.X MB |
| cache_version.json | 512 bytes |
**Total:** X.X MB
> **Note:** The search index will rebuild automatically on the next documentation search.
> For immediate rebuild, use the `rebuild-index` action after clearing.
**Proceed?** Reply "yes" to continue, or use `--force` to skip this confirmation.
Wait for user confirmation. If user does not confirm, abort with: "Cache clear cancelled."
Use the cache_manager.py script to clear the inverted index:
python "<install_path>/skills/docs-management/scripts/utils/cache_manager.py" --clear
Or manually delete the cache files:
rm -f "<cache_dir>/inverted_index.json"
rm -f "<cache_dir>/cache_version.json"
## Cache Cleared
Successfully cleared Claude Code documentation search cache.
**Cleared:**
- inverted_index.json (X.X MB)
- cache_version.json
**Next steps:**
- Search index will rebuild automatically on next search
- Or use `rebuild-index` action to rebuild immediately
/plugin install claude-ecosystem@<marketplace>"~ resolves to %USERPROFILE%