docs/plans/agent-native/011-skill-mongodb-upgrade.md
A prisma-mongodb-upgrade skill in prisma/skills for the one user cohort with no road into
Prisma 7 at all: MongoDB users. Prisma 7 does not ship a MongoDB connector and never will —
v6 is the last classic-ORM major that supports MongoDB, and the supported future is Prisma
Next (the v8 lineage, currently Early Access). An agent that does not know this will either
recommend an upgrade that cannot work or silently rewrite an app onto a SQL database. The
skill gives agents the correct decision framing and the concrete migration mechanics.
prisma-upgrade-v7 explicitly does not apply to MongoDB
projects — cross-link both ways so agents route correctly from either entry point.schema.prisma with the mongodb provider (@db.ObjectId, composite/embedded
types, @@index on collections) → Prisma Next's type-safe contract; a mapping table for
models, embedded documents, indexes, and defaults.prisma-next.config.ts).$runCommandRaw, findRaw, aggregateRaw) — what
the Next equivalents are, or how to bridge where none exists yet.prisma migrate (only db push and index sync);
Next has a real contract-driven flow (emit / verify / sign / migrate). What that changes
operationally.prisma-next init's own skill installation; this
skill is the discovery bridge that lives where v6 users look (prisma/skills), not a
duplicate of prisma-next's upgrade cluster — link to it as the authoritative, always-latest
continuation.prisma-next version and its shipped skills before composing
commands from memory, and states which Next version the skill's own content was verified
against.prisma-mongodb-upgrade skill directory (SKILL.md + references/ per
repo conventions). Cross-links added in prisma-upgrade-v7 ("MongoDB? This guide does not
apply — see prisma-mongodb-upgrade") and prisma-database-setup.prisma-upgrade-v7 no longer leaves MongoDB users without a route (cross-link in place).main): proposed split — this skill owns discovery + decision framing + v6-side
preparation; the prisma-next cluster owns the Next-side specifics. Confirm with the
prisma-next maintainers.