db-testing

Diagnose database connectivity and validate query execution across PostgreSQL, MySQL, and SQL Server.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/saajunaid/junai --skill db-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-testing
Source: https://github.com/saajunaid/junai/tree/main/.github/skills/data/db-testing
Command: npx skills add https://github.com/saajunaid/junai --skill db-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose and validate database connectivity and query execution.

Core Features & Use Cases

  • Network connectivity checks to verify server reachability and port availability.
  • Environment/config validation to ensure DB_HOST, DB_NAME, DB_USER, and DB_PASSWORD are present and correct.
  • Connection/test execution to establish a live connection and run a simple query.
  • Query validation to confirm basic SELECT statements return results and match expected schema.
  • Use Case: When diagnosing a flaky DB connection or validating a new environment configuration.

Quick Start

Run the skill against a test database to verify connectivity and basic query execution.

Frequently Asked Questions about db-testing

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

FAQPage Schema
How do I test database connectivity and validate queries in Python?

To diagnose database connectivity issues, run network checks to verify server reachability and port availability, validate environment variables like DB_HOST and DB_PASSWORD, and execute a test query to pinpoint connection failures across PostgreSQL, MySQL, or SQL Server.

Does this database testing approach work with PostgreSQL, MySQL, and SQL Server?

Yes, this database testing approach works with PostgreSQL, MySQL, and SQL Server. It validates configurations and tests query execution across these database systems by checking environment variables and running sample SELECT statements in development or production-like environments.

What environment variables do I need to validate database configurations?

You need DB_HOST, DB_NAME, DB_USER, and DB_PASSWORD environment variables to validate database configurations. These variables are checked during the environment validation phase to ensure they are present and correct before attempting a live connection test.

How do I diagnose a flaky database connection in a staging environment?

Diagnose a flaky database connection in a staging environment by performing network connectivity checks for server reachability, validating environment configurations, and running sample query validations to ensure basic SELECT statements return expected results.

What is the best way to verify database server reachability and port availability?

The best way to verify database server reachability and port availability is through dedicated network connectivity checks. This process confirms the server is accessible before attempting environment config validation and executing live database test queries.