Database Engineer (Multi-SQL)

Detect dangerous DDL and data-type anti-patterns in SQL and Spark scripts.

1|1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Bambibanners/master_of_puppets --skill database-engineer-multi-sql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Database Engineer (Multi-SQL)
Source: https://github.com/Bambibanners/master_of_puppets/tree/main/.agent/skills/review-database
Command: npx skills add https://github.com/Bambibanners/master_of_puppets --skill database-engineer-multi-sql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Reviews SQL migrations and Spark scripts across T-SQL, PostgreSQL, and Spark SQL to detect safety and performance issues before deployment.

Core Features & Use Cases

  • Destructive DDL detection (DROP / TRUNCATE) and unsafe ALTER operations across dialects.
  • Dialect-aware checks for data types (e.g., VARCHAR/MAX, SERIAL) and indexing recommendations to improve performance and reliability.
  • Generation of a standardized database_review.md report at mop_validation/reports/database_review.md with remediation guidance.

Quick Start

Run the scan against your migration set using the provided tool to generate the database_review.md report.

Frequently Asked Questions about Database Engineer (Multi-SQL)

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

FAQPage Schema
How do I detect dangerous DDL operations in SQL migrations?

To detect dangerous DDL operations in SQL migrations, you can scan .sql files to identify destructive statements like DROP and TRUNCATE, along with unsafe ALTER operations. This process surfaces safety issues across dialects before deployment.

What is dialect-aware SQL review and how does it work?

Dialect-aware SQL review applies specific checks for different database engines like T-SQL and PostgreSQL. It analyzes data types such as VARCHAR or SERIAL and provides indexing recommendations to improve database performance and reliability.

How do I check Spark scripts for SQL performance anti-patterns?

You can check Spark scripts for SQL performance anti-patterns by applying dialect-aware static analysis to .py files. This surfaces data-type issues and safety concerns within your Spark SQL logic, generating a structured remediation report.

Can I review PostgreSQL and T-SQL migrations in the same scan?

Yes, you can review PostgreSQL and T-SQL migrations in the same scan because the tool applies dialect-aware checks across multiple SQL dialects. It identifies unsafe operations and anti-patterns regardless of the specific database engine.

How do I generate a database migration review report?

You generate a database migration review report by running a scan against your migration set. This produces a standardized database_review.md file at the designated reports directory, detailing performance findings and remediation guidance.

What are common SQL data type anti-patterns to avoid during migrations?

Common SQL data type anti-patterns include misusing VARCHAR or MAX lengths and improper SERIAL implementations. Dialect-aware scanning identifies these specific issues across SQL files to prevent performance degradation and reliability problems.