From fabrik
Guides SQL query writing, schema design, migrations, and best practices for SQLite databases, including strict tables, prefixed IDs, timestamps, triggers. Useful for SQLite and Go-SQLite code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fabrik:sqlThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides guidance for working with SQLite databases. It covers query writing, schema design, and SQLite-specific best practices.
This skill provides guidance for working with SQLite databases. It covers query writing, schema design, and SQLite-specific best practices.
Use this skill when:
select * over explicit column namesstrict tablesstrftime('%Y-%m-%dT%H:%M:%fZ')strftimeid text primary key default ('p_' || lower(hex(randomblob(16)))) (where the p_ is a prefix depending on the table name; two-letter prefixes are okay too, so the prefix is unique among tables)created/updated columns like this: created text not null default (strftime('%Y-%m-%dT%H:%M:%fZ'))create trigger table_name_updated_timestamp after update on table_name begin
update table_name set updated = strftime('%Y-%m-%dT%H:%M:%fZ') where id = old.id;
end;
npx claudepluginhub maragudk/fabrik --plugin fabrikCovers Drizzle ORM schema, migrations, queries, relations, transactions, and type inference for SQLite backends (better-sqlite3, Turso, D1, expo-sqlite).
Guides SQL database design, query optimization, and migration safety. Use when writing queries, designing schemas, or planning zero-downtime migrations.
Guides schema design, migration writing, and query optimization with PostgreSQL as primary target. Useful for designing tables, writing up/down migrations, adding indexes, or optimizing slow SQL.