Clear the docs-management search cache (inverted index). This forces the index to rebuild on the next documentation search.
Clears the documentation search cache to force index rebuild on next search.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install claude-code-observability@melodic-softwareClear 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 in $ARGUMENTS.
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/# Get the install path from installed_plugins.json
# Look for claude-ecosystem@* entry and extract installPath
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, run `/rebuild-claude-docs-index` 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 run `/rebuild-claude-docs-index` to rebuild immediately
/plugin install claude-ecosystem@<marketplace>"~ resolves to %USERPROFILE%