Skip to content
Back to skills

Cds Search

ASecurity

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

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
developmentbashsqldatabase

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add Enakoneschniy/claude-dev-stack --skill cds-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cds Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cds Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/enakoneschniy-cds-search/badge)](https://www.skillsdirectory.com/skills/enakoneschniy-cds-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cds-search
description: |
  Search past session observations using the sessions.search MCP tool.
  Falls back to CLI if the MCP server is not available.
trigger_phrases:
  - /cds-search
  - 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.