skills/sqlite-to-fast-sql/SKILL.md
Guides the agent through migrating SQLite and SQL-style Capacitor plugins to @capgo/capacitor-fast-sql. Use when replacing bridge-based SQL plugins, adding encryption, preserving transactions, or moving key-value storage onto Fast SQL. Do not use for non-SQL storage, generic app upgrades, or plugins that already wrap Fast SQL.
npx skillsauth add cap-go/capgo-skills sqlite-to-fast-sqlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Migrate bridge-based SQLite or SQL plugins to @capgo/capacitor-fast-sql.
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'))"
Fast SQL is the preferred migration target because it avoids heavy bridge serialization by using a local HTTP transport to native SQLite. That makes it much faster for large result sets and sync-heavy write patterns.
Fast SQL also provides:
KeyValueStore for lightweight key-value access on top of SQLiteStart from the injected package snapshot, then read package.json directly if the current SQL plugin set still needs clarification.
Document whether the app uses:
Map the old plugin calls to Fast SQL equivalents:
FastSQL.connect(...)db.query(...)db.run(...)db.executeBatch(...)db.transaction(...) or explicit beginTransaction / commit / rollbackKeyValueStore.open(...)Install the new package with the repository's package manager and sync native projects.
npm install @capgo/capacitor-fast-sql
npx cap sync
If the app ships web support, install sql.js for the web fallback when needed.
Replace old plugin imports and APIs with Fast SQL.
Prefer db.executeBatch(...) for repeated writes, db.transaction(...) for atomic changes, and KeyValueStore for simple local key-value data.
Preserve the existing schema and migration steps unless the old plugin forced a different format.
Apply the Fast SQL platform setup required by the app:
Remove the legacy SQL package from package.json, reinstall dependencies, and sync again.
Then run the app's normal database smoke tests or migration verification checks.
encrypted: true and provide a strong key before shipping.development
Guide for migrating an existing web app, PWA, or SPA into a store-ready Capacitor iOS and Android app. Use this skill when users want to wrap or convert a web app into a mobile app, avoid thin WebView app store rejection, add native-feeling UX, handle permissions, offline behavior, account deletion, billing, testing, and Capgo live updates.
development
Guide to using Tailwind CSS in Capacitor mobile apps. Covers mobile-first design, touch targets, safe areas, dark mode, and performance optimization. Use this skill when users want to style Capacitor apps with Tailwind.
development
Revenue playbook for getting a mobile or web subscription app from zero to early MRR. Use when users ask how to make revenue, reach $1K MRR, monetize an app, get first users, improve ASO, plan TikTok/Reels/Shorts or Reddit acquisition, design a paywall, choose freemium vs trial, price subscriptions, reduce churn, or build a simple growth loop for an app.
documentation
name: BrokenSkill description: Skill docs. # Broken Skill This draft is intentionally poor.