Download for MacApple silicon, macOS 14+
Skill

sqlite-storage

@val-town Updated 2026-10-13

Use when a val needs to store structured or relational data. Covers the std/sqlite API, parameterized queries, transactions, and the val-scoped vs organization-scoped database distinction.

Install

With your agent

Install OMGSkills skill "val-town/plugins:plugin/skills/sqlite-storage" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/val-town/plugins /tmp/plugins && ln -s /tmp/plugins/plugin/skills/sqlite-storage ~/.claude/skills/sqlite-storage

From README

SQLite Storage Val Town provides built-in SQLite via the std/sqlite module. Reach for it whenever a val needs relational or structured persistent data. For simple key/value data, prefer std/blob instead. Basic Transactions Use sqlite.batch for atomic multi-statement transactions — all succeed or all roll back: Per-val vs organization databases The import path determines which database you get. Both expose the same @libsql/client API (execute, batch) and return rows as keyed objects (Record []): std/sqlite/main.ts — val-scoped database, isolated to this val. The default for new vals, and what you almost always want. std/sqlite/global.ts — organization-scoped database, shared across every val owned by the same account. (Your personal account counts as its own organization here, so this database is shared across all of your vals.) Do not switch an existing val between these import paths — it changes which database the val reads and writes.