Skip to content

ericrisco/rsc-harness / skills/prisma-orm

prisma-orm

Verified

Use when modeling data or writing type-safe queries with Prisma ORM in TypeScript — `schema.prisma`, `prisma.config.ts`, the generated Prisma Client, and Prisma Migrate, including the v6 to v7 upgrade. NOT schema-as-TS with a SQL builder (that is `drizzle-orm`), NOT ORM-agnostic zero-downtime migration (that is `db-migrations`), NOT Postgres engine tuning (that is `postgresdb`).

FileKindSize
SKILL.mdskill md11.7 KB
evals/README.mdmarkdown889 B
evals/cases.yamlconfig3.3 KB
references/migrations-and-v7-upgrade.mdmarkdown6.7 KB
references/queries-and-performance.mdmarkdown7.0 KB
scripts/verify.shexecutablescript5.4 KB

evals/README.md

View on GitHub
# Evals — prisma-orm

These cases are graded by an LLM against `cases.yaml`, run through the repo's standard eval
harness (point it at this skill id). `should_trigger` and `should_not_trigger` check routing —
that Prisma-specific prompts land here and that Drizzle, cross-cutting migration strategy,
Postgres-server tuning, raw-SQL authoring, and managed-DB platform prompts route to the named
sibling instead. The `capability` case is scored against its `must_include` rubric: a correct
answer must produce a v7-correct setup (the `prisma-client` generator with `output`, a driver
adapter on the constructor, connection in `prisma.config.ts`) and an N+1-safe, bounded query
(`select` + `take` + `relationLoadStrategy: "join"`, FK indexed) plus the right dev/CI migrate
commands. There is no DB connection in any case; `scripts/verify.sh` covers the static-artifact
checks separately.
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall