pgmicro-postgres-sqlite — Claude Code skill: install & use
Teaches your coding assistant how to configure pgmicro, an engine translating PostgreSQL queries into SQLite bytecode for in-process execution.
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a claude-codeWhat pgmicro-postgres-sqlite does
This skill guides agents through embedding pgmicro into applications or using its standalone CLI. The software processes SQL queries with the libpg_query parser, converting statements into virtual database engine (VDBE) instructions handled by Turso. Data resides in an ordinary .db SQLite file or ephemeral memory, while exposing system catalogs such as pg_class.
Projects can consume pgmicro via a WASM-based TypeScript library, through an NPM command-line executable, or as a wire-compatible server on 127.0.0.1:5432. Compiling from source code demands an installed Rust toolchain, whereas Node.js suffices for running the CLI and web client.
What it helps with
- Execute Postgres SQL queries directly inside an app without running a database daemon
- Store PostgreSQL-compatible tables in standard portable SQLite
.dbfiles - Test database migrations locally using psql connected to an ephemeral memory process
- Run in-browser SQL transactions using TypeScript and WebAssembly
Example prompts for the agent
- Show me how to initialize an in-memory pgmicro instance using TypeScript
- Configure a local pgmicro wire server on port 5432 for testing with node-postgres
- Write a sample table schema with SERIAL primary keys for pgmicro
How to install pgmicro-postgres-sqlite
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a claude-code2Manually: put the files in place
~/.claude/skills/pgmicro-postgres-sqlite/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pgmicro-postgres-sqlite/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a codex2Manually: put the files in place
.agents/skills/pgmicro-postgres-sqlite/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a cursor2Manually: put the files in place
.cursor/skills/pgmicro-postgres-sqlite/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills pgmicro-postgres-sqlite2Manually: put the files in place
.github/skills/pgmicro-postgres-sqlite/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/pgmicro-postgres-sqliteManually: put the files in place
.devin/skills/pgmicro-postgres-sqlite/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about pgmicro-postgres-sqlite
How to install pgmicro-postgres-sqlite in Claude Code?
Run npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a claude-code. The tool adds database management instructions directly to your assistant context.
What is pgmicro?
It is an embeddable SQL engine that interprets PostgreSQL syntax and executes it on top of SQLite storage via Turso. It works without background database servers.
Can standard database tools inspect pgmicro databases?
Yes, created .db files follow normal SQLite format and open in standard SQLite viewers. You can also inspect data via psql when running in server mode.