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.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentspythonbashsqlapidocumentation

Works with

  • api

Security analysis

A100/100

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

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --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-agent-plugins-skills/badge)](https://www.skillsdirectory.com/skills/richfrem-vector-db-search-agent-plugins-skills)

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
plugin: agent-memory
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
---

# Vector DB Search (`vector-db-search`)

Semantic concept-based search against ChromaDB using Parent-Child chunk retrieval for Phase 2 of the 3-phase search protocol (RLM -> Vector -> Grep).

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Profile Sovereignty**: The `--profile` parameter is mandatory to ensure queries target the correct collection and embedding space.
2. **API Integrity**: Never read SQLite or Parquet backing files directly. Queries must execute through `scripts/query.py`.
3. **Search Protocol Placement**: Use as Phase 2 when RLM summaries return insufficient detail, before falling back to raw regex grep.

## Quick start

Execute a natural-language semantic query against the default profile:

```bash
python3 scripts/query.py "how does session memory persist" --profile wiki --limit 5
```

## Workflow

1. **Identify Target Profile**: Verify configured profile collections (`wiki`, `codebase`) in `.agent/learning/vector_profiles.json`.
2. **Execute Query**: Run `scripts/query.py` with the natural language query, specifying `--profile` and result limit.
3. **Ingest Parent Chunks**: Extract returned high-context parent chunks (up to 2,000 chars) for downstream reasoning.
4. **Transparent Reporting**: If no results match, report the exact profile and query string evaluated before falling back to grep.

## Verification

Verify ChromaDB index responsiveness and consistency:

```bash
python3 scripts/vector_consistency_check.py --profile wiki
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Retrieval accuracy criteria and ranking constraints.
- [cheapest_models.md](references/cheapest_models.md) — Embedding model tiers and pricing guidance.
- [fallback-tree.md](references/fallback-tree.md) — Fallback protocol when vector collections are unavailable or return zero hits.

Files in this skill

  • SKILL.md2.1 KB
  • acceptance-criteria.md713 B
  • assets/resources/architecture_sequence.mmd53 B
  • assets/resources/deployment_model.mmd48 B
  • assets/resources/rag_design_choices.md50 B
  • assets/resources/stabilizers/README.md53 B
  • assets/resources/stabilizers/vector_consistency_check.md71 B
  • evals/evals.json1 KB
  • evals/results.tsv301 B
  • fallback-tree.md1.4 KB
  • references/acceptance-criteria.md42 B
  • references/cheapest_models.json40 B
  • references/cheapest_models.md38 B
  • references/fallback-tree.md36 B
  • references/logic.mmd29 B
  • references/unpacking.mmd33 B
  • references/workflow.mmd32 B
  • requirements.in21 B
  • requirements.txt22 B
  • scripts/ingest.py26 B

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.