跳到主要内容

Lang Sql

Lint and review SQL schemas and migrations.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-sql
Version1.0.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

SQL Language Pack Skill

Drive SQL work with the project index and standard CLI recipes. LSP hint: none (toolchain CLI) (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык запросов к реляционным базам данных. Нужен почти любому интернет-проекту с пользователями, заказами, контентом.

Лучше всего для:

  • схемы и миграции
  • аналитические запросы
  • индексы и constraints
  • ручной SQL рядом с ORM

When to Use​

Выбирай этот pack, если:

  • есть schema.sql / migrations / supabase
  • нужно проектировать таблицы и запросы
  • пользователь просит SQL/Postgres

Manifests (автодетект репозитория): schema.sql, init.sql, migrations, supabase/migrations, db/migrations, prisma/migrations

Обычно рядом: Prisma / Django / Rails / Go sqlc; Docker Postgres.

См. также skill choose-language-pack и vibeos language recommend "…".

When NOT to use​

  • только документная БД → Mongo и т.п. вне этого pack
  • схема через Prisma ORM → pack prisma рядом
  • нет БД → Astro/статичный сайт

Prerequisites​

vibeos pack apply lang-sql --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
sqlfluff lint . || true
psql -c "\\dt" || true

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-sql --apply
Doctorvibeos language doctor sql
Primary testsqlfluff lint .
Choose guideskill choose-language-pack
Recommendvibeos language recommend "…"

Procedure​

  1. Для нового продукта сначала choose-language-pack / vibeos language recommend.
  2. Work from the project root that matches pack manifests.
  3. Prefer project-local toolchain and committed config (sqlfluff/buf/elm.json).
  4. Explain destructive DB or breaking contract changes; wait for explicit ask.
  5. Do not invent core tools; stay on terminal + read_file + index CLI.

Pitfalls​

  • Prefer migrations over ad-hoc ALTER on shared DBs.
  • Never commit production credentials.
  • Destructive DROP/TRUNCATE needs explicit user ask.

Verification​

vibeos language doctor sql
vibeos project index status