cloudflare-vectorize

cloudflare-vectorize is a skill for Claude Code from secondsky/claude-skills. It costs 37 tokens per session (3,201 once invoked), scanned A, original, MIT.

A guide for Cloudflare Vectorize, a vector database that finds similar pieces of information by meaning rather than exact words. It covers RAG, a method where an AI retrieves relevant documents before generating an answer.

In plain words
What is it for?
Use it to manage vector indexes, store and search embeddings, filter results, process documents, and connect searches to Cloudflare Workers AI or OpenAI embeddings.
Why use it?
It helps avoid common setup and query mistakes when building semantic search or document-aware AI features. It also explains how embeddings, metadata filters, and indexes fit together.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloudflare-vectorize plugin — 1 skill shipped together

Good fit Use it to manage vector indexes, store and search embeddings, filter results, process documents, and connect searches to Cloudflare Workers AI or OpenAI embeddings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/secondsky/claude-skills/cloudflare-vectorize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add secondsky/claude-skills --skill cloudflare-vectorize
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install cloudflare-vectorize, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-vectorize

README.md
[![agentmods](https://agentmods.dev/badge/skills/secondsky/claude-skills/cloudflare-vectorize/github.svg)](https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-vectorize)
Your own site
<a href="https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-vectorize"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/cloudflare-vectorize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloudflare-vectorize

Your own site · 80×15
<a href="https://agentmods.dev/skills/secondsky/claude-skills/cloudflare-vectorize"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/cloudflare-vectorize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.03201
Opus 5.5 $0.00015 $0.01280
Sonnet 5.5 $0.00007 $0.00640
Haiku 4.5 $0.00004 $0.00320

Measured 1mo ago against content hash 3242fef7cb64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloudflare-vectorize scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (templates/basic-search.ts, templates/document-ingestion.ts, templates/metadata-filtering.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(request: Request, env: Env): Promise<Response> {
plugins/cloudflare-vectorize/skills/cloudflare-vectorize/SKILL.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Vectorize

Complete implementation guide for Cloudflare Vectorize - a globally distributed vector database for building semantic search, RAG (Retrieval Augmented Generation), and AI-powered applications with Cloudflare Workers.

Status: Production Ready ✅ Last Updated: 2025-11-21 Dependencies: cloudflare-worker-base (for Worker setup), cloudflare-workers-ai (for embeddings) Latest Versions: [email protected], @cloudflare/[email protected] Token Savings: ~65% Errors Prevented: 8 Dev Time Saved: ~3 hours

What This Skill Provides

Core Capabilities

  • ✅ Index Management: Create, configure, and manage vector indexes
  • ✅ Vector Operations: Insert, upsert, query, delete, and list vectors
  • ✅ Metadata Filtering: Advanced filtering with 10 metadata indexes per index
  • ✅ Semantic Search: Find similar vectors using cosine, euclidean, or dot-product metrics
  • ✅ RAG Patterns: Complete retrieval-augmented generation workflows
  • ✅ Workers AI Integration: Native embedding generation with @cf/baai/bge-base-en-v1.5
  • ✅ OpenAI Integration: Support for text-embedding-3-small/large models
  • ✅ Document Processing: Text chunking and batch ingestion pipelines

Templates Included

  1. basic-search.ts - Simple vector search with Workers AI
  2. rag-chat.ts - Full RAG chatbot with context retrieval
  3. document-ingestion.ts - Document chunking and embedding pipeline
  4. metadata-filtering.ts - Advanced filtering examples

Critical Setup Rules

⚠️ MUST DO BEFORE INSERTING VECTORS

# 1. Create the index with FIXED dimensions and metric
bunx wrangler vectorize create my-index \
  --dimensions=768 \
  --metric=cosine

# 2. Create metadata indexes IMMEDIATELY (before inserting vectors!)
bunx wrangler vectorize create-metadata-index my-index \
  --property-name=category \
  --type=string

bunx wrangler vectorize create-metadata-index my-index \
  --property-name=timestamp \
  --type=number

Read the full file on GitHub · 414 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 414 lines · 37 tokens per session scan A 3242fef7cb64

Subscribe to this mod's changes

cloudflare-vectorize is a skill published in the GitHub repository secondsky/claude-skills (231 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 3,201 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories