sqlite-local-storage

Store file metadata with FTS5 full-text and sqlite-vec vector search.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/StevenWXY/Project-Sibylla --skill sqlite-local-storage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlite-local-storage
Source: https://github.com/StevenWXY/Project-Sibylla/tree/main/.kilocode/skills/phase1/sqlite-local-storage
Command: npx skills add https://github.com/StevenWXY/Project-Sibylla --skill sqlite-local-storage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本地应用在离线和高吞吐场景中需要一个高性能、可扩展的本地数据库解决方案,以实现文件元数据的索引、快速检索和稳定的事务控制。

Core Features & Use Cases

  • 结构化元数据存储与快速查询:通过 files 表存储路径、修改时间、大小等元数据,支撑快速 UI 渲染和同步状态判断。
  • 全文与向量搜索能力:内置 FTS5 索引用于关键词搜索,支持 sqlite-vec 向量检索实现语义检索,提升查找准确度与可用性。
  • 稳定的并发与事务保障:WAL 模式促进并发读写,提供事务封装和批量操作的原子性,确保数据完整性。
  • 可进化的本地架构:具备数据库初始化、 schema 迁移、日志与对话历史持久化等能力,方便长期迭代。

Quick Start

在 Electron 应用中初始化本地 SQLite 存储、建立索引并开始使用文件索引与搜索。

Frequently Asked Questions about sqlite-local-storage

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

FAQPage Schema
How do I implement local SQLite storage with full-text search in an Electron app?

You can implement local SQLite storage with full-text search in an Electron app using better-sqlite3 and FTS5. This Skill provides a robust schema with indexed metadata, enabling fast keyword retrieval and transactional integrity for offline-first file management.

Does better-sqlite3 support vector search for semantic retrieval?

Yes, better-sqlite3 supports vector search when integrated with sqlite-vec. This Skill leverages sqlite-vec to enable semantic retrieval alongside FTS5 full-text search, allowing you to perform accurate similarity searches on local file metadata.

What is the best way to handle SQLite schema migrations in a desktop application?

The best way to handle SQLite schema migrations in a desktop application is using a system with built-in schema evolution and transactional integrity. This Skill provides reliable schema initialization and migration support for long-term iterative development.

How does WAL mode improve SQLite concurrency for local file indexing?

WAL mode improves SQLite concurrency by enabling simultaneous concurrent read and write operations. This Skill uses WAL mode to promote high-throughput local database operations, ensuring data integrity during batch indexing and background synchronization.

Can I use SQLite for offline-first data management in Electron?

Yes, you can use SQLite for offline-first data management in Electron. This Skill provides a local storage system designed specifically for desktop apps to manage file metadata, comments, tasks, and AI history with reliable transactional integrity.

How do I manage file metadata and AI chat history locally using SQLite?

You can manage file metadata and AI chat history locally using SQLite through structured tables and indexed schemas. This Skill stores paths and modification times in a files table while persisting logs and conversation history for reliable offline access.