database-testing

Validate database schemas, data integrity, and reversible migrations.

436|78|Updated Sep 11, 2025
One-click install
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill database-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-testing
Source: https://github.com/proffesor-for-testing/agentic-qe/tree/main/.claude/skills/database-testing
Command: npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill database-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the critical need to prevent catastrophic data loss or corruption by ensuring database schema correctness, data integrity, transaction safety, and query performance.

Core Features & Use Cases

  • Schema Validation: Verifies that database tables, columns, and constraints are correctly defined and enforced.
  • Data Integrity Testing: Ensures unique keys, foreign key relationships, and check constraints prevent invalid or orphaned records.
  • Migration Testing: Validates that database migrations (forward and rollback) work correctly and preserve existing data.
  • Use Case: Before deploying a new feature that modifies the database schema, use this Skill to test the migration script, ensuring it adds the new columns correctly, is reversible, and preserves all existing user data.

Quick Start

Use the database-testing skill to verify that the 'users' table has an 'email' column of type 'character varying' and a unique constraint on the 'email' field.

Frequently Asked Questions about database-testing

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

FAQPage Schema
How do I test database schema changes before deploying migrations?

Database migration testing validates that schema changes apply correctly, remain reversible, and preserve existing data. Run migration tests in a staging environment to verify forward and rollback scripts work as expected before production deployment.

What's the best way to ensure data integrity across database tables?

Data integrity testing enforces unique keys, foreign key relationships, and check constraints to prevent invalid or orphaned records. Validate these constraints regularly to catch violations early and maintain consistency across development, staging, and production.

How do I verify my database schema is correctly defined?

Schema validation checks that tables, columns, and constraints match your intended design and are properly enforced at the database level. This prevents schema drift and catches configuration errors that could cause application failures.

Can I test query performance as part of database validation?

Yes, query performance measurement is integrated into database testing to identify slow queries and indexing issues. Measure performance metrics during schema verification to catch bottlenecks before they impact production workloads.

How do I prevent schema drift between environments?

Schema verification across development, staging, and production catches discrepancies that cause unexpected behavior. Regular schema validation ensures all environments maintain the same table structure, constraints, and data types.