Borrowing it
Nothing to install: this file belongs to prisma/prisma-next. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/prisma/prisma-next/main/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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.1 | $0.02671 | $0.02671 |
| Opus 5.5 | $0.01068 | $0.01068 |
| Sonnet 5.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 2mo 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 — 19 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.
- 2mo 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 (411 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 2,671 tokens to every session, about $0.0107 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to orm AGENTS.md, differing in 19 lines, and is treated as a copy.
prisma-next AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prisma-next AGENTS.mdprisma/prisma-next | Instructions file | 411 | 2mo ago | Apache-2.0 | A | 2,671 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |