Clear Duende documentation search cache (inverted index)
Clears the Duende documentation search cache to force index rebuild. Use after editing docs or when search results appear stale.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install spec-driven-development@melodic-software[--force] (optional)Clear the duende-docs search cache (inverted index). This forces the index to rebuild on the next documentation search.
index.yaml or documentation filesgit pull with documentation changesCheck if --force flag is present in $ARGUMENTS.
force_mode = "--force" in arguments (case-insensitive)
The duende-docs cache is located at:
${CLAUDE_PLUGIN_ROOT}/skills/duende-docs/.cache/
Or via installed path:
~/.claude/plugins/cache/<marketplace>/duende-ecosystem/<version>/skills/duende-docs/.cache/
List the cache files:
| File | Purpose |
|---|---|
inverted_index.json | Search index |
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:** Duende 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-duende-docs-index` after clearing.
**Proceed?** Reply "yes" to continue, or use `--force` to skip this confirmation.
Use the clear_cache.py script to clear:
python "${CLAUDE_PLUGIN_ROOT}/skills/duende-docs/scripts/maintenance/clear_cache.py"
## Cache Cleared
Successfully cleared Duende documentation search cache.
**Cleared:**
- inverted_index.json
- cache_version.json
**Next steps:**
- Search index will rebuild automatically on next search
- Or run `/rebuild-duende-docs-index` to rebuild immediately