SKILL.md is categorized into eight priority levels: client construction (new versions require creating a database adapter first and passing it to PrismaClient), model queries, select / include / omit and pagination/sorting, filter operators, relation reads and nested writes, array-style and interactive transactions, safe usage of $queryRaw and $executeRaw, and lifecycle methods and extensions. It triggers when writing database queries or mentioning findMany, $transaction, etc.
Why it matters Agents often write Prisma code using outdated patterns. This reference is organized according to the current client construction method and query techniques, with safe practices highlighted for native SQL parts.
skills.sh installs 444219 (+1576 / 24h)
Security Audit: Risk warnings present
- Reads environment variables or requires API Key / Token
- Audit scope: GitHub prisma/skills/prisma-client-api/SKILL.md (only scans SKILL.md text)
Reasoning
- skills.sh installs 1576 in the last 24 hours, with a cumulative total of 444219 (indicating attention only); Prisma is an official publisher, and there are 10 other skills from the same repository on the list
- This is a documentation-type skill that provides only code examples and rules, without requiring agents to execute commands
Usage
- Run npx skills add https://github.com/prisma/skills --skill prisma-client-api, then ask the agent to "write an article list query using Prisma that filters by tags with pagination, and place article creation and tag assignment in the same transaction"
Risks
- The audit note about reading environment variables aligns with its purpose: examples use DATABASE_URL to connect to the database, but the skill itself does not require providing a key
- It only covers Prisma Client usage; table creation, migrations, and deployment require coordination with other skills in the same repository