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/capacitor-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
Complete guide to handling safe areas in Capacitor apps for iPhone notch, Dynamic Island, home indicator, and Android cutouts. Covers CSS, JavaScript, and native solutions. Use this skill when users have layout issues on modern devices.
development
Guide to using Konsta UI for pixel-perfect iOS and Material Design components in Capacitor apps. Works with React, Vue, and Svelte. Use this skill when users want native-looking UI without Ionic, or prefer a lighter framework.
development
Guide to using Ionic Framework components for beautiful native-looking Capacitor apps. Covers component usage, theming, platform-specific styling, and best practices for mobile UI. Use this skill when users need help with Ionic components or mobile UI design.
tools
Guide to accessing device logs on iOS and Android for Capacitor apps. Covers command-line tools, GUI applications, filtering, and real-time streaming. Use this skill when users need to view device logs for debugging.