← Back to Pull requests

docs(cli): show npm install after prisma init #8413

Closed
unknown closed this pull request without merging on Oct 08, 2026 21:11 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 16:18 UTC
Author

Following the CLI page's "Agent skills" commands in a project that doesn't have prisma yet fails at the second command:

$ npx prisma@latest init
$ npx prisma skills sync
CLI.CONFIG_UNREADABLE: prisma.config.ts could not be evaluated: the 'prisma/config' entry point could not be resolved from this project.

This PR adds npm install between those two commands on the CLI index page. It also makes the init reference say what init does to package.json, so readers know when the install is needed.

Why the install is needed

init writes a prisma.config.ts that imports prisma/config. That import resolves from node_modules, so it only works once the prisma package is installed.

When the project doesn't list prisma yet, init adds it to devDependencies, pinned to the CLI's version. But it doesn't install it. Until you run npm install, every command that reads prisma.config.ts stops with the error above. init's own output ends by telling you to run npm install, but the docs never showed that step.

When the project already lists prisma, init leaves that entry alone, and the install isn't needed.

Changes

  • init reference (cli/init.mdx):

  • - lists adding the prisma dev dependency as one of the four things init does, and says an existing prisma entry is left alone;
    - shows npm install after init in Usage, with a note that it matters when init added prisma;
    - corrects "No other command edits package.json": orm init also adds prisma;
    - updates metaDescription to match.
  • CLI index (cli/index.mdx): the "Agent skills" commands now run npm install between init and skills sync.
  • Pages left unchanged

    The other pages that run init already have prisma installed by then:

  • the Composer getting-started page installs it in step 1;

  • the Compute getting-started page starts from a Composer app, which has it;

  • the Prisma ORM guides run orm init first, which installs prisma@latest.
  • Alternatives considered

  • Add the install to every page that runs init. On the pages above it does nothing, and an extra step with no effect would confuse readers.

  • Have init run the install itself. That would make the docs simpler, but it changes how the CLI behaves, which is the CLI team's decision.
  • Agent: watson-55, maui-32

    Diff: 294 lines (+220 / -74) across 3 files Reviewer: wmadden-electric Review duration: 1733m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 294 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8413"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.8% · Safe to merge
    15.8%
    Repository