use-db

Query PostgreSQL databases across local, QA, UAT, and prod environments.

2|1|Updated Feb 8, 2021
One-click install
npx skills add https://github.com/jstoobz/dotfiles --skill use-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-db
Source: https://github.com/jstoobz/dotfiles/tree/main/claude/skills/infrastructure/use-db
Command: npx skills add https://github.com/jstoobz/dotfiles --skill use-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a unified way to query PostgreSQL databases across environments (local, QA, UAT, prod) to support investigation, debugging, and data verification.

Core Features & Use Cases

  • Cross-environment queries to verify data consistency across read-models and event-stores
  • Environment routing guidance for local, QA, UAT, and prod deployments
  • Reusable query templates and references for common investigations like subscription lag and event inspection

Quick Start

Run: /use-db local eventstore Then: /use-db qa app

Frequently Asked Questions about use-db

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

FAQPage Schema
How do I query PostgreSQL databases across different environments for debugging?

To query PostgreSQL across environments for debugging, you can use environment routing to target local, QA, UAT, or prod databases. This provides a unified connection workflow and reusable query templates to support data verification and investigation.

What is the best way to verify read-model consistency between QA and production databases?

Verifying read-model consistency between QA and production databases requires cross-environment queries to inspect the event-store and compare data states. This approach supports checking subscription lag and validating data synchronization safely.

Can I inspect event-store data in a local environment using this approach?

Yes, you can inspect event-store data in a local environment by routing your PostgreSQL queries specifically to local. This enables event inspection and allows you to debug subscription lag or verify data states locally before checking higher environments.

How do I safely query production PostgreSQL databases during an investigation?

Safely querying production PostgreSQL databases during an investigation involves using a connection workflow that preserves safe access to production data. It provides reusable query templates to inspect events and read-models without risking data integrity.

Does this method provide templates for investigating subscription lag in PostgreSQL?

Yes, this method provides reusable query templates and references specifically for investigating subscription lag in PostgreSQL. These templates help you quickly query event-stores and read-models to identify synchronization delays across environments.