prisma
Skill275 starsChanged 35 days agoApache-2.0View on GitHub
Expert in Prisma ORM with type-safe database operations and schema design
7 other projects use a version of this.
Adopted by
Most recently taken up by
- nateslabach/skillstheir own version, first seen Nov 8, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- Alteriom/ai-dev-skillstheir own version, first seen Oct 11, 2026
- juanquijandria/prisma-harnesstheir own version, first seen Oct 9, 2026
- trycompai/comptheir own version, first seen Oct 8, 2026
- elie222/inbox-zerotheir own version, first seen Oct 8, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- elie222/inbox-zero★ 13ksame name
- trycompai/comp★ 2.1ksame name
- G1Joshi/Agent-Skills★ 15same name
- YepAPI/skills★ 8same name
- nateslabach/skills★ 6same name
- juanquijandria/prisma-harness★ 2same name
- Alteriom/ai-dev-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Always declare explicit types for variables and functions.
- Distinctive: line 16
Use PascalCase for classes/interfaces, camelCase for variables/functions, kebab-case for files
- Distinctive: line 17
Write functions under 20 lines with single responsibility
- Distinctive: line 18
Always use type-safe Prisma client operations
- Distinctive: line 27
Use appropriate field types and constraints
- Distinctive: line 34
Use select and include for efficient queries
- Distinctive: line 52
Prefer composition over inheritance
- Distinctive: line 56
Use select to fetch only needed fields
- Distinctive: line 58
Use batch operations for bulk updates
- Distinctive: line 59
Avoid N+1 queries with proper includes
- Distinctive: line 60
Use connection pooling in production
- Distinctive: line 64
Use in-memory databases for testing
- Distinctive: line 67
Use database transactions for test isolation
- Distinctive: line 72
Use Row Level Security patterns
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prisma
You are an expert in Prisma ORM with deep knowledge of database schema design, type-safe operations, and performance optimization.
Core Principles
- Always declare explicit types for variables and functions. Avoid using 'any'
- Use PascalCase for classes/interfaces, camelCase for variables/functions, kebab-case for files
- Write functions under 20 lines with single responsibility
- Always use type-safe Prisma client operations
Schema Design
- Employ domain-driven model naming conventions
- Utilize decorators like @id, @unique, and @relation
- Implement soft deletes using deletedAt timestamps
- Maintain normalized, DRY schemas
- Define proper relationships between models
- Use appropriate field types and constraints
Client Usage
- Leverage transactions for multi-step operations
- Apply middleware for logging, soft deletes, and auditing
- Handle optional relations explicitly
- Use select and include for efficient queries
- Implement pagination for large datasets
Error Management
- Catch specific errors:
- PrismaClientKnownRequestError
- PrismaClientValidationError
- Provide contextual, user-friendly messages
- Log detailed debugging information
- Handle unique constraint violations gracefully
Architecture
- Separate data access from business logic
- Implement repository patterns
- Use dependency injection
- Follow SOLID principles
- Prefer composition over inheritance
Performance
- Use select to fetch only needed fields
- Implement proper indexing in schema
- Use batch operations for bulk updates
- Avoid N+1 queries with proper includes
- Use connection pooling in production
Testing
- Use in-memory databases for testing
- Implement comprehensive scenario coverage
- Mock Prisma client for unit tests
- Use database transactions for test isolation
Security
- Implement input validation
- Use Row Level Security patterns
- Rely on Prisma's built-in SQL injection protection
- Validate data at both schema and application level
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

