Skip to content

Commit d7d1113

Browse files
sorenbsclaude
andcommitted
docs: link Agent Skills from the coding-agent sections
Every migrations page now opens its "Prompt your coding agent" section with the same line, linking /ai/tools/skills and phrased as "Ask your agent to:". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 9e0e4d3 commit d7d1113

6 files changed

Lines changed: 11 additions & 1 deletion

File tree

apps/docs/content/docs/orm/next/migrations/applying-a-migration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ Apply, targeting, preview, refs, the ledger, and multi-space runs all work today
169169

170170
## Prompt your coding agent
171171

172+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
173+
172174
- "Check migration status against staging and apply whatever is pending."
173175
- "Preview what `migrate --to prod` would run and summarize the destructive operations."
174176
- "Apply the pending migrations and advance the `db` ref."

apps/docs/content/docs/orm/next/migrations/editing-a-migration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ The typed-builder wiring and the raw Mongo command shapes above are the current
223223

224224
## Prompt your coding agent
225225

226+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
227+
226228
- "Fill in the placeholder in the latest migration: backfill `displayName` with the user's email prefix."
227229
- "Add a data transform to this migration that normalizes existing `phone` values before the unique constraint."
228230
- "Recompile the migration I just edited and show me the ops.json diff."

apps/docs/content/docs/orm/next/migrations/generating-a-migration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ Planning covers tables, columns, indexes, constraints, and the backfill scaffold
204204

205205
## Prompt your coding agent
206206

207+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
208+
207209
- "Add a required `displayName` field to User, emit the contract, and plan the migration."
208210
- "Plan a migration named `add-orders-table` and show me its DDL preview before I commit it."
209211
- "Run `migration check` and explain any integrity failures."

apps/docs/content/docs/orm/next/migrations/how-migrations-work.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Prisma Next is in Early Access and migrations are one of its newest parts. The c
170170

171171
## Prompt your coding agent
172172

173-
Projects scaffolded with `create-prisma` install Prisma Next skills for your coding agent. Prompts that map to this page:
173+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
174174

175175
- "Add a `phone` field to the User model and plan a migration for it."
176176
- "Show me the pending migrations and what SQL they will run."

apps/docs/content/docs/orm/next/migrations/rollbacks-and-recovery.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Reverse planning (`--to <dir>^`), destructive-operation warnings, resumable re-r
106106

107107
## Prompt your coding agent
108108

109+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
110+
109111
- "Plan a rollback for the last migration and show me its destructive operations before I decide."
110112
- "This migrate run failed. Read the error, fix the migration, and re-run it."
111113
- "Check whether staging has drifted from the contract and explain the differences."

apps/docs/content/docs/orm/next/migrations/the-migration-graph.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ The graph, pathfinding, refs, and the marker/ledger model all work today. What d
108108

109109
## Prompt your coding agent
110110

111+
Projects scaffolded with `create-prisma` install [Prisma Next skills](/ai/tools/skills) for your coding agent. Ask your agent to:
112+
111113
- "Draw the migration graph for this project and explain the branches."
112114
- "Which contract state is the `prod` ref pointing at, and is the database there yet?"
113115
- "Two feature branches both added migrations. Check whether they conflict."

0 commit comments

Comments
 (0)