no-transient-project-ids-in-code

no-transient-project-ids-in-code is a cursor rule for Cursor from prisma/orm. It costs 656 tokens per session, scanned A, original, Apache-2.0.

A source-code rule that forbids temporary project-planning labels, such as task, test-case, acceptance-criteria, phase, or checkpoint IDs, from durable code and tests. Permanent identifiers such as ticket, ADR, and pull-request numbers are allowed.

In plain words
What is it for?
Use it when naming tests, identifiers, fixtures, comments, paths, or hash data. Refer to the lasting behavior or use a permanent reference instead of a temporary plan label.
Why use it?
Planning labels change when plans are rewritten or removed, so embedding them makes code and comments misleading. Describing the actual behavior keeps the code durable.

Cursor rule for Cursor ✓ vendor

Written for Cursor: a Cursor rule (.mdc). Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when naming tests, identifiers, fixtures, comments, paths, or hash data. Refer to the lasting behavior or use a permanent reference instead of a temporary plan label.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/prisma/orm/no-transient-project-ids-in-code
About the project

Prisma ORM is a Node.js and TypeScript database toolkit that lets applications work with databases through a programming interface instead of writing every query directly in SQL. Developers use it with databases including PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB, and CockroachDB. The catalogue add-ons provide agent rules, skills, hooks, agents, and other workflows for using Prisma.

prisma/orm · 47,810 stars · on GitHub · prisma.io

Install

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.

Clone the repo
git clone --depth 1 https://github.com/prisma/orm

Made for: Cursor.

Wrote 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.

agentmods badge for no-transient-project-ids-in-code

README.md
[![agentmods](https://agentmods.dev/badge/rules/prisma/orm/no-transient-project-ids-in-code/github.svg)](https://agentmods.dev/rules/prisma/orm/no-transient-project-ids-in-code)
Your own site
<a href="https://agentmods.dev/rules/prisma/orm/no-transient-project-ids-in-code"><img src="https://agentmods.dev/badge/rules/prisma/orm/no-transient-project-ids-in-code/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.

agentmods 80×15 button for no-transient-project-ids-in-code

Your own site · 80×15
<a href="https://agentmods.dev/rules/prisma/orm/no-transient-project-ids-in-code"><img src="https://agentmods.dev/badge/rules/prisma/orm/no-transient-project-ids-in-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 656 This file is loaded in full into every session.
When invoked 656 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00656 $0.00656
Opus 5.5 $0.00262 $0.00262
Sonnet 5.5 $0.00131 $0.00131
Haiku 4.5 $0.00066 $0.00066

Measured 2d ago against content hash 5f763a925310, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

no-transient-project-ids-in-code 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/rules/no-transient-project-ids-in-code.mdc · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

No transient project planning IDs in code

Source code, comments, test names, identifier strings, and hash fixtures must never reference transient project planning artefacts. Plans/specs are scratch documents deleted at close-out; encoding their IDs makes the code lie the moment the plan is rewritten or removed.

Transient (forbidden in code) — anything under projects/<x>/ or in a plan/spec/review doc:

  • Task IDs (T1.1, D7, M3.2), test-case IDs (TC-1, TC18), AC/FR/NFR IDs (AC1, FR2, NFR5), phase/round/checkpoint IDs (P3 R2, CKPT-2, M2 review)
  • Prose attributions to the plan ("out of scope per the spec", "sub-spec § 4", "deferred per project plan")
  • projects/<x>/... paths anywhere in source (incl. JSDoc @links and string literals)
  • Hash fixtures named after IDs ('tc12-ext-contract')

Allowed (durable; in an ADR see adr-writing.mdc): Linear ticket IDs (TML-2408), ADR numbers, PR numbers (PR #494), permanent doc paths (docs/...), durable source paths (packages/..., test/..., examples/...).

How to comply

Describe the constraint or behaviour itself, not its plan row. Say "the runner skips ops with already-satisfied postchecks", not "see T3.4's postcheck-skip rule". Test names pin the property (it('runs both spaces in caller order')), not the coverage-table row. JSDoc cross-refs point at durable artefacts, never into projects/. Name fixtures/constants after their role ('mongo-ext-contract'), not the introducing test-case ID.

Before committing, scan your + diff for token-shaped IDs:

git diff --cached -- '*.ts' '*.tsx' '*.js' '*.mjs' | grep -E '^\+' \
  | grep -oE '\b(T[0-9]+\.[0-9]+|TC-?[0-9]+|AC-?[0-9]+|FR[0-9]+|NFR[0-9]+|CKPT-[0-9]+|M[0-9]+\.[0-9]+|P[0-9]+ R[0-9]+)\b' | sort -u

Output should be empty. Freeform prose attributions ("per spec", "deferred per project plan") aren't token-catchable — scan manually. Companion to doc-maintenance.mdc, which covers the broader transient-artefact surface; this rule narrows to plan IDs left in source.

Read the full file on GitHub · 30 lines

Changes

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.

  1. 2d ago Changed · +6 tokens per session 5f763a925310
  2. 3mo ago First seen · 30 lines · 650 tokens per session scan A 22c1224b195b

Subscribe to this mod's changes

no-transient-project-ids-in-code is a cursor rule published in the GitHub repository prisma/orm (47,810 stars, last pushed today), licensed Apache-2.0. It adds 656 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

no-transient-project-ids-in-code compared with cursor rules from other repositories

no-transient-project-ids-in-code next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
no-transient-project-ids-in-codeprisma/ormCursor rule48ktodayApache-2.0A656Cursor
prismabernierllc/agents-environment-configCursor rule11todayMITA0Cursor
typescript-stylebobbylkchao/ai-phone-agentCursor rule1105d agoMITA0Cursor
drizzle-patternsopenstory-so/openstoryCursor rule730todayMITA0Cursor
security-archivevltpkg/vltpkgCursor rule5782d agoBSD-2-Clause-PatentA0Cursor
code-validation-workflowvltpkg/vltpkgCursor rule5782d agoBSD-2-Clause-PatentA0Cursor
release-ts-sdkaptos-labs/aptos-ts-sdkCursor rule1184d agononeA42Cursor