# Cds Search

> Search past session observations using the sessions.search MCP tool. Falls back to CLI if the MCP server is not available.

- Skill: `enakoneschniy/cds-search` (Agent Skill)
- Install (CLI): `npx skillmds@latest add enakoneschniy/cds-search`
- Raw SKILL.md: https://api.skillmd.com/api/skills/enakoneschniy/cds-search/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Enakoneschniy (https://skillmd.com/u/enakoneschniy)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/enakoneschniy/cds-search

---


# /cds-search -- Search session memory

Search for past decisions, bugs, patterns, and observations stored in the project's SQLite session database.

## How to execute

1. Extract the search query from `$ARGUMENTS` (everything after `/cds-search`).

2. **Primary path (MCP tool):**
   Call `mcp__cds__sessions.search` with the query:
   ```
   mcp__cds__sessions.search({ query: "$ARGUMENTS" })
   ```
   Format the returned hits as a readable list showing:
   - Observation type (decision, bug, pattern, etc.)
   - Content snippet (first 2-3 lines)
   - Session date
   - Session ID (abbreviated)

3. **Fallback path (CLI):**
   If `mcp__cds__sessions.search` is not available (MCP server not registered), use Bash:
   ```
   Bash("npx claude-dev-stack search \"$ARGUMENTS\"")
   ```
   Display the CLI output verbatim.

## When to use

- User asks about past decisions ("what did we decide about X")
- User asks about past bugs ("did we see this bug before")
- User asks about patterns ("how did we implement X")
- User explicitly invokes `/cds-search`

## Notes

- Results are ranked by FTS5 BM25 relevance
- Only searches the current project's sessions.db
- For cross-project search, use the CLI directly on each project

