projects/agent-native/plan.md
Spec: projects/agent-native/spec.md
Linear Project: Agent-Native Prisma ORM (anchor issue: TML-2967)
Four slices: a two-slice distribution stack (init install → generate offer) plus two independent parallel slices (MCP safety audit; typedSql unhide). The prisma/skills content suite is deliberately not sliced here — it is a sibling project in the prisma/skills repo (PRs cannot land there from this repo), tracked as an external dependency that gates S2's stable release.
Slice init-skill-install — Linear: TML-2968
prisma init installs the prisma/skills catalog for cursor, claude-code,
codex, and windsurf via a pinned skills CLI version; --no-skills opts out; install
failure is non-fatal and prints the manual command; results appear in the init summary.packages/cli/src/init/skill-install.ts:
package-manager detection, pinned version constant, runtime list, non-fatal error
handling) for S2 to reuse. Also files the release-tagging ask on prisma/skills.Slice generate-skill-offer — Linear: TML-2971
prisma generate; accept/decline/timeout all persist; at most
one prompt per run (offer preempts NPS); telemetry events flow via the PostHog path.timeout() from nps/survey.ts) available for any future prompt.safety-mcp-audit — Linear: TML-2969
prisma mcp's
migrate-reset tool with consent instructions intact; the MCP tool description mentions
the consent protocol.typed-sql-unhide — Linear: TML-2970
typedSql appears in schema autocomplete and valid-preview-feature error
listings; no behavioral change for schemas already enabling it.@prisma/prisma-schema-wasm bump PR with snapshot updates).safety-mcp-audit.generate-skill-offer (transitional constraint) and project-DoD
condition 4.prisma-mongodb-upgrade skill (draft task 011, TML-2973) — adopted directly into
this project by operator decision; its PR lands in prisma/skills. Guides MongoDB users
from v6 to Prisma Next (v7 never ships a MongoDB connector). Independent of the S2
release gate and of the sibling project's ceremony.init-skill-install; fallback (install from default branch) works without it.typed-sql-unhide — authored as part of that slice; needs an
engines reviewer.The stack order is forced by the shared runner (S2 consumes S1's module). Everything else is
parallel by design: the safety audit and the typedSql unhide touch disjoint surfaces and
neither reads nor writes the distribution code. The only cross-cutting ordering is a
release gate, not a merge gate: generate-skill-offer may merge dark behind its gating
logic, but must not reach a stable release before the sibling content project covers the
top failure modes (spec § Transitional-shape constraints).