database-orm-expert

database-orm-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 40 tokens per session (5,236 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 Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: mentions subagents; positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { db } from '../client';.

Part of the vibes-plug plugin — 179 skills, 9 agents, 2 MCP servers shipped together

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

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 179 skills, 9 agents, 2 MCP servers.

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 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,236 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.00040 $0.05236
Opus 5.5 $0.00016 $0.02094
Sonnet 5.5 $0.00008 $0.01047
Haiku 4.5 $0.00004 $0.00524

Measured 12d ago against content hash 5b9061917314, 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 12d 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.

.cursor/skills/database-orm-expert/SKILL.md · 356 lines

How it starts

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

Unified Database & ORM Expert (2026 Production Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with domain skills:

  • Backend & Runtimes: js-backend-expert, python-programming-expert, go-programming-expert, and rust-programming-expert for integrating Drizzle ORM, Prisma 6, SQLx, and SQLAlchemy/SQLModel.
  • FinTech & SaaS: saas-billing, saas-multi-tenant, double-entry-ledger-fintech-expert, and doku-payment-gateway for strict atomic database transactions (SELECT ... FOR UPDATE), distributed locks, tenant isolation via RLS, and SNAP BI idempotent records.
  • AI & Vectors: vector-db-rag-expert for pgvector 0.8+ HNSW indexing and high-dimensional cosine similarity embeddings.
  • Security & Cloud: supabase-security-expert, fga-rebac-authorization-expert, ci-cd-devops-architect, and cloud-hosting-expert for automated migration pipelines, blue-green deployments, and pooler infrastructure.
  • Master Orchestrators: brainstorming and zero-to-prod-orchestrator (Phase 3: Schema & Database Architecture).
  • Cross-Domain Synergy & Subagent Swarm Integration: olap-columnar-analytics-expert, reactive-sync-engine-expert, data-pipeline-etl-expert, graph-rag-knowledge-expert, search-engine-expert, geospatial-maps-expert

Description

Production-grade guide for relational schema design, ORM selection, zero-downtime Expand-and-Contract migrations, pessimistic concurrency locking, query optimization, and edge serverless database drivers. Covers Drizzle ORM v0.39+, Prisma 6 (TypedSQL & Relation Joins), Supabase CLI, and Edge Databases (Neon Serverless Postgres, Cloudflare D1, Turso libSQL, Upstash Redis).

Trigger Conditions

  • Designing or migrating a production schema (blue-green, Expand-and-Contract).
  • Choosing between Drizzle ORM, Prisma 6, Kysely, or SQLx.
  • Writing complex queries with joins, cursor pagination, or atomic row locks.
  • Optimizing slow queries, missing FK indexes, or N+1 problems.
  • Building edge-compatible serverless database connections (HTTP/WebSocket poolers).
  • Executing Supabase CLI migrations and Row-Level Security (RLS) policies.

Read the full file on GitHub · 356 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. 12d ago Changed · +10 lines 5b9061917314
  2. 17d ago Changed · +10 lines 796d2e8d73cc
  3. 26d ago Changed · +165 lines · -7 tokens per session 5ad9902f9672
  4. 1mo ago Changed · +3 lines · +47 tokens per session 50febcae634a
  5. 1mo ago Changed · +2 lines · -47 tokens per session 1c43318d1612
  6. 1mo ago Changed 8cd01ea93f90
  7. 1mo ago Changed b03a9a1ed69c
  8. 1mo ago Changed 7e10907ef2dd
  9. 2mo ago Changed 9d8608333923
  10. 2mo ago First seen · 166 lines · 47 tokens per session scan A c39a9881c773

Subscribe to this mod's changes

database-orm-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (131 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 5,236 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

database-orm-expert compared with skills from other repositories

database-orm-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-orm-expertroedyrustam/vibes-plugSkill1315d agoMITA40Cursor
drizzleG1Joshi/Agent-SkillsSkill162mo agoMITA41Claude Code, Codex
prismaG1Joshi/Agent-SkillsSkill162mo agoMITA38Claude Code, Codex
drizzle-ormomer-metin/skills-for-antigravitySkill24410mo agoApache-2.0A82Claude Code, Codex
typescript-advanced-typeschidekina/aria-superpowersSkill21mo agononeA57Claude Code, Codex
react-devchidekina/aria-superpowersSkill21mo agononeA66Claude Code, Codex
setup-ts-deep-modulesvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA49Claude Code, Codex