add-claude-context
БесплатноБез исполняемых скриптовНе проверен[DEPRECATED] Replaced by scripts/code_search.py (native sqlite-vec + Ollama). Do not use.
от sliamh11★ 50 звёзд на GitHubОб этом скилле
Add Claude Context (Semantic Code Search) -- DEPRECATED
This skill is deprecated. claude-context (Milvus-based) was evaluated and found to have never worked due to 5 cascading bugs (wrong config path, corrupt npx cache, wrong protocol, broken network isolation, short timeout). Milvus is also massive overkill for code search at any realistic codebase scale.
Replacement:
scripts/code_search.py-- native semantic code search using sqlite-vec + Ollama embeddings + RRF fusion, following thememory_tree.pypattern. No Docker, no Milvus, no external dependencies beyond Ollama.
The content below is preserved for historical reference only.
This skill adds semantic code search to Claude Code via the claude-context MCP server by Zilliz. Once installed, Claude can index any codebase and search it by meaning — not just keyword matching.
Tools added:
index_codebase— index a directory into the vector databasesearch_code— semantic search across indexed codeget_indexing_status— check indexing progressclear_index— remove an index
Privacy: All data stays local. Embeddings via Ollama, vectors in a network-isolated Docker Milvus container. No cloud APIs, no telemetry. See Security for the full defense-in-depth breakdown.
Phase 1: Pre-flight
Check if already configured
grep -q "claude-context" ~/.claude/mcp.json 2>/dev/null && echo "INSTALLED" || echo "NOT_INSTALLED"
If already installed, skip to Phase 5 (Verify).
Check prerequisites
Docker:
docker info > /dev/null 2>&1 && echo "Docker OK" || echo "Docker not running"
If Docker is not running, tell the user to start Docker Desktop (macOS) or the Docker daemon (Linux).
Ollama:
ollama list > /dev/null 2>&1 && echo "Ollama OK" || echo "Ollama not running"
If Ollama is not installed, direct the user to https://ollama.com/download.
Node.js version:
node --version
Must be >= 20 and < 24. Node 24 is incompatible with claude-context. If the version is wrong, tell the user which versions are supported.
Phase 2: Embedding Model
Detect available embedding models
ollama list 2>/dev/null | grep -i embed
Choose a model
If embedding models are found, ask the user which one to use via AskUserQuestion.
If no embedding models are found, suggest pulling one:
No embedding models found in Ollama. You need one for code search. Options:
- nomic-embed-text (768-dim, 274MB) — lightweight, recommended for most use cases
- mxbai-embed-large (1024-dim, 669MB) — higher quality embeddings
- snowflake-arctic-embed2 (1024-dim, 1.2GB) — multilingual support
Pull the chosen model:
ollama pull <model-name>
Detect embedding dimension
Get the dimension from a test embedding call — never hardcode this value:
curl -s http://127.0.0.1:11434/api/embed -d '{"model":"<model-name>","input":"test"}' | python3 -c "import sys,json; d=json.load(sys.stdin); print(len(d['embeddings'][0]))"
Store the model name and dimension for Phase 4.
Phase 3: Start Milvus
Check if Milvus is already running
docker ps --filter "name=deus-milvus" --format "{{.Status}}" 2>/dev/null
If deus-milvus is already running and healthy, skip to Phase 4:
docker exec deus-milvus curl -sf http://localhost:9091/healthz > /dev/null 2>&1 && echo "HEALTHY" || echo "NOT_HEALTHY"
Step 3a: Create config files
Create the Milvus config directory:
mkdir -p ~/.config/deus/milvus
Create ~/.config/deus/milvus/embedEtcd.yaml:
cat > ~/.config/deus/milvus/embedEtcd.yaml << 'EOF'
listen-client-urls: http://0.0.0.0:2379
advertise-client-urls: http://0.0.0.0:2379
quota-backend-bytes: 4294967296
auto-compaction-mode: revision
auto-compaction-retention: "1000"
EOF
Create ~/.config/deus/milvus/user.yaml (required mount, no overrides needed):
touch ~/.config/deus/milvus/user.yaml
Create ~/.config/deus/milvus/start-milvus.sh:
cat > ~/.config/deus/milvus/start-milvus.sh << 'SCRIPT'
#!/bin/bash
set -euo pipefail
CONTAINER=deus-milvus
INTERNAL_NET=deus-milvus-net
BRIDGE_NET=deus-milvus-bridge
# Create networks if missing
docker network create --internal "$INTERNAL_NET" 2>/dev/null || true
docker network create "$BRIDGE_NET" 2>/dev/null || true
# If container exists but stopped, remove it (clean restart with correct config)
if docker ps -a --format '{{.Names}}' 2>/dev/null | grep -q "^${CONTAINER}$"; then
if docker ps --format '{{.Names}}' 2>/dev/null | grep -q "^${CONTAINER}$"; then
echo "deus-milvus already running"
exit 0
fi
docker rm "$CONTAINER"
fi
# Start on bridge network (port publishing requires a non-internal network at creation time)
docker run -d --name "$CONTAINER" \
--network "$BRIDGE_NET" \
--restart no \
--security-opt seccomp:unconfined \
-e ETCD_USE_EMBED=t
Установить add-claude-context в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-claude-context?
[DEPRECATED] Replaced by scripts/code_search.py (native sqlite-vec + Ollama). Do not use.
Как установить скилл add-claude-context?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-claude-context запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic