test-data-privacy

test-data-privacy is a cursor rule for Cursor from yaniv-golan/affinity-sdk. It costs 496 tokens per session, scanned A, original, MIT.

A set of rules for keeping real company, person, deal, and opportunity names confidential when they appear in test data or diagnosis materials.

In plain words
What is it for?
Use it when creating examples, fixtures, bug reports, logs, or other artifacts from real CRM-related data; replace names with placeholders.
Why use it?
It prevents private names from being copied into code, tests, documentation, commits, or other saved project material.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions .claude-plugin.

Good fit Use it when creating examples, fixtures, bug reports, logs, or other artifacts from real CRM-related data; replace names with placeholders.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yaniv-golan/affinity-sdk/test-data-privacy
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/yaniv-golan/affinity-sdk

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 test-data-privacy

README.md
[![agentmods](https://agentmods.dev/badge/rules/yaniv-golan/affinity-sdk/test-data-privacy/github.svg)](https://agentmods.dev/rules/yaniv-golan/affinity-sdk/test-data-privacy)
Your own site
<a href="https://agentmods.dev/rules/yaniv-golan/affinity-sdk/test-data-privacy"><img src="https://agentmods.dev/badge/rules/yaniv-golan/affinity-sdk/test-data-privacy/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 test-data-privacy

Your own site · 80×15
<a href="https://agentmods.dev/rules/yaniv-golan/affinity-sdk/test-data-privacy"><img src="https://agentmods.dev/badge/rules/yaniv-golan/affinity-sdk/test-data-privacy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 496 This file is loaded in full into every session.
When invoked 496 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.00496 $0.00496
Opus 5.5 $0.00198 $0.00198
Sonnet 5.5 $0.00099 $0.00099
Haiku 4.5 $0.00050 $0.00050

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

Security

Grade A, and why

test-data-privacy 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.

.cursor/rules/test-data-privacy.mdc · 28 lines

How it starts

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

Test data privacy

Real Affinity CRM data is sometimes used during local diagnosis (incident transcripts, repro screenshots, audit-log excerpts). Treat every real company name, real person name, and real deal/opportunity name that surfaces during diagnosis as confidential.

Rules

  • Never embed real company, person, deal, or opportunity names from diagnosis material into committed artifacts. This includes: source code, tests, fixtures, docstrings, comments, CHANGELOG entries, COMPATIBILITY notes, SKILL.md examples, plan files that get checked in, commit messages, PR titles/bodies, and issue descriptions.
  • Allowed exceptions — legitimate author/maintainer identity in package metadata only: pyproject.toml authors, mcp/mcpb.conf MCPB_AUTHOR_NAME, *.claude-plugin/plugin.json author, .claude-plugin/marketplace.json owner blocks. Do not introduce a real name into any new context outside of those exact metadata fields.
  • Use placeholders for examples and test data. Prefer Jane Doe / John Doe for people, Acme Corp / Acme Holdings for companies, Example Deal for deals/opportunities. Use <full name> when the example needs to be obviously a placeholder in a docstring or hint message.
  • Numeric IDs from real records are also sensitive. Replace with obviously-fake IDs (12345, 999, 111111111) in tests, examples, and docs.
  • Incident transcripts shared in chat are diagnosis-only. Extract the technical pattern (e.g. "agent retried after exit 2 → partial-commit") but never the entity names. Refer to the incident with a generic label like "the recent agent-driven intake incident" rather than naming a tenant, deal, or person.
  • When in doubt, ask before committing anything that quotes from a real Affinity record.

Auditing

When reviewing diffs or committing changes, scan for accidental leaks with:

git diff --cached | rg -i '<real-name-pattern>' && echo "ABORT: real name in staged diff"

If a leak is discovered post-commit but pre-push, rewrite history before pushing. If already pushed, surface immediately to the maintainer.

Read the full file on GitHub · 28 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. 2mo ago First seen · 28 lines · 496 tokens per session scan A 5d197645b74a

Subscribe to this mod's changes

test-data-privacy is a cursor rule published in the GitHub repository yaniv-golan/affinity-sdk (1 stars, last pushed 20d ago), licensed MIT. It adds 496 tokens to every session, about $0.0020 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-31.