Skip to content

docs(guides): agent prompts come after the human steps - #8352

Merged
wmadden-electric merged 9 commits into
mainfrom
docs/agent-prompts-last
Sep 30, 2026
Merged

wmadden-electric merged 9 commits into
mainfrom
docs/agent-prompts-last

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Open the Hono guide today and the section straight after Prerequisites is "Use with your agent", a prompt to hand to a coding agent, before a single step a person follows. After this change the guide reads:

## Introduction
## Prerequisites
## 1. Scaffold the project
## 2. Initialize the database
## 3. Run the server
## 4. Add a POST route
## 5. Deploy to Prisma Compute
## Common gotchas
## Use with your agent
## Next steps

The same move applies to /prisma-orm, /getting-started, the ten framework guides, and the two runtime guides. No prompt text changes.

The decision

Human instructions first, the agent prompt last. This is the direct answer to the "the docs are written for AI" complaint in the Prisma ORM 8 docs audit (item A3; slice 04, spec at docs/orm-docs-audit/slices/04-agent-prompts-last/spec.md on the docs/orm8-docs-audit-design branch, #8243).

What changed, step by step

  1. Twelve guides (guides/frameworks/astro, elysia, hono, nestjs, nextjs, nuxt, react-router-7, solid-start, sveltekit, tanstack-start, guides/runtimes/bun, deno): the ## Use with your agent section moves to directly before ## Next steps. Six of them also had a ## Prompt your coding agent section at the end; on those, the two are now one ## Use with your agent section, in the order prompt block, skills pointer, follow-up prompts. Because the prompt's first step already runs npx prisma@latest init, the skills pointer now says so and tells a reader who followed the steps by hand to run it once themselves.
  2. /prisma-orm: ## Use with your agent is the last section, after "Learn the concepts".
  3. /getting-started: the two prompts leave their sections and sit together in one closing ## Use with your agent section, each with a lead line saying which project it is for. They stay untitled so the .md rendition keeps one heading (a titled prompt renders as its own heading there).
  4. guides/making-guides.mdx: the required sections and the template now read Introduction, Prerequisites, numbered steps, Common gotchas, Use with your agent, Next steps.

Verification

  • For each guide, the sorted non-blank lines before and after are identical apart from the removed heading and the two reworded skills-pointer sentences on the six merged guides.
  • The reader-review scripts pass on /getting-started, /prisma-orm, making-guides.mdx, and the merged guides; one cold reader round on /getting-started and the Hono guide flagged the two sentences the merge created (now fixed) and pre-existing prompt content, which is out of scope and recorded as E22 and E23 in changes.md on the audit branch.
  • lint:links (0 errors), lint:versions (every pinned version current), test (70 pass).
  • Rendered in the docs app: /docs/getting-started, /docs/prisma-orm, and /docs/guides/frameworks/hono show the prompt as the last section before Next steps.

Left for a follow-up slice

The guides under guides/database, guides/deployment, guides/integrations, and guides/switch-to-prisma-orm, composer/porting-an-app.mdx, the full-stack tutorial, and the ## Prompt your coding agent sections under orm/ follow the same pattern and get the same move once this one is in. Recorded under A3 in changes.md.

Alternatives considered

Stacked on #8350 (base docs/quickstart-by-starting-point); retarget to main when that merges.

Agent: gulliver-20

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated getting-started guidance with setup paths for existing PostgreSQL and MongoDB projects, an after-setup checklist, and prompts for working with an AI coding agent.
    • Expanded and reorganized AI-agent guidance across framework and runtime guides, covering project setup, database configuration, local verification, and deployment where applicable.
    • Updated the guide template to place agent instructions after setup steps and common gotchas, and consolidated instructions with skills-install guidance and follow-up prompts.

wmadden-electric and others added 9 commits September 30, 2026 08:15
The Getting Started > Prisma ORM sidebar now has one Quickstart group with four entries: I'm creating a new app, I have an app but no database yet, I have a database already, and I have a Prisma 7 app. No URL changes.

Adds the page pair for an app with an empty database, for PostgreSQL and MongoDB. Extends the PostgreSQL page for an existing database with what contract infer reads, what db sign checks, and the second migration. Each page in a pair names its database and links its twin. The Prisma ORM introduction shows the four starting points as cards, and link text across the docs uses the new page titles.

Every command and output block on the new and extended pages comes from a run against prisma 8.0.0-rc.19 and the ORM packages at 8.0.0-rc.13.

Agent: nimue-20
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…fix reader marks

The MongoDB twins and from-scratch were no longer in any meta.json, so they opened with the top-level "All docs" sidebar. A meta.json can now name pages under `hiddenPages`: they belong to that folder, so they keep its section's sidebar, but the sidebar and the previous/next links do not list them. The Quickstart folder uses it for its four hidden pages and still shows exactly four entries. The orphaned add-to-existing-project/meta.json is removed.

The PostgreSQL page for an existing database now uses the flags form of orm init, explains which Node.js versions need temporal-polyfill for date and time columns and where the import goes, shows how to model a table in another PostgreSQL schema, and says that db sign fails when a table with row-level security policies has no model. The MongoDB pages say why the id field is _id in queries and results. All four existing-app pages get the fixes from two cold reader rounds.

Every new command and output comes from runs against prisma 8.0.0-rc.19 and the ORM packages at 8.0.0-rc.13.

Agent: nimue-20
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
… the 24.11 carve-out

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
…us and the quickstarts

The 'I have an app, but no database yet' flow for PostgreSQL passes every step on Node.js 24.10.0 and 24.11.1 alike (prisma 8.0.0-rc.19, @prisma/orm-postgres 8.0.0-rc.13), so the range is not a known break. 24.11 is where Node.js 24 became a long-term support release.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
On /prisma-orm, /getting-started, the ten framework guides, and the two runtime guides, the 'Use with your agent' section moves from before the steps to directly before Next steps. Where a guide also had 'Prompt your coding agent', the two are one section now. The guide rules in making-guides.mdx describe the new order.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
…erged guides

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Sep 30, 2026 7:56am UTC
docs Ready Ready Preview Sep 30, 2026 7:56am UTC
eclipse Ready Ready Preview Sep 30, 2026 7:56am UTC
site Ready Ready Preview Sep 30, 2026 7:56am UTC

Request Review

wmadden-electric added a commit that referenced this pull request Sep 30, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@github-actions

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

205 links: ✅ 16 OK | 🚫 0 errors | 🔀 5 redirects | 👻 189 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 16
🔀 Redirected 5
👻 Excluded 189
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 7345f854-54cd-4ad5-92b5-ff3e0f56dfe1

📥 Commits

Reviewing files that changed from the base of the PR and between 8956b0b and 8956b0b.

📒 Files selected for processing (47)
  • apps/docs/content/docs/(index)/getting-started.mdx
  • apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/meta.json
  • apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx
  • apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/postgresql.mdx
  • apps/docs/content/docs/(index)/prisma-orm/create-prisma.mdx
  • apps/docs/content/docs/(index)/prisma-orm/from-scratch.mdx
  • apps/docs/content/docs/(index)/prisma-orm/index.mdx
  • apps/docs/content/docs/(index)/prisma-orm/meta.json
  • apps/docs/content/docs/(index)/prisma-orm/quickstart/existing-app/mongodb.mdx
  • apps/docs/content/docs/(index)/prisma-orm/quickstart/existing-app/postgresql.mdx
  • apps/docs/content/docs/(index)/prisma-orm/quickstart/meta.json
  • apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx
  • apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx
  • apps/docs/content/docs/(index)/prisma-postgres/from-the-cli.mdx
  • apps/docs/content/docs/(index)/prisma-postgres/import-from-existing-database-mysql.mdx
  • apps/docs/content/docs/(index)/prisma-postgres/quickstart/prisma-orm.mdx
  • apps/docs/content/docs/cli/index.mdx
  • apps/docs/content/docs/cli/orm-init.mdx
  • apps/docs/content/docs/guides/authentication/authjs/nextjs.mdx
  • apps/docs/content/docs/guides/authentication/better-auth/astro.mdx
  • apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx
  • apps/docs/content/docs/guides/authentication/clerk/astro.mdx
  • apps/docs/content/docs/guides/authentication/clerk/nextjs.mdx
  • apps/docs/content/docs/guides/database/schema-changes.mdx
  • apps/docs/content/docs/guides/index.mdx
  • apps/docs/content/docs/guides/integrations/datadog.mdx
  • apps/docs/content/docs/guides/integrations/deno.mdx
  • apps/docs/content/docs/guides/integrations/embed-studio.mdx
  • apps/docs/content/docs/guides/integrations/permit-io.mdx
  • apps/docs/content/docs/guides/integrations/pgfence.mdx
  • apps/docs/content/docs/guides/integrations/plasmic.mdx
  • apps/docs/content/docs/guides/integrations/shopify.mdx
  • apps/docs/content/docs/guides/making-guides.mdx
  • apps/docs/content/docs/guides/postgres/flyio.mdx
  • apps/docs/content/docs/guides/postgres/netlify.mdx
  • apps/docs/content/docs/guides/switch-to-prisma-orm/from-sql-orms.mdx
  • apps/docs/content/docs/orm/extensions/using-extensions.mdx
  • apps/docs/content/docs/orm/middleware/authoring-custom-middleware.mdx
  • apps/docs/content/docs/orm/migrations/generating-a-migration.mdx
  • apps/docs/content/docs/orm/migrations/how-migrations-work.mdx
  • apps/docs/content/docs/orm/release-status.mdx
  • apps/docs/content/docs/orm/supported-databases.mdx
  • apps/docs/source.config.ts
  • apps/docs/src/lib/hidden-pages.test.ts
  • apps/docs/src/lib/hidden-pages.ts
  • apps/docs/src/lib/source.ts
  • apps/docs/src/lib/versioned-sidebar-tree.ts
 ____________________________________________________________________________________________________________________________________________
< Every great developer you know got there by solving problems they were unqualified to solve until they actually did it. - Patrick McKenzie >
 --------------------------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: afb0e3b9-2b8d-4f40-9ff1-402185f49b61

📥 Commits

Reviewing files that changed from the base of the PR and between c229f38 and 8956b0b.

📒 Files selected for processing (15)
  • apps/docs/content/docs/(index)/getting-started.mdx
  • apps/docs/content/docs/(index)/prisma-orm/index.mdx
  • apps/docs/content/docs/guides/frameworks/astro.mdx
  • apps/docs/content/docs/guides/frameworks/elysia.mdx
  • apps/docs/content/docs/guides/frameworks/hono.mdx
  • apps/docs/content/docs/guides/frameworks/nestjs.mdx
  • apps/docs/content/docs/guides/frameworks/nextjs.mdx
  • apps/docs/content/docs/guides/frameworks/nuxt.mdx
  • apps/docs/content/docs/guides/frameworks/react-router-7.mdx
  • apps/docs/content/docs/guides/frameworks/solid-start.mdx
  • apps/docs/content/docs/guides/frameworks/sveltekit.mdx
  • apps/docs/content/docs/guides/frameworks/tanstack-start.mdx
  • apps/docs/content/docs/guides/making-guides.mdx
  • apps/docs/content/docs/guides/runtimes/bun.mdx
  • apps/docs/content/docs/guides/runtimes/deno.mdx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.


Walkthrough

The PR updates agent-prompt placement and instructions across getting-started pages and framework and runtime guides. It also updates the guide-authoring template to specify the prompt section’s position and format.

Changes

Agent prompt documentation

Layer / File(s) Summary
Getting-started setup and prompt placement
apps/docs/content/docs/(index)/getting-started.mdx, apps/docs/content/docs/(index)/prisma-orm/index.mdx
The getting-started page adds existing-project setup links and moves its “After setup” checklist. The Prisma ORM agent prompt moves after “Learn the concepts” with its content unchanged.
Framework and runtime agent prompts
apps/docs/content/docs/guides/frameworks/*, apps/docs/content/docs/guides/runtimes/*
The guides move agent prompts later in the guide and revise instructions for setup, Prisma skills, and local verification. Some prompts also cover authentication checks, deployment-specific database handling, and HostedStateBootstrapError.
Guide authoring template
apps/docs/content/docs/guides/making-guides.mdx
The template places “Use with your agent” after the numbered steps and common gotchas. It specifies an AgentPrompt block, a guide URL, Prisma ORM skills guidance, and follow-up prompts.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related PRs

  • prisma/web#8238: Updates commands and Prisma skill guidance in agent prompts in several of the same getting-started and framework guide files.

Suggested reviewers: ankur-arch

Merge Risk: ⚪ Minimal · up to 8956b

The documentation reordering has no identified merge-blocking issue. Setup guidance and agent-prompt prerequisites remain intact; merge after normal checks.

Architecture Summary

Architecture risk: 🔵 Low · up to 8956b

The change affects 1 system.

Changed systems: apps/docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — apps/docs (service) was modified; 15 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in apps/docs/content/docs/(index)/getting-started.mdx: Adds existing-project setup links for PostgreSQL and MongoDB, an “After setup” checklist, and an introduction to agent prompts for both setup paths.
  • observed — Modified behavior in apps/docs/content/docs/(index)/getting-started.mdx: Replaces the duplicate existing-project heading, command, and cards with a sentence directing existing-app users to the following prompt.
  • observed — Modified behavior in apps/docs/content/docs/(index)/getting-started.mdx: Removes the trailing “After setup” checklist, which is now presented earlier on the page.
  • observed — Modified behavior in apps/docs/content/docs/(index)/prisma-orm/index.mdx: The “Use with your agent” section and its prompt were removed from this position; the section is relocated later in the page.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: moving agent prompts after the human-directed guide steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from docs/quickstart-by-starting-point to main September 30, 2026 08:05
@wmadden-electric
wmadden-electric merged commit 12eec49 into main Sep 30, 2026
11 of 12 checks passed
@wmadden-electric
wmadden-electric deleted the docs/agent-prompts-last branch September 30, 2026 08:07

This branch was successfully deployed

4 active deployments
Preview – docs — 8956b0b9 Deployed Sep 30, 2026 by vercel[bot]
Preview – blog — 8956b0b9 Deployed Sep 30, 2026 by vercel[bot]
Preview – site — 8956b0b9 Deployed Sep 30, 2026 by vercel[bot]
Preview – eclipse — 8956b0b9 Deployed Sep 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants