database

Check PostgreSQL provisioning, create databases, and execute SQL safely.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/adminsairolotech-bit/sai-rolotech-smart-engines --skill database-adminsairolotech-bit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database
Source: https://github.com/adminsairolotech-bit/sai-rolotech-smart-engines/tree/main/.local/skills/database
Command: npx skills add https://github.com/adminsairolotech-bit/sai-rolotech-smart-engines --skill database-adminsairolotech-bit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL database provisioning, safe setup, and deterministic query execution are complex to manage across development and production. This skill provides checks for provisioning, safe database creation, and strict query controls to prevent unsafe changes and data leakage.

Core Features & Use Cases

  • Check provisioning and connectivity with checkDatabase().
  • Create or verify a PostgreSQL database and expose environment variables with createDatabase().
  • Execute SQL safely across development and production read replicas using executeSql(), with support for data warehouses via dedicated targets.
  • Use cases include validating prod data accessibility, debugging live database issues, or running read-only production queries.

Quick Start

Check whether the database is provisioned, create it if needed, then perform a sample SELECT against the development database using executeSql().

Frequently Asked Questions about database

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

FAQPage Schema
How do I check if my PostgreSQL database is provisioned and accessible?

To check if your PostgreSQL database is provisioned, use the checkDatabase function to verify connectivity and accessibility. It returns status details confirming whether the database is reachable and ready for query execution.

How can I safely execute SQL queries against a production PostgreSQL database?

Safely execute SQL queries against production PostgreSQL using the executeSql function. It enforces strict query controls and safety protections that prevent destructive operations and data leakage during read-only production queries.

How do I create a PostgreSQL database and get its environment variables?

Create a PostgreSQL database and retrieve its environment variables using the createDatabase function. It safely creates or verifies the database instance and returns configuration details for immediate application integration.

Can I run SQL queries on development and production contexts separately?

Yes, you can run SQL queries on development and production contexts separately using executeSql. It supports deterministic query execution across development and production read replicas, including dedicated targets for data warehouses.

What protections exist against destructive SQL operations in production?

Protections against destructive SQL operations in production include strict query controls enforced during executeSql execution. These safety protections prevent unsafe changes and data leakage when validating prod data accessibility or debugging live database issues.