← Back to Pull requests

docs(cli): agent skills in a workspace live at the root (prisma 8.0.0-rc.38), and regenerate the CLI error reference #9029

Closed
unknown closed this pull request without merging on Dec 03, 2026 11:55 UTC
View on GitHub
unknown unknown commented on Dec 03, 2026 11:10 UTC
Author

At a glance

prisma skills sync copies the agent skills (instruction files for coding agents) that Prisma packages ship into folders such as .claude/skills/. Since prisma 8.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's prisma.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.

my-monorepo/
├─ package.json            ← "postinstall": "prisma skills sync || exit 0", and prisma in devDependencies
├─ prisma.config.ts        ← skills: { agents: [...] } for the whole workspace
├─ .claude/skills/ …       ← the one set of skill files
└─ packages/database/      ← prisma skills sync run here also writes the root's files

What changes on the site

  • cli/skills gets 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 other prisma commands print, and the setting that turns that notice off.
    - A skills section in a package's own config has no effect, and the CLI warns SKILLS.MEMBER_CONFIG_IGNORED.
    - How the CLI finds the root.
    - To set the workspace up, run prisma init once at the root. It adds the postinstall hook there, and prisma as a dev dependency of the root itself. The root needs its own prisma because pnpm runs the root's postinstall with only the root's installed binaries on the path.
    - What the SKILLS.MEMBER_LEFTOVER warning 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 where init writes only a prisma.config.ts:

  • - the package is under a parent config (already documented);
    - the package is a workspace member (new in rc.38).

    The --skills option row and the scaffold example now match.

  • cli/configuration and ai/tools/skills: one sentence each, linking the new section.

  • cli/error-reference: regenerated with the repository's generator from prisma 8.0.0-rc.39, the current latest on 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 and CLI.SECOND_PACKAGE_COPY. That error stops an ORM or Composer command when the prisma you 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-cli main. The links to new anchors were checked by hand against the headings and the generated [#CODE] anchors. CI runs lint:links and the build.

    Known gap after merge

    The Turborepo, pnpm workspaces and Bun workspaces guides still tell you to run prisma init inside packages/database. Once this merges, they contradict the new cli/skills section. They need a rewrite that runs init at the workspace root. They also quote a hint that orm init prints, "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.md says such passages wait for the tool fix. The ORM docs work picks up the hint fix and the guides together.

    Also left out:

  • The ORM error reference, still built from ORM 8.0.0-rc.25. Regenerating it renames codes that about fifteen ORM pages still use, so it belongs with that same ORM docs work.

  • prisma init --postinstall inside a workspace package adds a hook that the CLI then warns about. A separate prisma-cli PR fixes it. Until then, the init page 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 -->

    Diff: 627 lines (+470 / -157) across 7 files Reviewer: wmadden-electric Review duration: 44m
    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
    0.55
    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.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
    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: 55.3% (MEDIUM) · Higher = larger blast radius
    55.3%
    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: 21.9% · Safe to merge
    21.9%
    Repository