database-orm-expert

database-orm-expert is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 47 tokens per session (2,096 once invoked), scanned A, original, MIT.

A guide to designing databases and using TypeScript tools such as Prisma, Drizzle ORM, and TypeORM to work with them.

In plain words
What is it for?
Use it to create or migrate schemas, choose an ORM, write joins and paginated queries, optimize PostgreSQL, MySQL, SQLite, or PlanetScale databases, and set up migrations.
Why use it?
It helps avoid poorly designed schemas, unsafe queries, difficult migrations, slow database operations, and repeated queries caused by N+1 problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or migrate schemas, choose an ORM, write joins and paginated queries, optimize PostgreSQL, MySQL, SQLite, or PlanetScale databases, and set up migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/database-orm-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill database-orm-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-orm-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/database-orm-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/database-orm-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/database-orm-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/database-orm-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-orm-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/database-orm-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/database-orm-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 227
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 228
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 229
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 230
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02096
Opus 5.5 $0.00019 $0.00838
Sonnet 5.5 $0.00009 $0.00419
Haiku 4.5 $0.00005 $0.00210

Measured 8d ago against content hash b03a9a1ed69c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-orm-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/database-orm-expert/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unified Database & ORM Expert

English | Bahasa Indonesia


English

Description

Design schemas, select ORMs, execute zero-downtime migrations, optimize queries, and implement edge serverless databases. Covers Prisma 6, Drizzle ORM, TypeORM, Supabase CLI workflows, and Edge DBs (Neon, Cloudflare D1, Turso, Upstash).

Trigger Conditions

  • Designing or migrating a production schema (blue-green, canary).
  • Choosing between Prisma, Drizzle ORM, or TypeORM.
  • Writing complex queries with joins, aggregations, or pagination.
  • Optimizing slow queries or N+1 problems.
  • Building edge-compatible serverless database connections.
  • Executing Supabase migrations and RLS patterns.
  • Managing backward-compatible massive data backfills.

Orchestration & Integration

  • js-backend-expert: For Node/Bun/Deno backend implementations integrating these ORMs.
  • ci-cd-devops-architect: For automated migration deployment steps.
  • supabase-security-expert: For Supabase RLS and security.
  • cloud-hosting-expert: For infrastructure integration.

Core ORM & Query Strategies

ORM Selection Guide
Criteria Prisma 6 Drizzle ORM TypeORM
Type Safety Schema-generated types SQL-like, inferred types Decorator-based
Bundle Size Heavy (binary client) Lightweight (<35KB) Medium
Query Style Fluent ORM API SQL-first, composable ActiveRecord / QueryBuilder
Edge Runtime Prisma Accelerate needed Native edge support No
Migrations prisma migrate dev drizzle-kit push/migrate synchronize (dev only)

Recommendation: Use Drizzle ORM for edge-compatible apps and performance-critical systems. Use Prisma 6 for teams preferring a schema-first DX.

Prisma 6 Best Practices
  • Use $transaction for atomic operations.
  • Avoid N+1 queries by using select and include (with Prisma 5.7+ relationJoins preview) rather than looping over findMany.

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed b03a9a1ed69c
  2. 13d ago Changed 7e10907ef2dd
  3. 14d ago Changed 9d8608333923
  4. 16d ago Changed · -6 lines · +35 tokens per session c39a9881c773
  5. 18d ago Changed · +6 lines · -35 tokens per session affb2a1e83de
  6. 1mo ago Changed 9205e54d2a2c
  7. 1mo ago Changed · -139 lines · -35 tokens per session 04e00994cc66
  8. 1mo ago First seen · 305 lines · 82 tokens per session scan A 07c6d4ed79e8

Subscribe to this mod's changes

database-orm-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (75 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 2,096 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

drizzle

Expert Drizzle ORM assistance covering type-safe schema declaration, migrations, relations, and serverless database clients. Use when building performant TypeScript apps with PostgreSQL, MySQL, or SQLite.

G1Joshi/Agent-Skills · 41 tokens

prisma

Expert Prisma ORM assistance covering Prisma schema, migrations, type-safe queries, relation filters, and Accelerate. Use when modeling databases and querying SQL in TypeScript/JavaScript.

G1Joshi/Agent-Skills · 38 tokens

drizzle-orm

Expert knowledge for Drizzle ORM - the lightweight, type-safe SQL ORM for edge and serverlessUse when "drizzle, drizzle orm, drizzle-kit, drizzle schema, drizzle migration, drizzle relations, sql orm typescript, edge database, d1 database, orm, database, typescript, sql, edge, serverless, d1, postgres, mysql, sqlite"…

omer-metin/skills-for-antigravity · 82 tokens

dynamodb-toolbox-patterns

Provides TypeScript patterns for DynamoDB-Toolbox v2 including schema/table/entity modeling, .build() command workflow, query/scan access patterns, batch and transaction operations, and single-table design with computed keys. Use when implementing type-safe DynamoDB access layers with DynamoDB-Toolbox v2 in TypeScript…

giuseppe-trisciuoglio/developer-kit · 76 tokens

upstash-search-js

Work with the @upstash/search TypeScript/JavaScript SDK, a serverless full-text and semantic search database with built-in reranking. Use when adding search to an app or site, creating a search index, upserting documents with searchable content and filterable metadata, running keyword, semantic, or hybrid search…

upstash/skills · 133 tokens

bun-development

Complete Bun.js ecosystem guidance for runtime APIs, file I/O, package management, testing, SQLite, and security; use proactively when setting up Bun projects, replacing Node.js APIs with Bun-native APIs, writing bun test suites, implementing Bun.serve services, using bun:sqlite with prepared statements, configuring…

pantheon-org/tekhne · 84 tokens