prisma-composer-core-concepts

Explains Prisma Composer concepts for declaring, wiring, deploying, and testing composed TypeScript services.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/sristigupta04/Airbnb-app --skill prisma-composer-core-concepts-sristigupta04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-composer-core-concepts
Source: https://github.com/sristigupta04/Airbnb-app/tree/main/Full-stack/.cursor/skills/prisma-composer-core-concepts
Command: npx skills add https://github.com/sristigupta04/Airbnb-app --skill prisma-composer-core-concepts-sristigupta04

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Prisma Composer apps are built from typed declarations whose behavior cannot be inferred from code or CLI help output alone. This Skill provides the conceptual model—services, modules, contracts, inputs, deploys, and testing—needed to correctly wire, deploy, and debug an app built with @prisma/composer. ## Core Features & Use Cases - Declaration and wiring model: Explains services, resources, modules, typed ports, and how provision() connects them with compile-time verification. - Deploy and environment guidance: Covers the converge-based deploy model, stages, destroy semantics, migrations, and the alchemy engine underneath. - Testing and troubleshooting: Documents mockService and bootstrapService testing seams plus a quick reference of common failure modes like effect version conflicts and 401 RPC errors. - Use Case: When deploying a Prisma Composer app fails with MIGRATION_PATH_NOT_FOUND or a service returns 401 to a curl request, consult this Skill to understand why and apply the correct fix. ## Quick Start Ask the AI to explain how to wire a Postgres database dependency into a Prisma Composer service and deploy it to a new stage.

Frequently Asked Questions about prisma-composer-core-concepts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I wire a database dependency in Prisma Composer?

Declare the dependency with deps: { db: rawPostgres() } or postgres(dataContract) on the service, then connect it in a module's builder via provision(). At runtime the service reads the binding through service.load(), which returns { url } or { url, client }.

How do I test a Prisma Composer service?

Use mockService from @prisma/composer/testing to substitute typed dependency doubles for isolated unit tests, or bootstrapService from @prisma/composer-prisma-cloud/testing to boot the real built entry in-process and drive it over real HTTP.

Why does my deployed Prisma Composer RPC endpoint return 401?

Composer mints a per-binding service key at deploy and serve() rejects any caller that is not a wired consumer with 401 before the handler runs. This is expected behavior, not a broken deploy; debug through a wired consumer or locally where nothing is enforced.

Why do prisma-composer commands fail with an effect version conflict?

A hoisted newer effect package overrode Composer's exact pin required by the alchemy engine. Pin the whole effect constellation (effect plus @effect/sql-d1, @effect/sql-pg, @effect/vitest, and @effect/platform packages) in package.json overrides and reinstall.

What causes MIGRATION_PATH_NOT_FOUND in Prisma Composer deploys?

Deploys are replay-only and apply only migrations committed under migrations/. After editing contract.prisma, run prisma contract emit then prisma migration plan --name <slug> to author the missing migration before deploying.

Does Prisma Composer support Windows or streaming responses?

Local dev does not support Windows yet. The platform ingress buffers streaming responses, so open SSE tails time out at 60 seconds; RPC over HTTP is the only contract kind, with no gRPC, WebSocket, or streaming contracts.