sqlite-to-fast-sql

sqlite-to-fast-sql is a skill for Claude Code from Cap-go/capgo-skills. It costs 206 tokens per session (2,536 once invoked), scanned A, original, MIT.

A migration guide for replacing SQLite and SQL-based Capacitor plugins with @capgo/capacitor-fast-sql, a plugin for using SQL storage in a Capacitor app.

In plain words
What is it for?
It helps migrate bridge-based SQL plugins, add encryption, preserve transactions, and move key-value storage to Fast SQL.
Why use it?
It helps preserve database behavior while changing the native storage plugin, including transactions, encryption, and key-value data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the capacitor-app-migrations plugin — 8 skills shipped together

Good fit It helps migrate bridge-based SQL plugins, add encryption, preserve transactions, and move key-value storage to Fast SQL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cap-go/capgo-skills/sqlite-to-fast-sql
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cap-go/capgo-skills --skill sqlite-to-fast-sql
Clone the repo
git clone --depth 1 https://github.com/Cap-go/capgo-skills

Made for: Claude Code.

Or install capacitor-app-migrations, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sqlite-to-fast-sql

README.md
[![agentmods](https://agentmods.dev/badge/skills/cap-go/capgo-skills/sqlite-to-fast-sql/github.svg)](https://agentmods.dev/skills/cap-go/capgo-skills/sqlite-to-fast-sql)
Your own site
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/sqlite-to-fast-sql"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/sqlite-to-fast-sql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sqlite-to-fast-sql

Your own site · 80×15
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/sqlite-to-fast-sql"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/sqlite-to-fast-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,536 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00206 $0.02536
Opus 5.5 $0.00082 $0.01014
Sonnet 5.5 $0.00041 $0.00507
Haiku 4.5 $0.00021 $0.00254

Measured 14d ago against content hash 2aa8e2eb5efb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sqlite-to-fast-sql scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/capacitor-app-migrations/skills/sqlite-to-fast-sql/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SQLite to Fast SQL Migration

Swap a bridge-based SQL plugin for @capgo/capacitor-fast-sql without losing user data.

When to Use

TRIGGER when:

  • package.json has @capacitor-community/sqlite, cordova-sqlite-storage, @capawesome-team/capacitor-sqlite, an ORM capacitor driver, or another SQLite plugin, and the user wants Fast SQL.
  • Large SELECTs or sync writes are slow because every row crosses the Capacitor bridge as JSON.
  • The app needs encryption, transactions, batch writes, BLOBs, or an encrypted key-value store.

Do not use for:

  • @capacitor/preferences or IndexedDB-only apps -> capacitor-offline-first.
  • @ionic-enterprise/secure-storage / Identity Vault -> ionic-enterprise-sdk-migration.
  • Apps already on Fast SQL needing schema design or sync logic -> capacitor-offline-first.

Live Project Snapshot

Detected SQL-related packages: !node -e "const fs=require('fs');if(!fs.existsSync('package.json'))process.exit(0);const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));const needles=['sqlite','sqlcipher','typeorm','watermelondb','pouchdb','@capacitor-community/sqlite','@capawesome-team/capacitor-sqlite','@capgo/capacitor-fast-sql'];const out=[];for(const section of ['dependencies','devDependencies']){for(const [name,version] of Object.entries(pkg[section]||{})){if(needles.some((needle)=>name.includes(needle)))out.push(section+'.'+name+'='+version)}}console.log(out.sort().join('\n'))"

How Fast SQL Differs

  • Native SQLite is reached through a token-protected HTTP server on localhost, not the Capacitor bridge, so big result sets and batches avoid bridge serialization. This is why iOS ATS and Android cleartext config are required.
  • Plugin major follows Capacitor major (v8 for Capacitor 8). Current: 8.2.x.
  • Database files: iOS Documents/<database>.db, Android <filesDir>/<database>.db. Other plugins use different paths and names, so existing data is not picked up automatically.
  • Web: official @sqlite.org/sqlite-wasm with OPFS persistence (bundled dependency, no sql.js install). Older versions used sql.js + IndexedDB; that data is not migrated automatically.
  • Encryption: SQLCipher, opt-in per platform.

Read the full file on GitHub · 148 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +44 lines · +131 tokens per session 2aa8e2eb5efb
  2. 1mo ago First seen · 104 lines · 75 tokens per session scan A ab6e0711bfa6

Subscribe to this mod's changes

sqlite-to-fast-sql is a skill published in the GitHub repository Cap-go/capgo-skills (73 stars, last pushed 7d ago), licensed MIT. It adds 206 tokens to every session and 2,536 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

basin

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.

cloudflare/skills · 66 tokens

coverage-tracker

Run a Google Alerts-style keyword coverage tracker. Uses news-search for recent keyword queries, lets the LLM dedupe and classify real features versus junk, stores decisions in SQLite, and alerts only on new real coverage.

elvisun/newsjack · 47 tokens

k2

Build and troubleshoot Cloudflare K2 or K2 Streams durable logs. Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.

cloudflare/skills · 38 tokens

journalist-fit-check

Gate a pitch against one journalist at a time. Runs the pair through proven media-relations checks (last-10-bylines audit, 90-day topic sweep, beat-vs-angle-vs-one-off, the 5 forms of journalism, source-mirror, stated-preferences, database triangulation) and returns fit, soft-fit, no-fit, or unknown with a real recent…

elvisun/newsjack · 88 tokens

warehouse-init

Initialize warehouse schema discovery. Generates .astro/warehouse.md with all table metadata for instant lookups. Run once per project, refresh when schema changes. Use when user says "/astronomer-data:warehouse-init" or asks to set up data discovery.

astronomer/agents · 54 tokens

analyzing-data

Queries the data warehouse with SQL and answers business questions about data. Use when answering anything that needs warehouse data - counts, metrics, trends, aggregations, joins across tables, data lookups, or ad-hoc SQL analysis (for example "who uses X", "how many Y", "show me Z", "find customers", "what is the…

astronomer/agents · 78 tokens