prisma

prisma is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (535 once invoked), scanned A, original, MIT.

A set of conventions for Prisma, a tool that connects application code to databases. It covers database schemas, migrations, and the generated Prisma Client.

In plain words
What is it for?
Use it when designing Prisma schemas, creating or deploying migrations, importing an existing database structure, and organizing Prisma Client access.
Why use it?
It prevents inconsistent table and field names, missing database indexes, unsafe production migration commands, and duplicated database connections.

Skill for Claude CodeCodex

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

Good fit Use it when designing Prisma schemas, creating or deploying migrations, importing an existing database structure, and organizing Prisma Client access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresquirogadev/skillsense/prisma
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 andresquirogadev/skillsense --skill prisma
Clone the repo
git clone --depth 1 https://github.com/andresquirogadev/skillsense

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 prisma

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresquirogadev/skillsense/prisma/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/prisma)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/prisma"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/prisma/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 prisma

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/prisma"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/prisma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 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.
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.00000 $0.00535
Opus 5.5 $0.00000 $0.00214
Sonnet 5.5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

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

Security

Grade A, and why

prisma 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 1mo 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.

packages/catalog/skills/prisma/SKILL.md · 46 lines

How it starts

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

Prisma Skill

You are working with Prisma ORM. Apply these conventions.

Schema (schema.prisma)

  • Use @@map("snake_case_table") on models to keep DB tables in snake_case while Prisma models stay PascalCase.
  • Use @map("snake_case_col") on fields for the same reason.
  • Always add @@index([field]) for columns used in WHERE, ORDER BY, or as foreign keys.
  • Use @db.Text for long strings; use @db.VarChar(255) for constrained strings on PostgreSQL.
  • Use @updatedAt for auto-updating timestamps.
  • Use enum for fixed value sets; map to DB enums or use a string with @db.VarChar.

Migrations

  • Run npx prisma migrate dev --name descriptive-name during development — generates SQL and applies it.
  • Run npx prisma migrate deploy in CI/production — never migrate dev in production.
  • Never edit migration files by hand; instead, update schema and create a new migration.
  • Use npx prisma db push for rapid prototyping when migration history doesn't matter.
  • Introspect existing databases with npx prisma db pull.

Prisma Client

  • Instantiate a single PrismaClient and reuse it (module singleton pattern):
    // lib/prisma.ts
    import { PrismaClient } from '@prisma/client';
    const globalForPrisma = globalThis as unknown as { prisma: PrismaClient };
    export const prisma = globalForPrisma.prisma ?? new PrismaClient();
    if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
    
  • Always call $disconnect() in CLI scripts and tests; managed services handle it automatically.
  • Use $transaction([…]) for atomic operations or $transaction(async (tx) => { … }) for interactive transactions.

Queries

  • Use select to fetch only needed fields — never over-fetch entire records.
  • Use include for eager-loading relations; use nested select inside include to limit relation fields.
  • Use where: { id: { in: ids } } for bulk lookups.
  • Paginate with skip and take; use cursor-based pagination for large datasets.

Read the full file on GitHub · 46 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. 1mo ago First seen · 46 lines · 0 tokens per session scan A bcfd01a43e33

Subscribe to this mod's changes

prisma is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 535 tokens. 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-31.

Related

Other skills, from other repositories

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

kepano/obsidian-skills · 63 tokens

x-osv

CLI for Google OSV database. Query vulnerabilities for packages, scan local projects for vulnerable dependencies. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill). Required Tool: Install osv-scanner for project scanning (see https://github.com/google/osv-scanner).

x-cmd/x-cmd · 72 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens

db-migrations

Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod. NOT lock internals or EXPLAIN (that is postgresdb), NOT drizzle-kit mechanics (that is…

ericrisco/rsc-harness · 90 tokens

dynamodb

Use when modeling or operating a DynamoDB table: deriving partition/sort keys from access patterns, single-table vs table-per-entity, adding a GSI/LSI, on-demand vs provisioned capacity, or diagnosing hot-partition throttling. NOT relational schema/SQL/EXPLAIN (that is postgresdb), NOT aggregation-pipeline document…

ericrisco/rsc-harness · 82 tokens

firebase

Use when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like a database open to the internet, a query rejected by rules, or a doc stuck at 1 write/sec. NOT managed-Postgres BaaS with SQL and RLS (that…

ericrisco/rsc-harness · 77 tokens