a11y-ally
Use when running comprehensive WCAG accessibility audits with axe-core + pa11y + Lighthouse, generating context-aware…
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.
Claude Code
$ npx -y skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search --agent claude-code
Codex
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a codex -y
Cursor
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a cursor -y
Gemini CLI
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a gemini-cli -y
GitHub Copilot
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a github-copilot -y
OpenCode
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a opencode -y
Windsurf
$ npx skills add proffesor-for-testing/agentic-qe --skill agentdb-vector-search -a windsurf -y
name: "AgentDB Vector Search" description: "Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases."
Implements vector-based semantic search using AgentDB's high-performance vector database with **150x-12,500x faster** operations than traditional solutions. Features HNSW indexing, quantization, and sub-millisecond search (<100µs).
# Initialize with default dimensions (1536 for OpenAI ada-002) npx agentdb@3.3.0 init ./vectors.db # Custom dimensions for different embedding models npx agentdb@3.3.0 init ./vectors.db --dimension 768 # sentence-transformers npx agentdb@3.3.0 init ./vectors.db --dimension 384 # all-MiniLM-L6-v2 # Use preset configurations npx agentdb@3.3.0 init ./vectors.db --preset small # <10K vectors npx agentdb@3.3.0 init ./vectors.db --preset medium # 10K-100K vectors npx agentdb@3.3.0 init ./vectors.db --preset large # >100K vectors # In-memory database for testing npx agentdb@3.3.0 init ./vectors.db --in-memory
# Basic similarity search npx agentdb@3.3.0 query ./vectors.db "[0.1,0.2,0.3,...]" # Top-k results npx agentdb@3.3.0 query ./vectors.db "[0.1,0.2,0.3]" -k 10 # With similarity threshold (cosine similarity) npx agentdb@3.3.0 query ./vectors.db "0.1 0.2 0.3" -t 0.75 -m cosine # Different distance metrics npx agentdb@3.3.0 query ./vectors.db "[...]" -m euclidean # L2 distance npx agentdb@3.3.0 query ./vectors.db "[...]" -m dot # Dot product # JSON output for automation npx agentdb@3.3.0 query ./vectors.db "[...]" -f json -k 5 # Verbose output with distances npx agentdb@3.3.0 query ./vectors.db "[...]" -v
# Export vectors to JSON npx agentdb@3.3.0 export ./vectors.db ./backup.json # Import vectors from JSON npx agentdb@3.3.0 import ./backup.json # Get database statistics npx agentdb@3.3.0 stats ./vectors.db
import { createAgentDBAdapter, computeEmbedding } from 'agentic-flow/reasoningbank';
// Initialize with vector search optimizations
const adapter = await createAgentDBAdapter({
dbPath: '.agentdb/vectors.db',
enableLearning: false, // Vector search only
enableReasoning: true, // Enable semantic matching
quantizationType: 'binary', // 32x memory reduction
cacheSize: 1000, // Fast retrieval
});
// Store document with embedding
const text = "The quantum computer achieved 100 qubits";
const embedding = await computeEmbedding(text);
await adapter.insertPattern({
id: '',
type: 'document',
domain: 'technology',
pattern_data: JSON.stringify({
embedding,
text,
metadata: { category: "quantum", date: "2025-01-15" }
}),
confidence: 1.0,
usage_count: 0,
success_count: 0,
created_at: Date.now(),
last_used: Date.now(),
});
// Semantic search with MMR (Maximal Marginal Relevance)
const queryEmbedding = await computeEmbedding("quantum computing advances");
const results = await adapter.retrieveWithReasoning(queryEmbedding, {
domain: 'technology',
k: 10,
useMMR: true, // Diverse results
synthesizeContext: true, // Rich context
});// Store with automatic embedding
await db.storeWithEmbedding({
content: "Your document text",
metadata: { source: "docs", page: 42 }
});// Find similar documents
const similar = await db.findSimilar("quantum computing", {
limit: 5,
minScore: 0.75
});// Combine vector similarity with metadata filtering
const results = await db.hybridSearch({
query: "machine learning models",
filters: {
category: "research",
date: { $gte: "2024-01-01" }
},
limit: 20
});// Build RAG pipeline
async function ragQuery(question: string) {
// 1. Get relevant context
const context = await db.searchSimilar(
await embed(question),
{ limit: 5, threshold: 0.7 }
);
// 2. Generate answer with context
const prompt = `Context: ${context.map(c => c.text).join('\n')}
Question: ${question}`;
return await llm.generate(prompt);
}// Efficient batch storage
await db.batchStore(documents.map(doc => ({
text: doc.content,
embedding: doc.vector,
metadata: doc.meta
})));# Start AgentDB MCP server for Claude Code npx agentdb@3.3.0 mcp # Add to Claude Code (one-time setup) claude mcp add agentdb npx agentdb@3.3.0 mcp # Now use MCP tools in Claude Code: # - agentdb_query: Semantic vector search # - agentdb_store: Store documents with embeddings # - agentdb_stats: Database statistics
# Run comprehensive benchmarks npx agentdb@3.3.0 benchmark # Results: # ✅ Pattern Search: 150x faster (100µs vs 15ms) # ✅ Batch Insert: 500x faster (2ms vs 1s for 100 vectors) # ✅ Large-scale Query: 12,500x faster (8ms vs 100s at 1M vectors) # ✅ Memory Efficiency: 4-32x reduction with quantization
AgentDB provides multiple quantization strategies for memory efficiency:
const adapter = await createAgentDBAdapter({
quantizationType: 'binary', // 768-dim → 96 bytes
});const adapter = await createAgentDBAdapter({
quantizationType: 'scalar', // 768-dim → 768 bytes
});Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.
Use when running comprehensive WCAG accessibility audits with axe-core + pa11y + Lighthouse, generating context-aware…
WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification. Use when ensuring legal compliance…
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…
Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer,…
Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning,…
Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch…
Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…
Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…