跳到正文
FunCoding

database-schema-validator

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

Star
628
分类
数据
最近提交
2026年6月27日

skills_tutorial/database-schema-validator/SKILL.md

在 GitHub 上查看

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.

相似的 Skill

精选

agentic-os

构建持久多智能体系统,无需外部数据库,用文件保存状态,定时执行任务。

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

health

GAgarrytan/gstack143k近 7 天新增 524 个 star

deprecation-and-migration

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ccs-align

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star

handoff

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star

mem-search

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star