Skip to main content

vajram-sql-data-modelling

Stars15
Forks24
UpdatedJuly 9, 2026 at 06:47

Models SQL table schemas AND writes SELECT/INSERT queries using the vajram-sql plugin of the Krystal framework (flipkart-incubator/Krystal). Covers @Table/@ModelRoot model interfaces (columns, @PrimaryKey, @UniqueKey, @ForeignKey/@IncomingForeignKey, nullability, defaults, JSON columns, matching raw DDL) and query traits โ€” @Selection projections, @WHERE/ColumnPredicate/SqlOrPredicate filters, @SQL @SELECT/@INSERT @Trait definitions with @LIMIT/@ORDER/@ReturnOnInsert. Use whenever the user wants to define/change a SQL table, or fetch/insert rows, look up a record, add a query, or write a repository-style method against a Krystal/Vajram data layer โ€” even if they just say "add a table for X" or "write a query to fetch Z" without naming vajram-sql, as long as the repo uses Krystal/Vajram. Not for generic (non-Krystal) DB work, or UPDATE/DELETE (no codegen support yet).

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
4 files
SKILL.md
readonly