prisma-composer-core-concepts

Explains Prisma Composer concepts for composing, deploying, and testing typed service applications.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/Sonal-Github1/CeylonWise --skill prisma-composer-core-concepts-sonal-github1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-composer-core-concepts
Source: https://github.com/Sonal-Github1/CeylonWise/tree/main/frontend/.cursor/skills/prisma-composer-core-concepts
Command: npx skills add https://github.com/Sonal-Github1/CeylonWise --skill prisma-composer-core-concepts-sonal-github1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Prisma Composer apps are built from typed declarations whose wiring rules, deploy model, and failure modes cannot be discovered from code or CLI help alone, leading to miswired services, failed deploys, and confusing runtime errors. ## Core Features & Use Cases - Conceptual reference: Covers declarations, ports, contracts, RPC, input schemas, secrets, migrations, and the converge-based deploy model for @prisma/composer apps. - Failure-mode guidance: Documents known issues such as effect version conflicts, 401s on unwired RPC calls, scale-to-zero connection resets, and MIGRATION_PATH_NOT_FOUND errors. - Use Case: While deploying a Prisma Cloud app, a deploy fails with a connection contract refusal naming a missing param; consult this Skill to understand the refusal and fix the producer or consumer end correctly. ## Quick Start 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 dependencies between services in Prisma Composer?

Declare what a node requires in its deps ports and wire producers to consumers inside a Module builder using provision(). Because ports are typed, the TypeScript compiler verifies every wire, so mismatches fail tsc rather than the deploy.

How do database migrations work in Prisma Composer deploys?

Deploys are replay-only: they apply migrations committed under migrations/ and never create schema. Edit contract.prisma, run prisma contract emit, then prisma migration plan, commit the migrations, and deploy; skipping the plan step causes MIGRATION_PATH_NOT_FOUND.

Why does my deployed Prisma Composer RPC endpoint return 401?

Composer mints a per-binding service key at deploy and serve() returns 401 to any caller that is not a wired consumer. 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?

The alchemy engine pins an exact effect version, and a hoisted newer effect from your app or a dependency halts every command. Match your app's effect to @prisma/composer's pin or force it with overrides in package.json, then reinstall.

Can I test Prisma Composer services without deploying?

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

What are the limitations of Prisma Composer?

There is no interactive CLI login (deploys use a static PRISMA_SERVICE_TOKEN), no in-memory contract bindings, and RPC over HTTP is the only contract kind. Windows is not supported for local dev, and streamed HTTP responses time out at the ingress.