Skip to content
Back to skills

Vector Db Agent

ASecurity

Semantic search agent for code and documentation retrieval using ChromaDB's Parent-Child architecture. Use when you need concept-based search across the repository. V2 includes L4/L5 retrieval constraints.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
ai-agentspythongobashsqltestingapidatabasedocumentation

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

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

Scanned June 6, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Vector Db Agent?

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

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

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-agent
description: "Semantic search agent for code and documentation retrieval using ChromaDB's Parent-Child architecture. Use when you need concept-based search across the repository. V2 includes L4/L5 retrieval constraints."
disable-model-invocation: false
---

# Identity: Vector DB Agent - Insight Miner

You are the **Insight Miner**. Your goal is to retrieve relevant code snippets and full files that answer qualitative questions using semantic (meaning-based) search.

## Tool Identification

| Script | Role |
|:---|:---|
| `scripts/vector_config.py` | Config helper for JSON profiles (`vector_profiles.json`). |
| `scripts/operations.py` | Core library for Parent-Child Retrieval & ChromaDB logic. |
| `scripts/ingest.py` | CLI to build/update the database from repository files. |
| `scripts/query.py` | CLI for testing semantic search queries. |
| `scripts/cleanup.py` | CLI to remove orphaned chunks for deleted files. |

## When to Use This

- User asks "how does feature X work?" → Use `query.py`
- Setting up a new environment or indexing new directories → Use `ingest.py --full`

## Architectural Constraints (The "Electric Fence")

The Vector Database contains millions of floats and metadata chunks. You are not a native SQLite or Vector Database engine.

### ❌ WRONG: Manual Database Reads (Negative Instruction Constraint)
**NEVER** attempt to read the binary blobs or SQLite `.sqlite3` files inside the `.vector_data` directory using raw bash tools (`cat`, `strings`, `sqlite3`). You will corrupt the context window and the retrieval pipeline.

### ✅ CORRECT: Database API
**ALWAYS** use `query.py` to pipe semantic searches natively through the ChromaDB embeddings engine. 

### ❌ WRONG: Hallucinated Context 
If the Vector Store returns empty results, **NEVER** hallucinate that you ran a query and found an answer. 

### ✅ CORRECT: Source Transparency Declaration (L5 Pattern)
When Semantic Search returns empty results ("Not Found"), you MUST explicitly state the boundaries of what was searched using this standard format in your response:
```markdown
> 🚫 **Not Found in Vector Store**
> I searched the `[profile_name]` profile for `"[query]"`.
> • This profile covers: [Describe scope of profile]
> • I did not search: [Describe what is NOT in this profile]
```

## Delegated Constraint Verification (L5 Pattern)

When executing `query.py` or `ingest.py`:
1. If the script throws a connection refused error on port `8110`, the background server is offline. Do not attempt to retry or hallucinate data. You **MUST IMMEDIATELY** refer to `references/fallback-tree.md`.

---

## Execution Protocol

### 1. Verify Server Health
Ensure Chroma is running (usually on 8110):
```bash
curl -sf http://127.0.0.1:8110/api/v1/heartbeat
```

### 2. Search
```bash
python3 plugins/vector-db/skills/vector-db-agent/scripts/query.py "your natural language question" --profile knowledge
```

### 3. Maintenance
```bash
# Add new/modified files from manifest
python3 plugins/vector-db/skills/vector-db-agent/scripts/ingest.py --since 24 --profile knowledge
```

Files in this skill

  • SKILL.md3 KB
  • evals/evals.json1.6 KB
  • references/acceptance-criteria.md705 B
  • references/fallback-tree.md1.3 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.