vespertide
БесплатноБез исполняемых скриптовНе проверенDefine database schemas in JSON and generate migration plans. Use this skill when creating or modifying database models, defining tables with columns…
от dev-five-git★ 23 звезды на GitHubОб этом скилле
Vespertide Database Schema Definition
Declarative database schema management. Define tables in JSON, generate typed migrations and SQL.
Schema Validation (MANDATORY)
Every model file MUST include $schema. Before saving: ensure no IDE validation errors, then run vespertide diff.
{
"$schema": "https://raw.githubusercontent.com/dev-five-git/vespertide/refs/heads/main/schemas/model.schema.json",
"name": "table_name",
"columns": []
}
Post-Edit Validation (MANDATORY)
After EVERY model edit, run:
vespertide diff # Check for parsing errors and expected changes
vespertide sql # Preview generated SQL for correctness
Only proceed to vespertide revision after both pass cleanly.
Installation
cargo install vespertide-cli
CLI Commands
| Command | Description |
|---|---|
vespertide init |
Initialize vespertide.json with defaults |
vespertide new <name> |
Create model template with $schema |
vespertide new <name> -f yaml |
Create model in specific format (json/yaml/yml) |
vespertide diff |
Show pending changes between migrations and models |
vespertide sql |
Preview SQL for next migration (default: postgres) |
vespertide sql -b mysql |
SQL for specific backend (postgres/mysql/sqlite) |
vespertide log |
Show SQL per applied migration |
vespertide log -b mysql |
Migration log for specific backend |
vespertide status |
Show config and sync overview |
vespertide revision -m "msg" |
Create migration file |
vespertide revision -m "msg" --fill-with table.col=value |
Create migration with fill values (repeatable) |
vespertide export --orm seaorm |
Export to ORM code (seaorm/sqlalchemy/sqlmodel) |
vespertide export --orm seaorm -d out/ |
Export to custom directory |
Configuration (vespertide.json)
{
"modelsDir": "models",
"migrationsDir": "migrations",
"tableNamingCase": "snake",
"columnNamingCase": "snake",
"modelFormat": "json",
"migrationFormat": "json",
"migrationFilenamePattern": "%04v_%m",
"modelExportDir": "src/models",
"prefix": "",
"seaorm": {
"extraEnumDerives": ["vespera::Schema"],
"extraModelDerives": [],
"enumNamingCase": "camel",
"vesperaSchemaType": true
}
}
| Field | Type | Default | Description |
|---|---|---|---|
modelsDir |
string | "models" |
Model JSON files directory |
migrationsDir |
string | "migrations" |
Migration files directory |
tableNamingCase |
string | "snake" |
snake / camel / pascal |
columnNamingCase |
string | "snake" |
snake / camel / pascal |
modelFormat |
string | "json" |
json / yaml / yml |
migrationFormat |
string | "json" |
json / yaml / yml |
migrationFilenamePattern |
string | "%04v_%m" |
%v=version, %m=message |
modelExportDir |
string | "src/models" |
ORM export output directory |
prefix |
string | "" |
Prefix for all table names |
SeaORM Config (seaorm nested object):
| Field | Type | Default | Description |
|---|---|---|---|
extraEnumDerives |
string[] | ["vespera::Schema"] |
Extra derives for generated enums |
extraModelDerives |
string[] | [] |
Extra derives for entity models |
enumNamingCase |
string | "camel" |
Serde rename_all for enums |
vesperaSchemaType |
bool | true |
Generate vespera::schema_type! calls |
Exported ORM Files (DO NOT EDIT)
CRITICAL: Files in
src/models/(e.g.src/models/*.rs,src/models/*.py) are AUTO-GENERATED byvespertide export. NEVER manually create or edit these files. Always edit source models inmodels/*.json, then regenerate:
# Edit models/*.json -> regenerate
vespertide export --orm seaorm
Migration / Revision Files (DO NOT EDIT)
CRITICAL: Migration files in the
migrations/directory are AUTO-GENERATED byvespertide revision. NEVER manually create, edit, or modify revision files. Always edit source models inmodels/*.json, then create a new revision:
# Edit models/*.json -> create revision
vespertide revision -m "describe your change"
Only exception: Adding fill_with values when prompted (NOT NULL columns without defaults).
{
"type": "add_column",
"table": "user",
"column": {
"name": "status",
"type": "text",
"nullable": false
},
"fill_with": "'active'"
}
Model Structure
{
"$schema": "https://raw.githubusercontent.com/dev-five-git/vespertide/refs/heads/main/schemas/model.schema.json",
"name": "table_name",
"description": "Optional table description",
"columns": [ /* ColumnDef[] */ ],
"constraints": [ /* Optional: CHECK constraints only */ ]
}
| Field | Required | Type | Description |
|---|---|---|---|
name |
yes | string | Table name (snake_case) |
columns |
yes | array | Colu |
Установить vespertide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vespertide?
Define database schemas in JSON and generate migration plans. Use this skill when creating or modifying database models, defining tables with columns, constraints, and ENUM types for Vespertide-based projects.
Как установить скилл vespertide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vespertide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic