Skip to content
Back to skills

Vector Store Skill

ASecurity

'PROTECTED: Vector store schema management. Changes require pre-modification

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill vector-store-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Store Skill?

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

Security grade badge for Vector Store Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-vector-store-skill/badge)](https://www.skillsdirectory.com/skills/majiayu000-vector-store-skill)

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-store-skill
description: 'PROTECTED: Vector store schema management. Changes require pre-modification
  checklist validation.'
---

---
name: vector-store
version: 1.0
last_updated: 2025-12-04
description: Vector store schema protection and migration management
license: MIT
priority: critical
triggers:
  - "vector store", "Pinecone", "Milvus", "Chroma", "FAISS", "schema"
dependencies:
  - docs/protected-schemas.md
  - templates/rag-checklist.md
---

# 🗄️ Vector Store SKILL

## Purpose

**PROTECTED:** Vector store schema management. Changes require pre-modification checklist validation.

---

## Supported Vector Stores

### 1. Pinecone (Cloud)

```python
import pinecone
from langchain_pinecone import PineconeVectorStore

pinecone.init(api_key="your-key")

index = pinecone.Index("rag-demo")
vector_store = PineconeVectorStore(index, embeddings)
```

**Schema:** `{dimension: 1536, metric: "cosine"}`

---

### 2. Milvus (Self-hosted/Cloud)

```python
from langchain_community.vectorstores import Milvus

vector_store = Milvus(
    embeddings,
    connection_args={"host": "localhost", "port": "19530"},
    collection_name="rag_demo",
    index_params={"metric_type": "IP", "index_type": "IVF_FLAT"}
)
```

---

### 3. Chroma (Local)

```python
from langchain_community.vectorstores import Chroma

vector_store = Chroma(
    collection_name="rag_demo",
    embedding_function=embeddings,
    persist_directory="./chroma_db"
)
```

---

### 4. FAISS (Local)

```python
from langchain_community.vectorstores import FAISS

vector_store = FAISS.from_documents(documents, embeddings)
vector_store.save_local("./faiss_index")
```

---

## Schema Protection Rules

**HALT before:**
1. Dimension change → Breaks all vectors
2. Metric change → Affects rankings

**CAUTION before:**
3. Metadata schema change → Migration needed

**See:** `templates/rag-checklist.md`

---

## Migration Playbook

### Scenario: Change Embedding Model

```bash
# 1. Backup
python scripts/export_vectors.py --output backup.json

# 2. Create new index
python scripts/create_index.py --dimension 3072

# 3. Re-embed documents
python scripts/reindex.py --model text-embedding-3-large

# 4. Switch app
export VECTOR_STORE_INDEX="rag-demo-v2"

# 5. Monitor
python scripts/monitor_quality.py

# 6. Delete old index (after 30 days)
```

**Full guide:** `docs/protected-schemas.md`

---

**Last Updated:** 2025-12-04
**Version:** 1.0
**Adapted from:** WHRESUME blog-protection-SKILL.md

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.