[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MNA81KFV85MD498CM5812P":3,"skill-same:01M6MNA81KFV85MD498CM5812P":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6MNA81KFV85MD498CM5812P","sqlite-storage",null,"Use when a val needs to store structured or relational data. Covers the std\u002Fsqlite API, parameterized queries, transactions, and the val-scoped vs organization-scoped database distinction.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fval-town\u002Fplugins\u002Fskills\u002Fsqlite-storage\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"sqlite storage","sqlite","storage","migration","when","scoped","store","relational","structured","organization","query","queries","use","table","transactions","api","data","persistence","database","sql","2026-11-10 10:12:30",false,"---\nname: sqlite-storage\ndescription: Use when a val needs to store structured or relational data. Covers the std\u002Fsqlite API, parameterized queries, transactions, and the val-scoped vs organization-scoped database distinction.\ntriggers: [sqlite, database, sql, persistence, storage, table, query, migration]\n---\n\n# SQLite Storage\n\nVal Town provides built-in SQLite via the `std\u002Fsqlite` module. Reach for it whenever a val needs relational or structured persistent data. For simple key\u002Fvalue data, prefer `std\u002Fblob` instead.\n\n## Basic usage\n\n```ts\nimport { sqlite } from \"https:\u002F\u002Fesm.town\u002Fv\u002Fstd\u002Fsqlite\u002Fmain.ts\";\n\nawait sqlite.execute(`CREATE TABLE IF NOT EXISTS users (\n  id INTEGER PRIMARY KEY,\n  name TEXT NOT NULL,\n  email TEXT UNIQUE\n)`);\n\nawait sqlite.execute({\n  sql: \"INSERT INTO users (name, email) VALUES (?, ?)\",\n  args: [\"Alice\", \"alice@example.com\"],\n});\n\nconst result = await sqlite.execute(\"SELECT * FROM users\");\n\u002F\u002F result.rows = [{ id: 1, name: \"Alice\", email: \"alice@example.com\" }]\n```\n\n## Transactions\n\nUse `sqlite.batch` for atomic multi-statement transactions — all succeed or all roll back:\n\n```ts\nawait sqlite.batch([\n  { sql: \"INSERT INTO users (name, email) VALUES (?, ?)\", args: [\"Bob\", \"bob@example.com\"] },\n  { sql: \"UPDATE users SET name = ? WHERE id = ?\", args: [\"Robert\", 2] },\n]);\n```\n\n## Per-val vs organization databases\n\nThe import path determines which database you get. Both expose the same `@libsql\u002Fclient` API (`execute`, `batch`) and return rows as keyed objects (`Record\u003Cstring, unknown>[]`):\n\n- `std\u002Fsqlite\u002Fmain.ts` — **val-scoped** database, isolated to this val. The default for new vals, and what you almost always want.\n- `std\u002Fsqlite\u002Fglobal.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.)\n\nDo not switch an existing val between these import paths — it changes which database the val reads and writes.\n\n## Querying org-owned vals via tools\n\nWhen using the `sqlite_execute` or `sqlite_batch` tools to query a val owned by an organization (not your personal account), pass the org handle as the `org` parameter so the call hits the right database. Example: `{ sql: \"SELECT * FROM users\", org: \"some-org\" }`. This only matters for the tool calls — code inside the val itself reads from its own database automatically.\n\n## Rules\n\n- Always use parameterized queries (the `args` field) for any value derived from user input. Never interpolate strings into SQL.\n- Use `CREATE TABLE IF NOT EXISTS` so schema setup is idempotent across val restarts.\n- Schema migrations: add new columns with `ALTER TABLE ... ADD COLUMN`. Wrap in `try\u002Fcatch` if the migration may run against an already-updated table.\n\n## Reference\n\nFull API docs: https:\u002F\u002Fdocs.val.town\u002Freference\u002Fstd\u002Fsqlite\u002Fusage\u002F\n","# SQLite Storage\n\nVal Town provides built-in SQLite via the `std\u002Fsqlite` module. Reach for it whenever a val needs relational or structured persistent data. For simple key\u002Fvalue data, prefer `std\u002Fblob` instead.\n\n## Basic usage\n\n```ts\nimport { sqlite } from \"https:\u002F\u002Fesm.town\u002Fv\u002Fstd\u002Fsqlite\u002Fmain.ts\";\n\nawait sqlite.execute(`CREATE TABLE IF NOT EXISTS users (\n  id INTEGER PRIMARY KEY,\n  name TEXT NOT NULL,\n  email TEXT UNIQUE\n)`);\n\nawait sqlite.execute({\n  sql: \"INSERT INTO users (name, email) VALUES (?, ?)\",\n  args: [\"Alice\", \"alice@example.com\"],\n});\n\nconst result = await sqlite.execute(\"SELECT * FROM users\");\n\u002F\u002F result.rows = [{ id: 1, name: \"Alice\", email: \"alice@example.com\" }]\n```\n\n## Transactions\n\nUse `sqlite.batch` for atomic multi-statement transactions — all succeed or all roll back:\n\n```ts\nawait sqlite.batch([\n  { sql: \"INSERT INTO users (name, email) VALUES (?, ?)\", args: [\"Bob\", \"bob@example.com\"] },\n  { sql: \"UPDATE users SET name = ? WHERE id = ?\", args: [\"Robert\", 2] },\n]);\n```\n\n## Per-val vs organization databases\n\nThe import path determines which database you get. Both expose the same `@libsql\u002Fclient` API (`execute`, `batch`) and return rows as keyed objects (`Record\u003Cstring, unknown>[]`):\n\n- `std\u002Fsqlite\u002Fmain.ts` — **val-scoped** database, isolated to this val. The default for new vals, and what you almost always want.\n- `std\u002Fsqlite\u002Fglobal.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.)\n\nDo not switch an existing val between these import paths — it changes which database the val reads and writes.\n\n## Querying org-owned vals via tools\n\nWhen using the `sqlite_execute` or `sqlite_batch` tools to query a val owned by an organization (not your personal account), pass the org handle as the `org` parameter so the call hits the right database. Example: `{ sql: \"SELECT * FROM users\", org: \"some-org\" }`. This only matters for the tool calls — code inside the val itself reads from its own database automatically.\n\n## Rules\n\n- Always use parameterized queries (the `args` field) for any value derived from user input. Never interpolate strings into SQL.\n- Use `CREATE TABLE IF NOT EXISTS` so schema setup is idempotent across val restarts.\n- Schema migrations: add new columns with `ALTER TABLE ... ADD COLUMN`. Wrap in `try\u002Fcatch` if the migration may run against an already-updated table.\n\n## Reference\n\nFull API docs: https:\u002F\u002Fdocs.val.town\u002Freference\u002Fstd\u002Fsqlite\u002Fusage\u002F\n",{"name":5,"triggers":49,"description":7},[25,42,43,41,26,37,34,27],"main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002Fval-town\u002Fplugins\u002Fskills\u002Fsqlite-storage",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill sqlite-storage",{"tool":66,"command":67},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill sqlite-storage",{"tool":69,"command":70},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill sqlite-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fval-town\u002Fplugins\u002Fskills\u002Fsqlite-storage\u002FSKILL.md",true,[],[75,85,93,101,109,117],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":84},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":84},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":84},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":84},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":84},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]