agentleFS
EnakoneschniyEnakoneschniy/claude-dev-stack/skills/cds-search/SKILL.md

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.

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
  1. Distinctive:

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

    line 13
  2. Very specific:

    Call mcp__cds__sessions.search with the query:

    line 20
  3. Very specific:

    If mcp__cds__sessions.search is not available (MCP server not registered), use Bash:

    line 31
  4. Distinctive:

    Only searches the current project's sessions.db

    line 47

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.