Prisma compute

From nitrocloudofficial/nitrostack · View interactive version

Prisma compute is an AI agent skill from the GitHub repository nitrocloudofficial/nitrostack. Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma/cli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps/depl

How to use this skill

Skill file

Prisma Compute

Guide agents through Prisma Compute app creation, deployment, operations, and framework-specific deploy readiness.

Prisma Compute CLI Surface

Use the Prisma Platform CLI for Compute app workflows:

bunx @prisma/cli@latest app deploy --help
bunx @prisma/cli@latest app --help
bunx @prisma/cli@latest build logs --help
bunx create-prisma@latest --help

Use @prisma/cli@latest for Compute app deployment. Use create-prisma@latest for new-project scaffolding.

Send Feedback and Report CLI Issues

The CLI has a built-in feedback channel. Use it whenever a command crashes (UNEXPECTED_ERROR), a failure survives troubleshooting, or the user asks to send feedback to the Prisma team:

bunx @prisma/cli@latest feedback "app deploy crashed: <first error line>"
bunx @prisma/cli@latest feedback "love the deploy flow" --email you@example.com

Crash output points here on its own: --json crash envelopes carry the exact pre-filled command as a recover entry in nextActions (run it verbatim), and human crash output ends with a Tell us what happened: hint. Feedback is anonymous unless --email is passed and attaches only the CLI version, node version, and OS platform/arch. Never include secrets, connection URLs, or user data in the message.

Source-of-Truth Order

Use evidence in this order when deciding what to edit or run:

  1. The project's generated scripts and config, especially prisma.compute.ts, compute:deploy, framework config, and package.json.
  2. CLI help output from create-prisma and @prisma/cli.
  3. Local installed package code, generated artifacts, and type definitions.
  4. Official docs.

When to Apply

Use this skill for:

Decision Tree

  1. Existing project deployment or redeploy:

Read CODE0.

  1. Typed Compute config, monorepos, deploy targets, app roots, or build/env defaults:

Read CODE0.

  1. Framework-specific build/runtime work:

Read CODE0.

  1. New project from a scaffold:

Read CODE0.

  1. Programmatic deployment, SDKs, APIs, or low-level App/Deployment concepts:

Read CODE0.

  1. Build, auth, env, deploy, or runtime failures:

Read CODE0.

Rules by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Command verification | CRITICAL | verify- |

| 2 | Auth and workspace selection | CRITICAL | auth- |

| 3 | Framework readiness | CRITICAL | framework- |

| 4 | Runtime host and port binding | CRITICAL | runtime- |

| 5 | Typed Compute config | HIGH | config- |

| 6 | Branch, environment, and database wiring | HIGH | env- |

| 7 | Deploy operations | HIGH | deploy- |

| 8 | SDK and API automation | MEDIUM | sdk- |

Quick Rules

1. Command Verification

2. Auth and Workspace Selection

3. Framework Readiness

4. Runtime Host and Port Binding

5. Typed Compute Config

6. Branch, Environment, and Database

7. Deploy Operations

8. SDK and API

Preferred Workflow

  1. Inspect the project: package manager, template/framework, package.json scripts, Prisma version, Prisma client location, prisma.compute.ts, and existing compute:deploy.
  2. Verify CLI help output for the package actually being used.
  3. Verify auth context before project/app mutations: auth whoami --json, and when multiple local sessions may exist, auth workspace list --json.
  4. Choose the path:
  1. Check framework readiness plus host/port/env/runtime requirements, including project and branch scope.
  2. Run a local build or app build before deploying when feasible.
  3. Deploy with JSON output when automating, then request the public URL and summarize app URL, app id, deployment id, project id, workspace id, and follow-up steps.
  4. For GitHub/Console builds, inspect the Prisma Compute Deploy check run or build logs <build-id> before guessing why a build failed.

Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.