prisma-composer

Build, test, and deploy Prisma Composer apps with typed services and modules.

Updated Jul 27, 2026
One-click install
npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-composer-soares-b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-composer
Source: https://github.com/Soares-B/Livia-Lace/tree/main/livia-lace/.cursor/skills/prisma-composer
Command: npx skills add https://github.com/Soares-B/Livia-Lace --skill prisma-composer-soares-b

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @prisma/composer, @prisma/composer-prisma-cloud.

What problem does it solve? Writing, wiring, testing, and deploying a Prisma App with @prisma/composer involves many framework-specific rules—typed service dependencies, RPC contracts, module composition, input schemas, migrations, and CLI deploy stages—that are easy to get wrong without guidance. ## Core Features & Use Cases - Service & Module Authoring: Declare services with compute(), typed dependencies, RPC contracts, and compose reusable Modules with exposed ports. - Data & Infrastructure: Add Postgres databases (raw or Prisma-ORM typed), S3-compatible buckets, cron schedules, blob storage, and event streams via first-party modules. - Testing & Deployment: Test with mockService/bootstrapService, run locally with prisma-composer dev, tail logs, and deploy or destroy stages with the CLI. - Use Case: You are building a storefront app with an auth service and a Postgres database; use this Skill to wire the services, author migrations, test handlers, and deploy to a stage. ## Quick Start Help me create a Prisma Composer app with a compute service that depends on a Postgres database and deploy it to a new stage.

Frequently Asked Questions about prisma-composer

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

FAQPage Schema
How do I create a service with Prisma Composer?

Declare a service with compute() from @prisma/composer-prisma-cloud, giving it a name, typed deps, a build definition, and optionally an exposed RPC contract. The server entry reads dependencies via service.load() and serves the contract with serve().

How do I add a Postgres database to a Prisma Composer app?

Use rawPostgres() for a { url } binding where you build your own client, or postgres(contract) for a Prisma-ORM typed client generated from contract.prisma. Migrations are authored with prisma migration plan and replayed at deploy.

How do I test Prisma Composer services?

Use mockService from @prisma/composer/testing for unit tests with typed dependency doubles, or bootstrapService from @prisma/composer-prisma-cloud/testing to boot the real built entry in-process against fake dependencies over HTTP.

How do I deploy a Prisma Composer app to a stage?

Run prisma-composer deploy module.ts --stage <name> after building your app, with PRISMA_SERVICE_TOKEN and PRISMA_WORKSPACE_ID set. Tear down with prisma-composer destroy using an explicit --stage or --production target.

Why does my Prisma Composer deploy fail with MIGRATION_PATH_NOT_FOUND?

The deploy only replays committed migrations and never creates schema itself. Edit contract.prisma, run prisma contract emit, then prisma migration plan --name <slug>, commit the migrations directory, and redeploy.

Can I call a deployed Prisma Composer RPC endpoint with curl?

No. Service-to-service calls are authenticated with per-binding service keys, so an unwired caller always receives a 401. Debug through a wired consumer service or run the app locally with prisma-composer dev.