Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/prisma/prisma-next/agents-mdgit clone --depth 1 https://github.com/prisma/prisma-nextWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/prisma/prisma-next/agents-md)<a href="https://agentmods.dev/instructions/prisma/prisma-next/agents-md"><img src="https://agentmods.dev/badge/instructions/prisma/prisma-next/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02671 | $0.02671 |
| Opus 5 | $0.01336 | $0.01336 |
| Sonnet 5 | $0.00534 | $0.00534 |
| Haiku 4.5 | $0.00267 | $0.00267 |
Grade A, and why
prisma-next AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
92% identical to orm AGENTS.md — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agents — Prisma Next
Welcome. This is a contract‑first, agent‑friendly data layer.
Start Here
- Docs Index — How the docs are organized and what to read next
- Architecture Overview — High-level design principles
- Testing Guide — Philosophy, patterns, and commands
- Rules Index — All agent rules organized by topic
- ADRs — Architecture Decision Records
Modular Onboarding
- Getting Started — Build, test, and run demo
- Repo Map & Layering — Package organization and import rules
- Conventions — TypeScript, tooling, and code style
- Testing — Test commands, patterns, and organization
- Common Tasks Playbook — Add operation, split monolith, fix import
- Cursor Cloud Agents — Setup, secrets, lockfile discipline, snapshot management
Project Overview
Prisma Next is a contract-first data access layer:
- Contract-first: Emit
contract.json+contract.d.ts— no executable runtime code generation - Composable DSL: Type-safe query builder (
sql().from(...).select(...)) - Machine-readable: Structured artifacts that agents can understand and manipulate
- Runtime verification: Contract hashes and guardrails ensure safety before execution
Where skills and rules live
The repo keeps a single canonical home for each kind of agent surface, with presentation symlinks that satisfy the paths each harness expects.
- Skills — canonical home:
skills-contrib/<skill-name>/SKILL.md. These are the tracked, deliverable source-of-truth files. - Skills — presentation symlinks:
.claude/skills/<skill-name>and.agents/skills/<skill-name>are symlink directories pointing intoskills-contrib/. They exist so the various agent harnesses (Cursor, Claude Code, …) can find the skills at the paths they expect. Both symlink trees are gitignored. - Skills — wired post-install: the symlink trees (and any tooling-specific copies) are materialized by the
preparescript inpackage.json, which runsskills add ./skills-contrib --skill '*' --agent universal claude-code -y. Afterpnpm install,.claude/skills/and.agents/skills/are populated automatically — no manual setup. If you add a new skill underskills-contrib/, re-runpnpm install(or just the prepare hook) to wire it into the tooling locations.pnpm lint:skillsvalidates skill frontmatter in CI. - Drive upstream in ignite:
drive-*skills anddocs/drive/live in prisma/ignite (skills/.pilot/); install withnpx skills add prisma/ignite/skills/.pilot --skill '*'. This repo keeps onlydrive/project-context overlays. - Rules — canonical home:
.agents/rules/<rule-name>.mdc— the only tracked copy (rule files must use the.mdcextension; a.mdrule is never loaded by the harnesses) (a whitelist exception in.gitignorekeeps.agents/rules/**tracked even though the rest of.agents/is ignored). The.cursor/rules/and.claude/rules/trees are gitignored presentation mirrors containing only relative symlinks back into.agents/rules/. - Rules — wired post-install: like skills, the symlink trees are materialized by
prepare(which runsnode scripts/sync-agent-rules.mjsafterskills add). Afterpnpm installthe trees are regenerated automatically — no manual setup. A rule added only to.cursor/rulesis gitignored and silently lost, so always add it under.agents/rules/and runpnpm rules:sync.pnpm lint:rules:symlinksenforces tree/canonical consistency in CI. - Practical implication for editors and sub-agents: when amending or authoring a skill or rule, edit at the canonical path (
skills-contrib/for skills,.agents/rules/for rules) — not at the symlinked path. An edit through a symlink writes to the canonical file on disk, butgit statusandgit ls-filesreport against the canonical path; addressing the canonical path keeps diffs legible and avoids surface churn.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 131 lines · 2,671 tokens per session scan A 1a337d3eeff8
prisma-next AGENTS.md is an instructions file published in the GitHub repository prisma/prisma-next (419 stars, last pushed 11d ago), licensed Apache-2.0. It adds 2,671 tokens to every session, about $0.0134 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to orm AGENTS.md, differing in 10 lines, and is treated as a copy.
Other instructions, from other repositories
orm AGENTS.md
AGENTS.md instructions for prisma/orm, covering agents — prisma next, start here, modular onboarding, project overview and where skills and rules live.
orm CLAUDE.md
Claude Code instructions for prisma/orm, a project described as: Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.