prisma-7
Prisma 7 ORM with Rust-free client, 90% smaller bundles, TypedSQL, Omit API, and ESM-first architecture. Use when working with database, schema, migrations, queries, or relations.
What this skill does
# Prisma 7 ORM Rust-free TypeScript ORM with 90% smaller bundles and 3x faster queries. ## Agent Workflow (MANDATORY) Before ANY implementation, use `TeamCreate` to spawn 3 agents: 1. **fuse-ai-pilot:explore-codebase** - Analyze existing schema and database patterns 2. **fuse-ai-pilot:research-expert** - Verify latest Prisma 7 docs via Context7/Exa 3. **mcp__context7__query-docs** - Check breaking changes and migration guide After implementation, run **fuse-ai-pilot:sniper** for validation. --- ## Overview ### When to Use - Database access in Next.js 16 applications - Type-safe queries with full TypeScript inference - Schema-first database modeling and migrations - Complex queries requiring TypedSQL - Excluding sensitive fields with Omit API ### Why Prisma 7 | Feature | Benefit | |---------|---------| | Rust-free client | 90% smaller bundles (14MB → 1.6MB) | | Query performance | Up to 3x faster on large datasets | | ESM-first | Native ES modules, modern architecture | | TypedSQL | Type-safe raw SQL queries | | Omit API | Exclude sensitive fields globally | | Driver adapters | Direct database driver integration | --- ## Breaking Changes from v6 ### Critical Migration Points | Change | v6 | v7 | |--------|----|----| | Provider | `prisma-client-js` | `prisma-client` | | Output path | Optional | **REQUIRED** | | Import | `@prisma/client` | `./generated/prisma/client` | | Drivers | Built-in | Adapter required | | Config | Schema only | `prisma.config.ts` | ### Required Schema Changes Provider must be `prisma-client` with explicit output path. No more generation to `node_modules`. ### Driver Adapters Required PostgreSQL requires `@prisma/adapter-pg`, MySQL requires `@prisma/adapter-mariadb`, SQLite requires `@prisma/adapter-better-sqlite3`. --- ## SOLID Architecture ### Module Structure Database code organized in `modules/cores/db/`: - `modules/cores/db/prisma.ts` - Singleton PrismaClient - `modules/cores/db/generated/` - Generated client - `prisma/schema.prisma` - Schema definition - `prisma/migrations/` - Migration history - `prisma.config.ts` - Prisma configuration ### File Organization | File | Purpose | Max Lines | |------|---------|-----------| | `prisma.ts` | Singleton client | 30 | | `schema.prisma` | Models, relations | 100 per section | | `seed.ts` | Database seeding | 50 | --- ## Key Concepts ### Singleton Pattern (Next.js) Prevent multiple PrismaClient instances during hot-reload. Use `globalThis` to cache instance in development. ### Output Path Generated client goes to custom path, not `node_modules`. Import from generated folder. ### Driver Adapters Direct database driver integration for better performance and control. Configure connection pooling at driver level. ### TypedSQL Write raw SQL with full type safety. Results are typed based on query. ### Omit API Exclude fields globally or per-query. Perfect for passwords and sensitive data. --- ## Reference Guide (130 files) ### Core Setup | Need | Reference | |------|-----------| | Initial setup | `installation.md` | | PrismaClient singleton | `client.md` | | Client API methods | `client-api.md` | | Configuration | `prisma-config.md` | | CLI commands | `cli-reference.md` | | Editor setup | `editor-setup.md` | ### Schema & Modeling | Need | Reference | |------|-----------| | Schema design | `schema.md` | | Schema syntax | `schema-reference.md` | | Data modeling | `data-modeling.md` | | Field attributes | `field-attributes.md` | | Model attributes | `model-attributes.md` | | Enums | `enums.md` | | Default values | `default-values.md` | | Composite types | `composite-types.md` | | Scalar lists/arrays | `scalar-lists.md` | | Referential actions | `referential-actions.md` | ### Queries & Operations | Need | Reference | |------|-----------| | CRUD operations | `queries.md` | | Relations | `relations.md` | | Filtering | `filtering.md` | | Sorting | `sorting.md` | | Select vs Include | `select-include.md` | | Pagination (cursor) | `pagination-cursor.md` | | Pagination (offset) | `pagination-offset.md` | | Distinct | `distinct.md` | | Count & exists | `count-exists.md` | | Case sensitivity | `case-sensitivity.md` | | Aggregations | `aggregations.md` | | Transactions | `transactions.md` | ### Advanced Queries | Need | Reference | |------|-----------| | TypedSQL | `typedsql.md` | | Raw queries | `raw-queries.md` | | JSON fields | `json-fields.md` | | Full-text search | `full-text-search.md` | | Views | `views.md` | | Stored procedures | `stored-procedures.md` | | Triggers | `triggers.md` | | Constraints | `constraints.md` | | Advanced indexes | `indexes-advanced.md` | ### Migrations | Need | Reference | |------|-----------| | Migration workflow | `migrations.md` | | Seeding | `seeding.md` | | Baselining | `baselining.md` | | Shadow database | `shadow-database.md` | | Migration history | `migration-history.md` | | Squashing | `squashing.md` | | Hotfixing | `hotfixing.md` | | Down migrations | `down-migrations.md` | | Data migrations | `data-migrations.md` | | Zero-downtime | `zero-downtime.md` | ### Performance | Need | Reference | |------|-----------| | Optimization | `optimization.md` | | Query optimization | `query-optimization.md` | | N+1 problem | `n-plus-one.md` | | Batching | `batching.md` | | Lazy loading | `lazy-loading.md` | | Caching strategies | `caching-strategies.md` | | Connection limits | `connection-limits.md` | | Cold starts | `cold-starts.md` | | Bundle size | `bundle-size.md` | | Accelerate | `accelerate.md` | | Connection pooling | `connection-pooling.md` | ### Security | Need | Reference | |------|-----------| | Connection URLs | `connection-urls.md` | | Environment variables | `environment-variables.md` | | SSL/TLS | `ssl-tls.md` | | SQL injection | `sql-injection.md` | | Row-level security | `row-level-security.md` | | Encryption | `encryption.md` | | Audit logging | `audit-logging.md` | | GDPR compliance | `gdpr-compliance.md` | ### Databases | Need | Reference | |------|-----------| | PostgreSQL | `postgresql.md` | | MySQL | `mysql.md` | | SQLite | `sqlite.md` | | MongoDB (deprecated) | `mongodb.md` | | CockroachDB | `cockroachdb.md` | | PlanetScale | `planetscale.md` | | Supabase | `supabase.md` | | Neon | `neon.md` | | Turso | `turso.md` | ### Extensions & Integrations | Need | Reference | |------|-----------| | Extensions | `extensions.md` | | Driver adapters | `driver-adapters.md` | | Omit API | `omit-api.md` | | Middleware (deprecated) | `middleware.md` | | Soft delete | `soft-delete.md` | | Read replicas | `read-replicas.md` | | Multi-database | `multi-database.md` | | Multi-schema | `multi-schema.md` | ### Framework Integrations | Need | Reference | |------|-----------| | Next.js | `nextjs-integration.md` | | Astro | `astro.md` | | Nuxt | `nuxt.md` | | SvelteKit | `sveltekit.md` | | SolidStart | `solidstart.md` | | Remix | `remix.md` | | React Router | `react-router.md` | | Hono | `hono.md` | | Express | `express.md` | ### Auth Integrations | Need | Reference | |------|-----------| | Clerk | `clerk.md` | | Auth.js | `authjs.md` | | Better Auth | `betterauth.md` | | Permit.io | `permit-io.md` | ### Deployment | Need | Reference | |------|-----------| | Deployment guide | `deployment.md` | | Vercel | `vercel.md` | | Netlify | `netlify.md` | | Railway | `railway.md` | | Render | `render.md` | | Fly.io | `flyio.md` | | AWS Lambda | `aws-lambda.md` | | Cloudflare Workers | `cloudflare-workers.md` | | Docker | `docker.md` | | Heroku | `heroku.md` | | Deno Deploy | `deno-deploy.md` | ### Tooling | Need | Reference | |------|-----------| | VS Code | `vscode.md` | | GitHub Copilot | `github-copilot.md` | | Tabnine | `tabnine.md` | | SafeQL | `safeql.md` | | Prisma AI | `prisma-ai.md` | | MCP Server | `mcp-server.md` | | Turborepo | `turborepo.md` | | pnpm workspaces | `pnpm-workspaces.md` | ### Monitoring | Need | Reference | |------|-----------| | Error handling | `error-handling.md` | | Error codes | `error-codes.md` | | L
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.