mastering-python-skill
Modern Python coaching covering language foundations through advanced production patterns. Use when asked to "write Python code",…
Expert Agent Brain skill for document search with BM25 keyword, semantic vector, hybrid, graph, and multi retrieval modes. Use when asked to "search documentation", "query domain", "find in docs", "bm25 search", "hybrid search", "semantic search", "graph search", "multi search",
$ npx -y skills add SpillwaveSolutions/agent-brain --skill using-agent-brain --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/using-agent-brainContext preview
The summary Claude sees to decide when to auto-load this skill.
Expert Agent Brain skill for document search with BM25 keyword, semantic vector, hybrid, graph, and multi retrieval modes. Use when asked to "search documentation", "query domain", "find in docs", "bm25 search", "hybrid search", "semantic search", "graph search", "multi search",
name: using-agent-brain description: | Expert Agent Brain skill for document search with BM25 keyword, semantic vector, hybrid, graph, and multi retrieval modes. Use when asked to "search documentation", "query domain", "find in docs", "bm25 search", "hybrid search", "semantic search", "graph search", "multi search", "find dependencies", "code relationships", "searching knowledge base", "querying indexed documents", "finding code references", "exploring codebase", "what calls this function", "find imports", "trace dependencies", "brain search", "brain query", "knowledge base search", "cache management", "clear embedding cache", "cache hit rate", or "cache status". Supports multi-instance architecture with automatic server discovery. GraphRAG mode enables relationship-aware queries for code dependencies and entity connections. Pluggable providers for embeddings (OpenAI, Cohere, Ollama) and summarization (Anthropic, OpenAI, Gemini, Grok, Ollama). Supports multiple runtimes (Claude Code, OpenCode, Gemini CLI) with shared .agent-brain/ data directory, plus MCP-aware clients (Claude Desktop, Cursor, Windsurf) via the agent-brain-mcp server. license: MIT allowed-tools: - Bash - Read metadata: version: 10.3.0 category: ai-tools author: Spillwave last_validated: 2026-06-10
Expert-level skill for Agent Brain document search with five modes: BM25 (keyword), Vector (semantic), Hybrid (fusion), Graph (knowledge graph), and Multi (comprehensive fusion).
---
| Mode | Speed | Best For | Example Query | |------|-------|----------|---------------| | `bm25` | Fast (10-50ms) | Technical terms, function names, error codes | `"AuthenticationError"` | | `vector` | Slower (800-1500ms) | Concepts, explanations, natural language | `"how authentication works"` | | `hybrid` | Slower (1000-1800ms) | Comprehensive results combining both | `"OAuth implementation guide"` | | `graph` | Medium (500-1200ms) | Relationships, dependencies, call chains | `"what calls AuthService"` | | `multi` | Slowest (1500-2500ms) | Most comprehensive with entity context | `"complete auth flow with dependencies"` |
| Parameter | Default | Description | |-----------|---------|-------------| | `--mode` | hybrid | Search mode: bm25, vector, hybrid, graph, multi | | `--threshold` | 0.3 | Minimum similarity (0.0-1.0) | | `--top-k` | 5 | Number of results | | `--alpha` | 0.5 | Hybrid balance (0=BM25, 1=Vector) |
---
Searching for exact technical terms:
agent-brain query "recursiveCharacterTextSplitter" --mode bm25 agent-brain query "ValueError: invalid token" --mode bm25 agent-brain query "def process_payment" --mode bm25
**Counter-example - Wrong mode choice**:
# BM25 is wrong for conceptual queries agent-brain query "how does error handling work" --mode bm25 # Wrong agent-brain query "how does error handling work" --mode vector # Correct
Searching for concepts or natural language:
agent-brain query "best practices for error handling" --mode vector agent-brain query "how to implement caching" --mode vector
**Counter-example - Wrong mode choice**:
# Vector is wrong for exact function names agent-brain query "getUserById" --mode vector # Wrong - may miss exact match agent-brain query "getUserById" --mode bm25 # Correct - finds exact match
Need comprehensive results (default mode):
agent-brain query "OAuth implementation" --mode hybrid --alpha 0.6 agent-brain query "database connection pooling" --mode hybrid
**Alpha tuning**:
Exploring relationships and dependencies:
agent-brain query "what functions call process_payment" --mode graph agent-brain query "classes that inherit from BaseService" --mode graph --traversal-depth 3 agent-brain query "modules that import authentication" --mode graph
**Prerequisite**: Requires `ENABLE_GRAPH_INDEX=true` during server startup.
Need the most comprehensive results:
agent-brain query "complete payment flow implementation" --mode multi --include-relationships
---
GraphRAG enables relationship-aware retrieval by building a knowledge graph from indexed documents.
export ENABLE_GRAPH_INDEX=true agent-brain start
| Query Pattern | Example | |---------------|---------| | Function callers | `"what calls process_payment"` | | Class inheritance | `"classes extending BaseController"` | | Import dependencies | `"modules importing auth"` | | Data flow | `"where does user_id come from"` |
See [Graph Search Guide](references/graph-search-guide.md) for detailed usage.
---
# Index only Python files agent-brain index ./src --include-type python # Index Python and documentation agent-brain index ./project --include-type python,docs # Index all code files agent-brain index ./repo --include-type code # Force full re-index (bypass incremental) agent-brain index ./docs --force
Use `agent-brain types list` to see all 14 available presets.
agent-brain folders list
A RAG-based (Retrieval-Augmented Generation) document indexing and semantic search system for AI agents and applications. Agent Brain enables intelligent querying of documentation and source code using natural language.
Modern Python coaching covering language foundations through advanced production patterns. Use when asked to "write Python code",…
Installation and configuration skill for Agent Brain document search system. Use when asked to "install agent brain", "setup…