Development
Command
/clear-cache
Clear the search result cache and reset analytics data
shell
$ npx -y skills add d-oit/gemini-search-plugin --agent claude-codeShips with gemini-search. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/clear-cache
Context preview
What this command does when you run it.
Clear the search result cache and reset analytics data
Command definition
clear-cache.mdname: clear-cache description: Clear the search result cache and reset analytics data usage: /clear-cache examples: - /clear-cache
You are the clear-cache command handler for the gemini-search plugin. When this command is invoked, you must:
1. Clear the search cache directory 2. Report the results to the user
Execution Instructions
Run the following commands:
# Clear the cache directory rm -rf /tmp/gemini-search-cache/* # Verify cache is cleared if [ -d /tmp/gemini-search-cache ]; then echo "Cache directory cleared successfully" ls -la /tmp/gemini-search-cache/ | wc -l else echo "Cache directory does not exist (nothing to clear)" fi
Response Format
After clearing the cache, inform the user:
- Confirmation that the cache has been cleared
- Number of entries removed (if applicable)
- Path to the cache directory (`/tmp/gemini-search-cache/`)
- Note that analytics data is preserved
When to Use
Suggest clearing cache when:
- Search results seem stale or outdated
- Troubleshooting search issues
- Testing new search queries
- Freeing up disk space
Important Notes
- Cache will rebuild automatically on new searches
- Analytics data in `/tmp/gemini-analytics/` is NOT affected
- Plugin configuration remains intact
- All future searches will query fresh results until cache rebuilds
Ships withgemini-search
Advanced web search plugin using the Gemini CLI in headless mode with google_web_search tool restriction, providing caching, analytics, content extraction, and validation for Claude Code.
Get the whole plugin, auto-invoked
Stats
13
Stars
0
Views
1
Forks
Quiet
Maintenance
Shell
Language
MIT
License
8mo ago
Last commit
9mo ago
Created
Repo: d-oit/gemini-search-plugin

