plugins/cloudflare/skills/vectorize/SKILL.md
Use this skill when the user asks about Cloudflare Vectorize, vector databases on Cloudflare, semantic search, RAG pipelines, embedding storage, or managing Vectorize with Pulumi.
npx skillsauth add nsheaps/ai-mktpl cloudflare-vectorizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Vectorize is Cloudflare's vector database for building semantic search, recommendation engines, and RAG (Retrieval-Augmented Generation) applications. It integrates natively with Workers AI for embedding generation.
export default {
async fetch(request: Request, env: Env): Promise<Response> {
// Generate embeddings with Workers AI
const embedding = await env.AI.run("@cf/baai/bge-base-en-v1.5", {
text: ["What is Cloudflare?"],
});
// Insert into Vectorize
await env.VECTORIZE.upsert([
{
id: "doc-1",
values: embedding.data[0],
metadata: { title: "About Cloudflare" },
},
]);
// Query
const results = await env.VECTORIZE.query(embedding.data[0], {
topK: 5,
returnMetadata: "all",
});
return Response.json(results);
},
};
[[vectorize]]
binding = "VECTORIZE"
index_name = "my-index"
# Create an index
npx wrangler vectorize create my-index --dimensions 768 --metric cosine
# Insert vectors
npx wrangler vectorize insert my-index --file vectors.ndjson
// Vectorize indexes are managed via wrangler CLI
// No dedicated Pulumi resource currently exists
// Use Pulumi's Command provider if automation is needed:
import * as command from "@pulumi/command";
const vectorizeIndex = new command.local.Command("vectorize-index", {
create: "npx wrangler vectorize create my-index --dimensions 768 --metric cosine",
delete: "npx wrangler vectorize delete my-index",
});
| Setting | Options | Description |
| ---------- | ------------------------------------ | -------------------------------------- |
| Dimensions | 1–1536 | Must match your embedding model output |
| Metric | cosine, euclidean, dot-product | Similarity metric |
| Resource | Free | Paid | | ------------------ | --------- | ------------- | | Queried dimensions | 30M/month | $0.01/M | | Stored dimensions | 5M | $0.05/M/month | | Indexes | 5 | 100 |
tools
Reference material for Claude Code internals — the on-disk layout under ~/.claude and project-scope .claude, the plugin cache, session-env propagation, and the full hook lifecycle. Auto-recall when working on Claude-Code-related tasks: writing or debugging hooks, authoring plugins, inspecting session state, troubleshooting why an env var is or isn't visible to a Bash tool call, or when paths under ~/.claude or ~/.claude/plugins/ come up.
development
Manage GitHub App installation tokens in Claude Code sessions. Use when tokens expire, auth errors occur in long-running sessions, or when setting up GitHub App credentials for agent teams. <example>my github token expired</example> <example>refresh the github app token</example> <example>check token status</example> <example>set up github app authentication for this session</example>
tools
Auto-detect project formatting tools and configure edit-utils settings
tools
Use this skill when the user asks about 1Password, secrets management, retrieving credentials, using op CLI, service accounts, secret references, vault operations, or any task involving the 1Password CLI (op). Also use when needing to inject secrets into environment variables, read passwords or API keys from 1Password, or manage 1Password items from the command line.