Skip to main content

database-schema-validator

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

来源信息

仓库
rominirani/antigravity-skills
最近来源活动
2026年1月14日 10:03
检测到的 SKILL.md 语言
英语
星标
592
分支
211

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
database-schema-validator
description
Validates SQL schema files for compliance with internal safety and naming policies.
# 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> ``` 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.
在 GitHub 查看