Force rebuild of Duende documentation search index
Force rebuild the Duende documentation search index for immediate results. Use after editing docs or when search seems stale, faster than waiting for lazy rebuild.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install spec-driven-development@melodic-software[--force] (optional)Clear and immediately rebuild the duende-docs search index. This is faster than /clear-duende-docs-cache + waiting for next search because it triggers the rebuild immediately.
index.yaml or documentation filesgit pull with documentation changes| Command | Action | Search Availability |
|---|---|---|
/clear-duende-docs-cache | Clears cache only | Rebuild on next search (lazy) |
/rebuild-duende-docs-index | Clears + rebuilds | Immediate (eager) |
This command clears the Duende documentation search cache and immediately rebuilds the index.
First, check the current cache state. 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 and build time. Confirm that search is now available.
## Index Rebuilt
Successfully rebuilt Duende documentation search index.
**New index stats:**
- Documents: X
- Build time: Xms
**Search is now available.**