vector-search-workflows — Claude Code skill: setup
This skill lays out a workflow for semantic code search with MCP Vector Search. Use it to index a repository, query it, and refresh stale data.
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a claude-codeWhat vector-search-workflows does
The skill documents a complete mcp-vector-search flow: install the package with pip, run setup, build a codebase index, and issue semantic queries. The setup command detects project languages, creates configuration, indexes the repository, and prepares MCP connectivity for tools such as Claude Code and Cursor.
It covers regular and forced indexing, full or path-based reindexing, status checks, and diagnostics. Auto-indexing can be configured, inspected, or removed, while MCP_ENABLE_FILE_WATCHING=true keeps file changes visible to the integration. The workflow depends on mcp-vector-search being installed first.
What it helps with
- index a repository for semantic code search
- locate code by describing its behavior
- rebuild the index after parser or dependency changes
- configure automatic reindex checks
- connect vector search through MCP
Example prompts for the agent
- Set up
mcp-vector-searchfor this repository and configure its MCP integration. - Search the codebase for the logic that handles authentication errors.
- Check the index, then force a reindex after the parser changed.
How to install vector-search-workflows
1Skills CLI (Vercel)
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a claude-code2Manually: put the files in place
~/.claude/skills/vector-search-workflows/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/vector-search-workflows/
1Skills CLI (Vercel)
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a codex2Manually: put the files in place
.agents/skills/vector-search-workflows/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a cursor2Manually: put the files in place
.cursor/skills/vector-search-workflows/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install bobmatnyc/claude-mpm-skills vector-search-workflows2Manually: put the files in place
.github/skills/vector-search-workflows/SKILL.md1Skills CLI (Vercel)
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a gemini-cli2Platform CLI
gemini skills install https://github.com/bobmatnyc/claude-mpm-skills --path toolchains/ai/techniques/vector-search-workflowsManually: put the files in place
.devin/skills/vector-search-workflows/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about vector-search-workflows
How do I install vector-search-workflows in Claude Code?
Run npx skills add bobmatnyc/claude-mpm-skills --skill vector-search-workflows -a claude-code, then check ~/.claude/skills/vector-search-workflows/SKILL.md.
What does vector-search-workflows do?
It documents setup, indexing, semantic queries, automatic index maintenance, and MCP integration for mcp-vector-search.
How does the MCP setup work?
The workflow uses native claude mcp add when that command is available. Otherwise, it falls back to configuring .mcp.json.
Source text
SKILL.md · MIT
---
name: vector-search-workflows
description: Vector search indexing and querying workflows using MCP Vector Search, including setup, reindexing, auto-index strategies, and MCP integration.
user-invocable: false
disable-model-invocation: true
version: 1.0.0
category: toolchain
author: Claude MPM Team
license: MIT
progressive_disclosure:
entry_point:
summary: "Index a codebase with mcp-vector-search, keep it fresh with auto-indexing, and query via CLI or MCP integration."
when_to_use: "Building semantic search for codebases, setting up MCP search tools, or troubleshooting indexing and reindexing workflows."
quick_start: "1. mcp-vector-search setup 2. mcp-vector-search search \"query\" 3. mcp-vector-search index --force when schema changes"
tags:
- vector-search
- embeddings
- indexing
- search
- mcp
---
# Vector Search Workflows (MCP Vector Search)
## Overview
Use `mcp-vector-search` to index codebases into ChromaDB and search via semantic embeddings. The recommended flow is `setup` (init + index + MCP integration), then `search`, and use `index` or `auto-index` to keep data fresh.
## Quick Start
```bash
pip install mcp-vector-search
mcp-vector-search setup
mcp-vector-search search "authentication logic"
```
`setup` detects languages, initializes config, indexes the repo, and configures MCP integrations (Claude Code, Cursor, etc.).
## Core Commands
### Indexing
```bash
mcp-vector-search index
mcp-vector-search index --force
mcp-vector-search index reindex --all --force
mcp-vector-search index reindex path/to/file.py
```
### Auto-Index Strategies
```bash
mcp-vector-search auto-index setup --method all
mcp-vector-search auto-index status
mcp-vector-search auto-index check --auto-reindex --max-files 10
mcp-vector-search auto-index teardown --method all
```
### Search
```bash
mcp-vector-search search "error handling patterns"
mcp-vector-search search "vector store initialization"
```
### Status + Doctor
```bash
mcp-vector-search status
mcp-vector-search doctor
```
## MCP Integration Pattern
`setup` uses native `claude mcp add` when available, otherwise falls back to `.mcp.json`.
Typical `.mcp.json` entry:
```json
{
"mcpServers": {
"mcp-vector-search": {
"type": "stdio",
"command": "uv",
"args": ["run", "mcp-vector-search", "mcp"],
"env": {
"MCP_ENABLE_FILE_WATCHING": "true"
}
}
}
}
```
## Reindex Triggers
- Dependency updates or parser changes
- Large refactors
- Adding new languages or file extensions
- Tool upgrades (version tracking triggers reindex)
## Local Patterns
- Use `uv` for dev installs: `uv sync --dev`
- Use `setup --force` to rebuild config + index after tool upgrades
- Keep file watching on via `MCP_ENABLE_FILE_WATCHING=true`
## Related Skills
- `toolchains/ai/protocols/model-context`
- `universal/main/model-context-builder`
© Claude MPM Team · MIT · bobmatnyc/claude-mpm-skills