docs(cli): agent skills in a workspace live at the root (prisma 8.0.0-rc.38), and regenerate the CLI error reference #9029
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 627 lines diff across 7 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.385
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #9029"
general
weight: 0.35
wmadden-electric
At a glance
prisma skills synccopies the agent skills (instruction files for coding agents) that Prisma packages ship into folders such as.claude/skills/. Sinceprisma8.0.0-rc.38, a pnpm, npm, Yarn or Bun workspace keeps one set of these files, at the workspace root, configured by the root'sprisma.config.ts. That holds even when you run the command inside a package. The CLI pages on this site still describe the old behaviour, where each package kept its own. This PR brings them up to date and regenerates the CLI error reference.What changes on the site
cli/skillsgets a new section, "In a workspace":- Inside a workspace package, these commands and checks all use the workspace root:
skills sync,skills list, the out-of-date notice that otherprismacommands print, and the setting that turns that notice off.- A
skillssection in a package's own config has no effect, and the CLI warnsSKILLS.MEMBER_CONFIG_IGNORED.- How the CLI finds the root.
- To set the workspace up, run
prisma initonce at the root. It adds thepostinstallhook there, andprismaas a dev dependency of the root itself. The root needs its ownprismabecause pnpm runs the root'spostinstallwith only the root's installed binaries on the path.- What the
SKILLS.MEMBER_LEFTOVERwarning reports, and what to do with each item. These are files that releases before rc.38 left in a package.cli/init: "In a monorepo package" now covers both cases whereinitwrites only aprisma.config.ts:- the package is under a parent config (already documented);
- the package is a workspace member (new in rc.38).
The
--skillsoption row and the scaffold example now match.cli/configurationandai/tools/skills: one sentence each, linking the new section.cli/error-reference: regenerated with the repository's generator fromprisma8.0.0-rc.39, the currentlateston npm. Before this PR it was built from rc.36. It gains seven codes, and none are removed or renamed. The new codes include the two skills warnings andCLI.SECOND_PACKAGE_COPY. That error stops an ORM or Composer command when theprismayou ran would load a different copy of the ORM packages than your project's own.The behaviour arrived in rc.38. rc.39 changed nothing in the CLI itself, so it needs no further page changes.
Checked
Every statement was checked against the CLI's source and its product docs on
prisma/prisma-climain. The links to new anchors were checked by hand against the headings and the generated[#CODE]anchors. CI runslint:linksand the build.Known gap after merge
The Turborepo, pnpm workspaces and Bun workspaces guides still tell you to run
prisma initinsidepackages/database. Once this merges, they contradict the newcli/skillssection. They need a rewrite that runsinitat the workspace root. They also quote a hint thatorm initprints, "Set up the Prisma agent skills for your coding agent: prisma init", which is wrong inside a workspace package. That is a Prisma ORM defect.apps/docs/AGENTS.mdsays such passages wait for the tool fix. The ORM docs work picks up the hint fix and the guides together.Also left out:
prisma init --postinstallinside a workspace package adds a hook that the CLI then warns about. A separate prisma-cli PR fixes it. Until then, theinitpage doesn't suggest that flag in a workspace package.Agent: cobain-55
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Clarified how initialization and AI skill setup work in monorepos and package-manager workspaces, including which configuration applies and where skills are managed.
Added guidance on workspace detection, Git repository boundaries, skipped setup steps, and leftover member-level skill files or scripts.
Expanded the CLI error reference with workspace-related diagnostics, additional deployment errors, and details about warnings that may accompany successful runs.
* Updated error-reference coverage and version information, and added links to related workspace guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->