semantic-search

Search Python code and production data by semantic meaning using pgvector and OpenAI embeddings.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cncorp/arsenal --skill semantic-search-cncorp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-search
Source: https://github.com/cncorp/arsenal/tree/main/dot-claude/skills/semantic-search
Command: npx skills add https://github.com/cncorp/arsenal --skill semantic-search-cncorp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Semantic search uses vector embeddings to locate code and production data by meaning, enabling developers to find functions, classes, and relevant messages quickly.

Core Features & Use Cases

  • Code search: semantic search for Python code via the code-search CLI.
  • Production data search: find messages and facts semantically in production data.
  • Docker-based deployment: self-contained deployment with pgvector-backed Postgres.

Quick Start

  1. Install Docker and Docker Compose, configure OPENAI_API_KEY in superpowers/.env
  2. Run docker-compose up -d to start the services
  3. Index your codebase and use code-search find to locate relevant code or data

Frequently Asked Questions about semantic-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search code by meaning instead of exact keywords?

Semantic search uses vector embeddings to find code by meaning rather than text matching. It analyzes Python functions, classes, and code elements through AST extraction, generates embeddings via OpenAI, and retrieves matches by semantic similarity in pgvector-backed PostgreSQL, enabling discovery of functionally related code you'd miss with keyword search.

Can I use semantic search to find messages in production data?

Yes. Beyond code search, semantic search applies to production messages and facts. Index your data into PostgreSQL with pgvector embeddings, then query semantically to retrieve records by meaning—useful for log analysis, event correlation, and fact discovery without exact text matching.

What do I need to set up semantic search with Docker?

Install Docker and Docker Compose, configure your OPENAI_API_KEY in superpowers/.env, then run docker-compose up -d to start PostgreSQL with pgvector and the indexing pipeline. The Dockerized environment handles embeddings generation and vector storage so you can immediately index and search code or data.

Does semantic search work with Python codebases?

Yes. Semantic search is built for Python code search via the code-search CLI. It extracts code elements using AST analysis, generates embeddings, and enables you to find functions, classes, and related code blocks by semantic meaning within Python projects.

What's the difference between semantic search and keyword-based code search?

Keyword search matches exact text or simple patterns; semantic search understands code intent and meaning. By converting code to vector embeddings, semantic search finds functionally similar code even when names and syntax differ, making it stronger for discovery and refactoring tasks.

Can I index my entire codebase at once?

Yes. The Docker-based pipeline supports full codebase indexing. Run the indexing process to extract all Python code elements via AST, generate embeddings for each, and store them in pgvector. Once indexed, use code-search find to query the entire codebase semantically.