Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflow
Open on GitHub

What 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-workflow

2Manually: put the files in place

.claude/commands/search.md

Call it with /search. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set83

The whole set →
permission-tuner permission-tuner analyzes why Claude Code keeps prompting for permissions or denying operations, then generates rules to reduce confirmation fatigue. CX Codex +1 ★ 2,966repo stars list list displays stored patterns and rules from the pro-workflow database by recency, category, or project. CX Codex +1 ★ 2,966repo stars context-discipline The context-discipline rule sets limits for file reads, tool calls, and test-driven edits. It helps keep Claude Code from reopening unchanged files or polishing code after tests pass. CX Codex +1 ★ 2,966repo stars communication-style communication-style sets how Claude replies: short, no openers or praise, code before prose. Useful when agent answers drown in politeness. CX Codex +1 ★ 2,966repo stars sprint-status sprint-status is a Claude Code command that summarizes active sessions and branches. Run it to resume work or check parallel sessions. CX Codex +1 ★ 2,966repo stars deslop The /deslop command cleans the current branch of unnecessary code added by AI: obvious comments, defensive try/catch blocks, one-off abstractions, and docstrings on unchanged functions. CX Codex +1 ★ 2,966repo stars learn-rule learn-rule extracts session mistakes into one-line rules and saves them to your project memory after explicit confirmation. CX Codex +1 ★ 2,966repo stars wrap-up The wrap-up skill audits code changes, runs quality checks, and records what to pick up next. Use it when you are about to end a coding session. CX Codex +1 ★ 2,966repo stars

Project sponsors

Companies that keep this analytics open