Database schema validator

From phenobarbital/navigator-auth · View interactive version

Database schema validator is an AI agent skill from the GitHub repository phenobarbital/navigator-auth. Validates SQL schema files for compliance with internal safety and naming policies.

How to use this skill

Skill file

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.

```bash

python scripts/validate_schema.py <path_to_user_file>

```

  1. Interpret Output:
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.