cds-search
Skill5 starsChanged 8 months agoMITView on GitHub
Search past session observations using the sessions.search MCP tool. Falls back to CLI if the MCP server is not available.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- budget-continueSkill
- cds-quickSkill
- cds-statsSkill
- dev-researchSkill
- notion-importerSkill
- session-managerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Search for past decisions, bugs, patterns, and observations stored in the project's SQLite session database.
- Very specific: line 20
Call mcp__cds__sessions.search with the query:
- Very specific: line 31
If mcp__cds__sessions.search is not available (MCP server not registered), use Bash:
- Distinctive: line 47
Only searches the current project's sessions.db
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/cds-search -- Search session memory
Search for past decisions, bugs, patterns, and observations stored in the project's SQLite session database.
How to execute
- Extract the search query from
$ARGUMENTS(everything after/cds-search). - Primary path (MCP tool):
Call
mcp__cds__sessions.searchwith the query:
Format the returned hits as a readable list showing:mcp__cds__sessions.search({ query: "$ARGUMENTS" })- Observation type (decision, bug, pattern, etc.)
- Content snippet (first 2-3 lines)
- Session date
- Session ID (abbreviated)
- Fallback path (CLI):
If
mcp__cds__sessions.searchis not available (MCP server not registered), use Bash:
Display the CLI output verbatim.Bash("npx claude-dev-stack search \"$ARGUMENTS\"")
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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

