Fast full-text search engine for your vault using SQLite FTS5 for instant results.

Install

mkdir -p .claude/skills/q && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11890" && unzip -o skill.zip -d .claude/skills/q && rm skill.zip

Installs to .claude/skills/q

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fast SQLite-based vault search using FTS5 full-text search index
64 charsno explicit “when” trigger
Beginner

Key capabilities

  • Perform full-text searches on vault content
  • Filter notes by type (e.g., ADR, Project, Task)
  • Search for notes by specific tags
  • Find recently modified notes within a specified period
  • Identify notes with no backlinks (orphans)
  • Retrieve backlinks for a given note

How it works

The skill executes SQLite queries against an FTS5 full-text search index to quickly retrieve relevant notes based on the provided search pattern.

Inputs & outputs

You give it
Search query with optional type, tag, or time filters
You get back
A list of matching notes with their paths and titles

When to use q

  • Search notes by keyword
  • Filter vault by type (ADR, Task, Project)
  • Search by tags
  • Find orphan notes

About this skill

/q - Quick SQLite Search

Fast vault search using the SQLite FTS5 index. Returns results in milliseconds instead of seconds.

Prerequisites

The SQLite index must be built first:

npm run vault:index

Usage Patterns

Full-text Search

/q architecture patterns
/q "event driven"        # Phrase search
/q kafka integration     # Multiple terms (AND)

Type Filter

/q type:Adr             # All ADRs
/q type:Project status:active
/q type:Task priority:high

Tag Search

/q tag:technology/aws
/q tag:project/your-project

Recent Notes

/q recent               # Modified in last 7 days
/q recent:30            # Modified in last 30 days

Backlinks

/q backlinks:"Project - Your Project"
/q backlinks:"System - Your System"

Orphans

/q orphans              # Notes with no backlinks

Implementation

Execute the appropriate SQLite query based on the search pattern.

Full-text Search Query

sqlite3 .data/vault.db -markdown "
SELECT n.path, snippet(fts_content,1,'→','←','...',40) as match
FROM fts_content
JOIN notes n ON fts_content.rowid = n.id
WHERE fts_content MATCH '<search_terms>'
ORDER BY rank
LIMIT 20
"

Type Filter Query

sqlite3 .data/vault.db -markdown "
SELECT path, title, status, priority
FROM notes
WHERE type = '<Type>'
ORDER BY modified DESC
LIMIT 20
"

Tag Search Query

sqlite3 .data/vault.db -markdown "
SELECT n.path, n.title, n.type
FROM notes n
JOIN tags t ON n.id = t.note_id
WHERE t.tag = '<tag>'
ORDER BY n.modified DESC
LIMIT 20
"

Recent Notes Query

sqlite3 .data/vault.db -markdown "
SELECT path, title, type, modified
FROM notes
WHERE modified >= date('now', '-<days> days')
ORDER BY modified DESC
LIMIT 30
"

Backlinks Query

sqlite3 .data/vault.db -markdown "
SELECT n.path, n.title, n.type
FROM notes n
JOIN links l ON n.id = l.source_id
WHERE l.target_path LIKE '%<note_name>%'
ORDER BY n.modified DESC
"

Orphans Query

sqlite3 .data/vault.db -markdown "
SELECT n.path, n.title, n.type
FROM notes n
LEFT JOIN links l ON n.id = l.target_id
WHERE l.target_id IS NULL
  AND n.type NOT IN ('DailyNote', 'MOC', 'Dashboard', 'Query')
ORDER BY n.modified DESC
"

Performance

Query TypeGrep/GlobSQLiteImprovement
Full-text5-15 sec0.01s~1000x
Type filter3-5 sec0.007s~500x
Tag search2-5 sec0.007s~500x
Backlinks10+ sec0.01s~1000x

Rebuilding the Index

The index should be rebuilt when vault content changes significantly:

npm run vault:index      # Full rebuild
npm run vault:stats      # View current statistics

Tips

  1. Combine filters: /q type:Adr status:proposed technology/aws
  2. Use phrases: /q "data platform" for exact matches
  3. Wildcards: SQLite FTS5 supports * wildcards: /q architect*
  4. Present results: Format output as markdown table for readability

When not to use it

  • When the SQLite index has not been built or is outdated
  • When searching for information outside the indexed vault

Prerequisites

SQLite index built via `npm run vault:index`

Limitations

  • The SQLite index must be built and kept up-to-date for accurate results.
  • Search is limited to the content indexed in the SQLite database.
  • Wildcard searches are supported by SQLite FTS5, but complex regex patterns are not explicitly mentioned.

How it compares

This approach uses a pre-built SQLite FTS5 index for near-instant search results, significantly faster than traditional grep/glob methods for large vaults.

Compared to similar skills

q side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
q (this skill)06moReviewBeginner
reconciliation305moNo flagsIntermediate
sql-queries185moNo flagsIntermediate
senior-data-engineer217moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

reconciliation

anthropics

Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.

30139

sql-queries

anthropics

Write correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.). Use when writing queries, optimizing slow SQL, translating between dialects, or building complex analytical queries with CTEs, window functions, or aggregations.

1888

senior-data-engineer

davila7

World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, or implementing data governance.

2179

dbt-transformation-patterns

wshobson

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

690

powerbi-modeling

github

Power BI semantic modeling assistant for building optimized data models. Use when working with Power BI semantic models, creating measures, designing star schemas, configuring relationships, implementing RLS, or optimizing model performance. Triggers on queries about DAX calculations, table relationships, dimension/fact table design, naming conventions, model documentation, cardinality, cross-filter direction, calculation groups, and data model best practices. Always connects to the active model first using power-bi-modeling MCP tools to understand the data structure before providing guidance.

1161

senior-data-scientist

davila7

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

952

Search skills

Search the agent skills registry