Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

database-schema-validator

FreeRuns bundled scriptsNot checked

Validates SQL schema files for compliance with internal safety and naming policies.

rominiraniby rominirani★ 628 GitHub stars

About this skill

Database Schema Validator Skill

This skill ensures that all SQL files provided by the user comply with our strict database standards.

Policies Enforced

  1. Safety: No DROP TABLE statements.
  2. Naming: All tables must use snake_case.
  3. Structure: Every table must have an id column as PRIMARY KEY.

Instructions

  1. Do not read the file manually to check for errors. The rules are complex and easily missed by eye.

  2. Run the Validation Script: Use the run_command tool to execute the python script provided in the scripts/ folder against the user's file.

    python scripts/validate_schema.py <path_to_user_file>
    
  3. Interpret Output:

    • If the script returns exit code 0: Tell the user the schema looks good.
    • If the script returns exit code 1: Report the specific error messages printed by the script to the user and suggest fixes.

Install database-schema-validator in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

scripts/validate_schema.py

FAQ

What does the database-schema-validator skill do?

Validates SQL schema files for compliance with internal safety and naming policies.

How do I install the database-schema-validator skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the database-schema-validator skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare database-schema-validator with