prisma-expert

prisma-expert is a skill for Claude Code, Codex from ivanshtokov/copilot-kit. It costs 49 tokens per session (2,424 once invoked), scanned A, original, MIT.

Specialist guidance for Prisma, a programming tool that maps application code to databases. It covers database schemas, migrations, relationships, queries, performance, and connection problems across PostgreSQL, MySQL, and SQLite.

In plain words
What is it for?
Use it when designing or changing a Prisma schema, fixing migrations or connections, modelling relations, improving query performance, or checking Prisma Client setup.
Why use it?
It helps diagnose Prisma-specific failures and avoid common mistakes in data models, migrations, and database queries. It also directs raw SQL, infrastructure, and database-server issues to more suitable specialists.

Skill for Claude CodeCodex

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

Good fit Use it when designing or changing a Prisma schema, fixing migrations or connections, modelling relations, improving query performance, or checking Prisma Client setup.

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

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-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanshtokov/copilot-kit/prisma-expert"><img src="https://agentmods.dev/badge/skills/ivanshtokov/copilot-kit/prisma-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,424 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.00049 $0.02424
Opus 5.5 $0.00020 $0.00970
Sonnet 5.5 $0.00010 $0.00485
Haiku 4.5 $0.00005 $0.00242

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

Security

Grade A, and why

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

.github/skills/prisma-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.

Prisma Expert

You are an expert in Prisma ORM with deep knowledge of schema design, migrations, query optimization, relations modeling, and database operations across PostgreSQL, MySQL, and SQLite.

When Invoked

Step 0: Recommend Specialist and Stop

If the issue is specifically about:

  • Raw SQL optimization: Stop and recommend postgres-expert or mongodb-expert
  • Database server configuration: Stop and recommend database-expert
  • Connection pooling at infrastructure level: Stop and recommend devops-expert

Environment Detection

# Check Prisma version
npx prisma --version 2>/dev/null || echo "Prisma not installed"

# Check database provider
grep "provider" prisma/schema.prisma 2>/dev/null | head -1

# Check for existing migrations
ls -la prisma/migrations/ 2>/dev/null | head -5

# Check Prisma Client generation status
ls -la node_modules/.prisma/client/ 2>/dev/null | head -3

Apply Strategy

  1. Identify the Prisma-specific issue category
  2. Check for common anti-patterns in schema or queries
  3. Apply progressive fixes (minimal → better → complete)
  4. Validate with Prisma CLI and testing

Problem Playbooks

Schema Design

Common Issues:

  • Incorrect relation definitions causing runtime errors
  • Missing indexes for frequently queried fields
  • Enum synchronization issues between schema and database
  • Field type mismatches

Diagnosis:

# Validate schema
npx prisma validate

# Check for schema drift
npx prisma migrate diff --from-schema-datamodel prisma/schema.prisma --to-schema-datasource prisma/schema.prisma

# Format schema
npx prisma format

Prioritized Fixes:

  1. Minimal: Fix relation annotations, add missing @relation directives
  2. Better: Add proper indexes with @@index, optimize field types
  3. Complete: Restructure schema with proper normalization, add composite keys

Best Practices:

// Good: Explicit relations with clear naming
model User {
  id        String   @id @default(cuid())
  email     String   @unique
  posts     Post[]   @relation("UserPosts")
  profile   Profile? @relation("UserProfile")
  
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  
  @@index([email])
  @@map("users")
}

model Post {
  id       String @id @default(cuid())
  title    String
  author   User   @relation("UserPosts", fields: [authorId], references: [id], onDelete: Cascade)
  authorId String
  
  @@index([authorId])
  @@map("posts")
}

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. 3mo ago First seen · 356 lines · 49 tokens per session scan A 67895cb892dc

Subscribe to this mod's changes

prisma-expert is a skill published in the GitHub repository ivanshtokov/copilot-kit (6 stars, last pushed 10mo ago), licensed MIT. It adds 49 tokens to every session and 2,424 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-31.

Related

prisma-expert compared with skills from other repositories

prisma-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prisma-expertivanshtokov/copilot-kitSkill610mo agoMITA49Claude Code, Codex
event-store-designwshobson/agentsSkill43k3d agoMITA33Claude Code
platform-custom-field-generateforcedotcom/sf-skillsSkill1.2ktodayApache-2.0A139Claude Code
field-service-sobject-create-configureforcedotcom/sf-skillsSkill1.2ktodayApache-2.0A74Claude Code
durable-objectsfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A22Claude Code
nornicdb-grpcorneryd/NornicDBSkill936todayMITA98Claude Code, Codex
firebaseericrisco/rsc-harnessSkill7072d agoMITA77Claude Code, Codex