Code Search

Index local codebases and perform hybrid vector+keyword semantic search with SQLite.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlite-vec, sentence-transformers, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to quickly find relevant code snippets within your projects using natural language queries, overcoming the limitations of traditional keyword-based search.

Core Features & Use Cases

  • Semantic Search: Understands the meaning behind your queries, not just keywords.
  • Hybrid Search: Combines vector similarity with keyword matching for accurate results.
  • Incremental Indexing: Efficiently updates the index as your codebase changes.
  • Use Case: Find all functions related to "user authentication" across your entire backend codebase, even if the exact phrase isn't used.

Quick Start

Use the code search skill to find code related to handling payment processing in the 'app/services' directory.

Frequently Asked Questions about Code Search

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

FAQPage Schema
How do I search my codebase semantically using natural language queries?

Semantic code search uses local embeddings to find relevant snippets based on query meaning. It indexes your local codebase in a SQLite database, overcoming traditional keyword search limitations by understanding intent.

Can I perform semantic code search on local repositories without sending data externally?

Yes, local repositories can be indexed securely without external data transfer. The process runs entirely on your machine utilizing local embeddings and the sqlite-vec extension to store and query vector data.

Does semantic code search work with Python, PHP, and TypeScript file types?

Semantic code search supports indexing and processing Python, PHP, TypeScript, JavaScript, and many other file types. It parses these languages to extract meaningful code structures for local embedding generation.

What's the best way to keep a large codebase index updated after committing changes?

Incremental indexing and background indexing efficiently update the database as your codebase changes. This ensures large repositories remain searchable without requiring full rebuilds after every commit.

How does hybrid vector and keyword search improve code navigation?

Hybrid search combines vector similarity with keyword matching to improve code navigation accuracy. This approach ensures you find functions related to concepts like 'user authentication' even when exact phrases are absent.

Do I need SQLite with the sqlite-vec extension to run local codebase indexing?

Yes, SQLite with the sqlite-vec extension and sentence-transformers are required dependencies. They provide the underlying local database storage and embedding generation capabilities needed for hybrid search functionality.