sql-manything

Indexes source code into SQLite and extracts snippets via SQL+FTS5 searches.

66|2|Updated May 25, 2026
One-click install
npx skills add https://github.com/IOchair/SQL-ManyThing --skill sql-manything
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-manything
Source: https://github.com/IOchair/SQL-ManyThing/tree/main
Command: npx skills add https://github.com/IOchair/SQL-ManyThing --skill sql-manything

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides an advanced source code search, tracing, and analysis system. It allows users to index source code, perform complex queries using SQL, and track past queries for reuse.

Core Features & Use Cases

  • Source Code Indexing: Indexes source code into a SQLite database for fast search.
  • Advanced Queries: Perform complex queries using SQL to find files, extract code snippets, and analyze dependencies.
  • Query Tracing: Tracks and logs all queries for future reference and reuse.
  • Use Case: Imagine you need to find all occurrences of a particular function across a large codebase. Use this Skill to index the code, then write a SQL query to find and extract the function bodies.

Quick Start

Use the sql-manything skill to index your codebase located at /path/to/project. Then, run the query 'SELECT f.path, rank FROM files_fts, files f WHERE files_fts MATCH 'function_name' AND files_fts.rowid = f.id ORDER BY rank LIMIT 10;' to find and list the paths of files containing the specified function.

Frequently Asked Questions about sql-manything

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

FAQPage Schema
How do I search and extract source code snippets using SQL?

You can search and extract source code snippets using SQL by indexing the codebase into an SQLite database and executing queries with an FTS5 trigram tokenizer to find specific files and function bodies.

What is the best way to trace and reuse source code queries for debugging?

Tracing and reusing source code queries for debugging is done by logging all executed SQL queries during codebase analysis, allowing you to track and rerun past searches for future reference.

Can I use SQLite to analyze codebase dependencies across multiple files?

Yes, you can use SQLite to analyze codebase dependencies by indexing the source code and performing complex SQL queries to find files and extract specific code snippets.

Do I need an FTS5 trigram tokenizer to index source code for codebase exploration?

Yes, an FTS5 trigram tokenizer is required for the SQLite index to perform A* search and effectively extract specific code snippets during codebase exploration.

How do I index a large codebase to find all occurrences of a specific function?

To find all occurrences of a specific function, index your project directory into the SQLite database and run a SQL query matching the function name against the indexed files to list the file paths.

Does sql-manything require additional Python scripts for codebase analysis?

sql-manything optionally uses Python scripts for additional data enrichment during source code indexing and codebase analysis, though the core SQL search functions independently.