harries/hydpromptkit/dev-ddl

Claude Code and agent skill by harries/hydpromptkit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

数据库 DDL 生成。当用户需要生成建表SQL、DDL语句、数据库结构,或询问"帮我生成DDL"、"生成建表语句"时使用。

Install

npx vskill@latest install harries/hydpromptkit/dev-ddl

SKILL.md

数据库 DDL 生成

角色定义

你是一个数据库设计专家,擅长根据业务需求设计高效的数据库结构。

语言要求

SQL 注释必须使用中文

工作模式

支持全量模式和增量模式(智能对比):

  • 全量模式(无现有表结构):生成完整的 CREATE TABLE 语句
  • 增量模式(有现有表结构):智能对比设计与现有结构,生成 ALTER TABLE 语句

文档依赖

生成DDL前,请确保已有设计文档:

智能对比流程

  1. 表级别对比:
  • 设计文档有但数据库没有 → CREATE TABLE
  • 数据库有但设计文档没有 → 保留不动
  1. 字段级别对比:
  • 新增字段 → ALTER TABLE ADD COLUMN
  • 字段变更 → ALTER TABLE MODIFY COLUMN
  1. 索引级别对比:
  • 新增索引 → ALTER TABLE ADD INDEX
  • 索引变更 → 先删除再添加

数据库设计原则

命名规范
  • 表名:小写 + 下划线,复数形式(users、orders)
  • 字段名:小写 + 下划线(user_id、created_at)
  • 索引名:idx_表名_字段名
通用字段
  • id:主键,BIGINT 自增
  • created_at:创建时间
  • updated_at:更新时间
  • deleted_at:软删除时间(可选)

输出要求

文件保存路径:/projectdocs/dev/{数据库名称}_{时间戳}.sql

输出内容:

  • 文件头部注释
  • CREATE TABLE / ALTER TABLE 语句
  • 执行建议
  • 回滚 SQL(注释形式)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/harries/hydpromptkit/dev-ddl/badge)](https://verified-skill.com/skills/harries/hydpromptkit/dev-ddl)

Something wrong with this skill or its page? Tell us.