Skip to content
Back to skills

Vector Db Search

ASecurity

Semantic search skill for retrieving code and documentation from the ChromaDB vector store. Use when you need concept-based search across the repository (Phase 2 of the 3-phase search protocol). V2 includes L4/L5 retrieval constraints.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
ai-agentspythongobashsqlapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro scans all 20 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add richfrem/Project_Sanctuary --skill vector-db-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Db Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vector Db Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-vector-db-search/badge)](https://www.skillsdirectory.com/skills/richfrem-vector-db-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vector-db-search
description: "Semantic search skill for retrieving code and documentation from the ChromaDB vector store. Use when you need concept-based search across the repository (Phase 2 of the 3-phase search protocol). V2 includes L4/L5 retrieval constraints."
allowed-tools: Bash, Read
dependencies: ["pip:chromadb", "pip:frontmatter", "pip:langchain", "pip:langchain_chroma", "pip:langchain_classic", "pip:langchain_community", "pip:langchain_core", "pip:langchain_huggingface", "pip:langchain_text_splitters", "skill:vector-db-init"]
---
# Vector DB Search

Semantic (meaning-based) search against the ChromaDB vector store.
Use for Phase 2 of the 3-phase search protocol -- after the RLM Summary Ledger (Phase 1)
returns insufficient results.

## Scripts

| Script | Role |
|:-------|:-----|
| `scripts/query.py` | Semantic search -- CLI entry point |
| `scripts/operations.py` | Core Parent-Child retrieval library |
| `scripts/vector_config.py` | Profile config helper (`vector_profiles.json`) |
| `scripts/vector_consistency_check.py` | Integrity validation |

**Write operations** (ingest, cleanup) are handled by dedicated agents: `vdb-ingest`, `vdb-cleanup`.

## When to Use

- Phase 1 (RLM Summary Ledger) returned no match or insufficient detail
- User asks "how does X work?" / "find code that does Y"
- You need specific snippets, not just file-level summaries

## Execution Protocol

### 1. Verify ChromaDB is running

```bash
curl -sf http://127.0.0.1:8110/api/v1/heartbeat
```

If connection refused: run `vector-db-launch` skill (`plugins/vector-db/skills/vector-db-launch/SKILL.md`).
For first-time setup: run `vector-db-init` skill (`plugins/vector-db/skills/vector-db-init/scripts/init.py`).

### 2. Select Profile and Search

Profiles are **project-defined** in `vector_profiles.json` (see `vector-db-init` skill). Any number can exist. Discover what's available:

```bash
cat .agent/learning/vector_profiles.json
```

Common default is `knowledge` -- your project may define more (e.g. separate profiles for code vs docs). When topic is ambiguous, search all profiles.

```bash
python3 ./scripts/query.py \
  "your natural language question" --profile knowledge --limit 5
```

Results include ranked parent chunks with RLM Super-RAG context pre-injected.


## Architectural Constraints (Electric Fence)

### NEVER -- direct database reads
Do **not** `cat`, `strings`, or `sqlite3` the `.vector_data/` directory.
Binary blobs will corrupt your context window and the retrieval pipeline.

### ALWAYS -- use the API
All access goes through `query.py`. No exceptions.

### Source Transparency Declaration (L5 Pattern)
When search returns empty results, explicitly state:
```
> Not Found in Vector Store
> Searched profile: [profile_name] for "[query]"
> Profile covers: [scope]
> Not searched: [out-of-scope areas]
```

Files in this skill

  • SKILL.md2.8 KB
  • evals/evals.json1.6 KB
  • references/acceptance-criteria.md705 B
  • references/fallback-tree.md1.3 KB
  • references/logic.mmd942 B
  • references/unpacking.mmd559 B
  • references/workflow.mmd563 B
  • resources/architecture_sequence.mmd2.3 KB
  • resources/deployment_model.mmd2.2 KB
  • resources/rag_design_choices.md4.7 KB
  • resources/stabilizers/README.md7.3 KB
  • resources/stabilizers/vector_consistency_check.md22.7 KB
  • scripts/ingest.py6.6 KB
  • scripts/init.py5.4 KB
  • scripts/operations.py9.8 KB
  • scripts/query.py2.7 KB
  • scripts/requirements.in477 B
  • scripts/requirements.txt8 KB
  • scripts/vector_config.py6.8 KB
  • scripts/vector_consistency_check.py18.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.