search — Claude Code command: what it does, how to install
Runs full-text keyword searches across the pro-workflow learnings database. Helps recall previous mistakes and project rules while coding.
MIT ★ 2,966 updated 2026-09-29
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflowWhat search does
The /search command queries the pro-workflow knowledge base. BM25 handles result relevance ranking. The search supports prefix matches, exact quoted phrases, and space-separated terms combined with OR logic.
Each returned entry shows the rule category, the past mistake, and its applied count. It limits output to 10 entries by default. You can narrow hits with category:Quality or project:my-app filters.
The command requires records saved earlier through /learn.
What it helps with
- retrieve previously solved issues by keyword
- recall project coding rules before committing code
- filter past learnings by category or repository
Example prompts for the agent
- /search testing category:Quality
- /search "file paths"
- How did I handle network errors in tests before?
How to install search
1Plugin marketplace
/plugin marketplace add rohitg00/pro-workflow/plugin install pro-workflow@pro-workflow2Manually: put the files in place
.claude/commands/search.mdCall it with /search. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/search.mdCall it with /prompts:search. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/search.prompt.mdManually: put the files in place
.gemini/commands/search.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about search
How to install search in Claude Code?
Run /plugin marketplace add rohitg00/pro-workflow in Claude Code, then execute /plugin install pro-workflow@pro-workflow.
What does the search command do?
It searches the pro-workflow database for past learnings using BM25 keyword matching.
How to filter search results?
Add category:Name or project:Name flags to your search query, or wrap exact phrases in quotation marks.
Source text
search.md · MIT
--- description: Search saved learnings with full-text keyword matching --- # /search <query> - Search Learnings Search the pro-workflow learnings database using full-text search (BM25). ## Usage ``` /search testing /search "file paths" /search git commit ``` ## Search Features - **BM25 ranking**: Results are ranked by relevance - **Prefix matching**: "test" matches "testing", "tests", etc. - **Phrase search**: Use quotes for exact phrases - **Multiple terms**: Space-separated terms are OR'd together ## Output Format ``` Found 3 learnings matching "testing": #1 [Testing] Always run tests before commit Mistake: Pushed broken code Applied: 5 times #2 [Testing] Use --related flag to run only affected tests Mistake: Ran full test suite unnecessarily Applied: 2 times #3 [Quality] Mock external APIs in tests Mistake: Tests failed due to network issues Applied: 1 time ``` ## Options - **Category filter**: `/search testing category:Quality` - **Project filter**: `/search testing project:my-app` - **Limit results**: Results are limited to top 10 by default ## Related Commands - `/learn` - Add a new learning to the database - `/list` - List all learnings (no search filter) - `/stats` - Show learning analytics (coming soon) --- **Trigger:** Use when user asks "how did I handle...", "what was the rule for...", or needs to recall a past learning.
© Rohit Ghumare · MIT · rohitg00/pro-workflow