bun-sql-query

Query and inspect PostgreSQL, MySQL, and SQLite databases from Bun scripts.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/kwanLeeFrmVi/claude-code-skill-bun-sql --skill bun-sql-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-sql-query
Source: https://github.com/kwanLeeFrmVi/claude-code-skill-bun-sql/tree/main/skill
Command: npx skills add https://github.com/kwanLeeFrmVi/claude-code-skill-bun-sql --skill bun-sql-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @toon-format/toon, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides zero-install, pre-bundled Bun SQL scripts that let you inspect database schemas, run parameterized queries, and modify data without a separate setup. It supports PostgreSQL, MySQL, and SQLite, enabling quick automation or ad-hoc data exploration directly in your project.

Core Features & Use Cases

  • Schema inspection: list tables, describe structures, and reveal relationships across supported databases.
  • Querying: execute safe SELECT queries with parameterization, supporting filters, joins, and aggregations.
  • Data modification: perform INSERT/UPDATE/DELETE with a safety flag to guard write operations.
  • Interactive and scriptable: use in interactive mode or embed in automation pipelines.
  • Zero-install distribution: works immediately after download by reading DATABASE_URL from your project’s .env file.

Quick Start

  • Install by downloading the bundled distribution; place it in your Claude skills directory.
  • Create a .env file with DATABASE_URL for your target database.
  • Run a bundled script, e.g. bun ~/.claude/skills/bun-sql-query/dist/schema.js --list-tables to explore your database.

Frequently Asked Questions about bun-sql-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run SQL queries in Bun scripts without manual database setup?

You can run SQL queries in Bun scripts using pre-bundled, zero-install scripts that read your DATABASE_URL directly from a .env file. This enables immediate schema inspection and parameterized querying without separate configuration. It supports PostgreSQL, MySQL, and SQLite.

Can I inspect database schemas across PostgreSQL, MySQL, and SQLite using Bun?

Yes, you can inspect database schemas across PostgreSQL, MySQL, and SQLite using Bun. The bundled scripts allow you to list tables, describe structures, and reveal relationships to quickly explore and automate database tasks.

How do I execute safe SQL write operations in a Bun automation pipeline?

To execute safe SQL write operations like INSERT, UPDATE, and DELETE in a Bun pipeline, the scripts enforce a safety flag for data modification. This parameterized approach guards write operations while supporting interactive or scriptable automation.

Does this Bun SQL query approach require installing separate database drivers?

No, this Bun SQL query approach requires zero installation of separate drivers. It works immediately as a pre-bundled distribution placed in your Claude skills directory, reading the DATABASE_URL from your project's .env file to connect.

What is the best way to explore an unknown database schema in a Bun project?

The best way to explore an unknown database schema in a Bun project is running a bundled schema script, such as one using the --list-tables flag. This reveals tables, structures, and relationships instantly without writing custom query code.

Why are my SQL write operations blocked when using bundled Bun scripts?

SQL write operations are blocked because the bundled Bun scripts enforce a safety flag for data modification. You must explicitly provide this flag during execution to guard against accidental INSERT, UPDATE, or DELETE operations.