docs(cli): show npm install after prisma init #8413
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
wmadden-electric
Following the CLI page's "Agent skills" commands in a project that doesn't have
prismayet fails at the second command:This PR adds
npm installbetween those two commands on the CLI index page. It also makes theinitreference say whatinitdoes topackage.json, so readers know when the install is needed.Why the install is needed
initwrites aprisma.config.tsthat importsprisma/config. That import resolves fromnode_modules, so it only works once theprismapackage is installed.When the project doesn't list
prismayet,initadds it todevDependencies, pinned to the CLI's version. But it doesn't install it. Until you runnpm install, every command that readsprisma.config.tsstops with the error above.init's own output ends by telling you to runnpm install, but the docs never showed that step.When the project already lists
prisma,initleaves that entry alone, and the install isn't needed.Changes
initreference (cli/init.mdx):- lists adding the
prismadev dependency as one of the four thingsinitdoes, and says an existingprismaentry is left alone;- shows
npm installafterinitin Usage, with a note that it matters wheninitaddedprisma;- corrects "No other command edits
package.json":orm initalso addsprisma;- updates
metaDescriptionto match.cli/index.mdx): the "Agent skills" commands now runnpm installbetweeninitandskills sync.Pages left unchanged
The other pages that run
initalready haveprismainstalled by then:orm initfirst, which installsprisma@latest.Alternatives considered
init. On the pages above it does nothing, and an extra step with no effect would confuse readers.initrun 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