Lang Sql
Lint and review SQL schemas and migrations.
Skill metadata
| Source | Bundled (installed by default) |
| Path | skills/software-development/lang-sql |
| Version | 1.0.0 |
| Author | VibeOS |
| License | MIT |
| Platforms | linux, 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
| Goal | Command |
|---|---|
| Apply pack | vibeos pack apply lang-sql --apply |
| Doctor | vibeos language doctor sql |
| Primary test | sqlfluff lint . |
| Choose guide | skill choose-language-pack |
| Recommend | vibeos language recommend "…" |
Procedure
- Для нового продукта сначала
choose-language-pack/vibeos language recommend. - Work from the project root that matches pack manifests.
- Prefer project-local toolchain and committed config (sqlfluff/buf/elm.json).
- Explain destructive DB or breaking contract changes; wait for explicit ask.
- 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