Command Palette

Search for a command to run...

Назад к скиллам
скилл № 03595

synthetic-pii-generator

Use when seeding non-production environments, building demo data, or replacing real personal data in copied datasets. Generates fake but valid-looking PII…

БесплатноБез исполняемых скриптов
testlandот testland★ 18 звёзд на GitHub

Установить synthetic-pii-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

synthetic-pii-generator

Overview

Synthetic PII is data that looks like the real thing (passes the same format validators) but never matches a real person. This skill wraps the synthetic-data libraries (faker-data, the synthetic-data-toolkit generators) with PII-specific constraints to produce format-valid but identity-safe values.

Default: Faker (Python) - broadest locale coverage and the most PII-aware defaults (RFC 2606 emails out of the box, deterministic seeding via Faker.seed()). Use mimesis when the project needs provider-level locale control (e.g. Japanese addresses with prefecture accuracy); use Bogus for .NET projects that already ship it.

When to use

  • Seeding a test environment that needs realistic-looking user records.
  • Building demo / preview environments for sales, support, or customer onboarding.
  • Replacing real PII in a database dump being moved to lower environments.
  • Generating fixture rows for the seed-data-curator workflow.

Step 1 - Identify the PII fields

For each field in the target schema, classify:

Field PII tier
Email Direct (regulator-recognized PII).
Full name Direct.
Phone number Direct.
Street address Direct.
Date of birth (alone) Indirect (combine with name → direct).
Postal code (alone) Indirect.
Government ID (SSN, ITIN, NIN, TIN, etc.) Sensitive PII.
Payment card number Sensitive PII (PCI scope; not GDPR PII per se).
Health record fields Special-category (GDPR Art. 9).
User-generated content Could embed PII; case-by-case.

This skill generates synthetic values for each - the matching real-data pattern (format) without matching a real person.

Step 2 - Use safe-by-construction values

Email - RFC 2606 reserved domains

Per RFC 2606, these domains are reserved for examples and guaranteed never to deliver to real mailboxes:

  • example.com
  • example.org
  • example.net
  • *.example (any subdomain)
  • *.test / *.invalid / *.localhost (TLDs reserved for testing)

Faker / mimesis / Bogus all default to RFC 2606 domains. Never override to a real domain in synthetic-PII mode - even if your test fixture has good intentions, an integration that actually sends email will spam real recipients.

from faker import Faker
fake = Faker()
fake.email()                       # '[email protected]' - safe
fake.email(domain='gmail.com')     # NEVER - could spam real users

Phone numbers, government IDs, and card numbers

These need reserved test ranges, not generator defaults - a format-valid random SSN, phone, or card can collide with a real one. Emit the documented safe constants (US SSN in the IRS 900-XX-XXXX range, issuer-published Luhn-valid test card BINs, regional fictional phone ranges) from the lookup tables: references/pii-lookup-tables.md.

Never generate values from a real-issuance range.

Addresses - synthetic but plausibly local

from mimesis import Address, Locale
addr = Address(Locale.JA)
addr.full_address()    # Japanese-format synthetic address

Mimesis / Faker generate format-valid addresses but not real addresses. For absolute safety, prefix the address with [TEST] or use the example-street convention (100 Test St).

Date of birth - restrict the range

from faker import Faker
fake = Faker()
fake.date_of_birth(minimum_age=18, maximum_age=80)

Restrict DOB to plausible ranges; combined with synthetic name + address, the result is structurally complete without identifying a real person.

Step 3 - Persist synthetic markers

Mark every generated PII field as synthetic so a downstream review can confirm the dataset's safety:

# fixtures/users-test.yaml
users:
  - id: u1
    email: [email protected]    # Suffix 'synthetic' for clarity
    name: Alice Doe
    phone: '+1 (555) 0123'                    # Test range
    ssn: '900-12-3456'                        # IRS test range
    card: '4111 1111 1111 1111'               # Stripe Visa test card
    _synthetic: true                          # Marker for audit

The _synthetic: true marker is a contract - every consumer respects it (e.g. a "clear synthetic data" maintenance script can delete all rows where _synthetic = true without affecting any real production data).

Output format

## Synthetic PII generated for `<dataset-name>`

**Source factory library:** Faker (Python) | mimesis | Bogus | etc.
**Rows generated:** N
**PII tier breakdown:**
  - Direct: 4 fi
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • .tessl-plugin/plugin.json
  • references/pii-lookup-tables.md

FAQ

Что делает скилл synthetic-pii-generator?

Use when seeding non-production environments, building demo data, or replacing real personal data in copied datasets. Generates fake but valid-looking PII: names, emails, phones, addresses, national IDs and SSNs, Luhn-valid test card numbers and birth dates, never real people's data.

Как установить скилл synthetic-pii-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл synthetic-pii-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить synthetic-pii-generator с