跳到正文
cccskills
免费在 GitHub 公开

turso-db

Install, configure, and work with Turso DB — an in-process SQLite-compatible relational database engine written in Rust. Use when the user needs to (1) install Turso DB, (2) create or query databases with the tursodb CLI shell, (3) use Turso from JavaScript/Node.js via @tursodatabase/database, (4) work with vector search or embeddings in Turso, (5) set up full-text search with FTS indexes, (6) configure transactions including MVCC concurrent transactions, (7) enable encryption at rest, or (8) use Change Data Capture (CDC) for audit logging.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(7)

  • SKILL.md3.7 KB
  • README.md840 B
  • references/advanced-features.md3.8 KB
  • references/full-text-search.md3.4 KB
  • references/javascript-api.md610 B
  • references/sql-reference.md2.9 KB
  • references/vector-search.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Turso DB

Turso is an in-process relational database engine aiming for full SQLite compatibility. Unlike client-server databases, it runs in your application's memory space with sub-microsecond read/write latencies.

Installation

# Via installer script
curl --proto '=https' --tlsv1.2 -LsSf \
  https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.sh | sh

# Via Homebrew
brew install turso

Quick Start

$ tursodb                        # transient in-memory database
$ tursodb mydata.db              # persistent database file
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, email TEXT);
INSERT INTO users VALUES (1, 'Alice', 'alice@example.com');
SELECT * FROM users;

Core SQL

Standard SQLite-compatible SQL. See references/sql-reference.md for full statement syntax (CREATE/ALTER/DROP TABLE, INSERT, SELECT, UPDATE, DELETE, transactions).

Key differences from SQLite:

  • No multi-process/multi-threading access
  • No savepoints, triggers, or vacuum
  • Views experimental (behind --experimental-views flag)
  • UTF-8 only

JavaScript API

Install and use from Node.js:

npm i @tursodatabase/database        # native
npm i @tursodatabase/database --cpu wasm32  # WASM
import { connect } from '@tursodatabase/database';
const db = await connect('turso.db');
const row = db.prepare('SELECT 1').get();

See references/javascript-api.md for details.

Vector Search

Store embeddings and perform similarity search using built-in vector functions.

CREATE TABLE docs (id INTEGER PRIMARY KEY, content TEXT, embedding BLOB);
INSERT INTO docs VALUES (1, 'ML basics', vector32('[0.2, 0.5, 0.1]'));

SELECT content, vector_distance_cos(embedding, vector32('[0.3, 0.4, 0.2]')) AS dist
FROM docs ORDER BY dist LIMIT 5;

Supports: vector32, vector64, vector32_sparse, vector8, vector1bit. Distance functions: vector_distance_cos, vector_distance_l2, vector_distance_dot, vector_distance_jaccard.

See references/vector-search.md for all vector types, functions, and examples.

Full-Text Search (Experimental)

Tantivy-powered FTS with BM25 scoring. Requires fts feature at compile time.

CREATE INDEX fts_idx ON articles USING fts (title, body)
WITH (weights = 'title=2.0,body=1.0');

SELECT title, fts_score(title, body, 'database') as score
FROM articles
WHERE fts_match(title, body, 'database')
ORDER BY score DESC LIMIT 10;

See references/full-text-search.md for tokenizers, query syntax, and highlighting.

Advanced Features

See references/advanced-features.md for:

  • Journal modes: WAL (default) and experimental MVCC (PRAGMA journal_mode = experimental_mvcc)
  • Encryption: AES-GCM / AEGIS cipher support with --experimental-encryption flag
  • CDC: Real-time change tracking via PRAGMA unstable_capture_data_changes_conn('full')
  • Index methods: Custom data access methods (experimental, --experimental-index-method)
  • C API: SQLite C API subset with Turso extensions

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when the user requests integration testing, feature validation, or test plan execution

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

anneal

免费

Use when the user wants to systematically fix AI code slop — duplicated logic, over-engineering, silent error swallowing, convention drift, cargo-cult patterns, and other LLM-introduced architectural decay — over a specified duration

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

Produce a researched long-form article from a topic prompt via an orchestrated pipeline - research agent (first-person sources, working-definition gate), narrative-architecture outline, writer/cold-reviewer loop with an explicit ACCEPT/REVISE verdict contract, then a catalog-deslop pass with a regression gate. The orchestrator dispatches subagents only; the writer never judges its own draft. Use when the user says "article factory", "write an article about X", "run the article pipeline", or asks for a researched long-form piece produced end-to-end. For essays and micro posts in the user's own voice without a research stage, use the prose skill instead.

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

Runs autonomous keep/discard experiments on a codebase to optimize a single metric for a fixed duration, in the style of karpathy/autoresearch. Use when the user says "autoresearch" (optionally with a focus, e.g. "autoresearch the optimizer"), asks to run experiments on a repo overnight, to hill-climb or optimize a metric autonomously, or points at a repo with a karpathy-style program.md.

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

Create custom modules for [Harbor Boost](https://github.com/av/harbor/tree/main/boost), an optimizing LLM proxy. Use when building Python modules that intercept/transform LLM chat completions—reasoning chains, prompt injection, structured outputs, artifacts, or custom workflows. Triggers on requests to create Boost modules, extend LLM behavior via proxy, or implement chat completion middleware.

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

bugbash

免费

Systematically explore and test any software project (CLI, API, Backend, Library, etc.) to find bugs, usability issues, and edge cases. Produces a structured report with full reproduction evidence (exact commands, inputs, logs, and tracebacks) for every issue.

中文简介正在准备中。当前显示原文说明。

av/skills202026年10月21日 更新

查看 av 的全部技能

报告此技能的问题