# pgmicro-postgres-sqlite

Teaches your coding assistant how to configure pgmicro, an engine translating PostgreSQL queries into SQLite bytecode for in-process execution.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 811 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/pgmicro-postgres-sqlite/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/pgmicro-postgres-sqlite

## What it 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.

## Requirements
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pgmicro-postgres-sqlite/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pgmicro-postgres-sqlite/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pgmicro-postgres-sqlite/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pgmicro-postgres-sqlite/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills pgmicro-postgres-sqlite
```

2. **Manually: put the files in place**
- File: `.github/skills/pgmicro-postgres-sqlite/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/pgmicro-postgres-sqlite
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pgmicro-postgres-sqlite/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill pgmicro-postgres-sqlite -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/pgmicro-postgres-sqlite/SKILL.md

## When to use it
- Execute Postgres SQL queries directly inside an app without running a database daemon
- Store PostgreSQL-compatible tables in standard portable SQLite `.db` files
- Test database migrations locally using psql connected to an ephemeral memory process
- Run in-browser SQL transactions using TypeScript and WebAssembly

## Example prompts
- 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

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 186 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
