inceptyon-labs/tenet-skills/tenet-privacy-data

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Audits PII handling, consent, retention, deletion/export flows, redaction, and analytics exposure.

Install

npx vskill@latest install inceptyon-labs/tenet-skills/tenet-privacy-data

SKILL.md

The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-privacy-data.

Tenet Privacy & Data

Follows personal data from the place it is stored to every place it leaves.

Purpose

This dimension answers three questions from the code: what personal data does this project hold, where does it go that the user would not expect, and can it be removed. It reports flows it can show (this field reaches that log line, that analytics call, that vendor) and gaps it can show (the delete path skips these tables, this permission is used with no declaration). It does not report the absence of policy documents.

Calibration — read first

Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).

A privacy finding is one of two things, and both must be shown from the code:

Flow: "Field F (category C) reaches sink S at line N, in a form that identifies the person."
Gap: "The project does X with personal data (creates accounts, declares a permission, offers
an opt-out), and the code that should complete it (delete these rows, declare this purpose,
honor that setting) is missing or does not cover Y."

These are not findings, at any severity:

  • A field name that looks personal with no flow to a sink. An email column is an inventory row.
  • A missing privacy policy, retention document or data map. This dimension reads code.
  • A missing export or deletion feature in an app that stores data only on the user's device.
  • A log or analytics call that carries only an opaque internal ID.
  • Anything in tests, fixtures, seed scripts or examples.
  • A sink that receives a value already hashed, masked or truncated before the call.
  • A call into a reporter or analytics SDK that the project never initializes. Find the init or

configure call before reporting what is sent to it.

Reachable here means the platform or a caller can run it: a route handler, a view, an app or scene delegate, a module the entry point imports, an exported function a tracked file calls. An exported function nothing references is dead code under shared/verification.md and is dropped.

Zero findings is the normal result for a small local-first app. Do not fill a step to show you looked.

Language Support Matrix

yaml
support:
native: [typescript, javascript, python, swift, dart]
heuristic: [go, java, kotlin, ruby, php, csharp, rust]
config-only: [sql, prisma, plist, xml, yaml, json, terraform]

Procedure

Keep a worklog at .healthcheck/tmp/privacy-data-worklog.md (shared/scan-discipline.md §3).

Step 0: Applicability

Not applicable (score: null, applicable: false) when the project is a library, CLI or build tool that stores no user records, sends no telemetry and requests no device permissions. Check before deciding:

bash
git grep -lPi "@Model\b|NSManagedObject|pgTable\(|sqliteTable\(|mysqlTable\(|models\.Model\b|\(BaseModel\)|@Entity\b|@JsonSerializable|CKRecord\(|createTable|CREATE TABLE" -- '*.swift' '*.ts' '*.tsx' '*.js' '*.py' '*.kt' '*.java' '*.dart' '*.sql' '*.prisma' | head -40
git grep -lPi "sentry|bugsnag|crashlytics|posthog|mixpanel|amplitude|segment|firebase_analytics|FirebaseAnalytics|gtag\(|plausible|datadog|logrocket|fullstory|intercom|revenuecat" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.swift' '*.dart' '*.kt' '*.java' '*.json' '*.yaml' '*.resolved' 'Podfile' '*.gradle' | head -40
git ls-files -- '*Info.plist' '*PrivacyInfo.xcprivacy' '*AndroidManifest.xml' '*.entitlements'

All three empty means not applicable.

Step 1: Where the data lives

Classify the project before judging anything, and write the answer in the worklog. Later steps depend on it.

ResidencyEvidenceWhat applies
Operated storeThe project runs its own database or API (Postgres, D1, SQLite on a server, an ORM with migrations)Every step
Vendor backendAccounts or records live in Firebase, Supabase, CloudKit, Appwrite or similarEvery step; deletion is checked against the vendor SDK calls
Device onlySwiftData, Core Data, SQLite, files or preferences on the user's device, no account, no syncSteps 2, 3 and 6 only. Skip deletion and expiry (Steps 4 and 5).

A project can be more than one (a mobile app plus its API). Apply each part's rules to that part.

Step 2: Inventory personal fields

Enumerate the fields, do not sample. List the schema-bearing files from Step 0, then search them:

bash
git grep -nPi "\b\w*(e_?mail|phone|mobile|first_?name|last_?name|full_?name|display_?name|address|street|postal|zip_?code|birth|dob|ssn|tax_?id|passport|national_?id|ip_?addr|device_?id|latitude|longitude|location|card_?number|iban|account_?number|health|diagnos|medical|gender|ethnic|religio|password|biometric)\w*" -- '*.sql' '*.prisma' '*schema*' '*model*' '*Model*' '*migration*' '*entit*' ':!*.test.*' ':!*.spec.*' | head -200

Read each hit and record one worklog row per real field: table.field | category | file:line. Categories:

  • credential: passwords, tokens, API keys, session secrets
  • sensitive: government ID, payment card or bank number, health, biometric, precise location,

data about children, ethnicity, religion

  • contact: email, phone, postal address, full name, date of birth
  • identifier: user ID, device ID, IP address, username

Add free-text fields the user fills in (notes, messages, uploads): they hold whatever the user typed, so treat them as contact unless the app's purpose makes them sensitive.

Some personal values are never stored and only pass through a request: a card number sent on to a processor, a password before hashing. Add them to the inventory too, from the request schemas and handler parameters:

bash
git grep -nPi "\b(card_?number|cvc|cvv|pan|password|passcode|ssn|passport|date_?of_?birth)\b" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.go' '*.swift' '*.dart' '*.kt' '*.rb' ':!*.test.*' ':!*.spec.*' | head -100

The inventory itself is never a finding. It is what Step 3 traces.

Step 3: Trace fields into sinks

For each sink class, list the call sites, then read each one and decide whether an inventoried field reaches it. A whole object counts when it contains inventoried fields: logging user, req.body or a full row is logging everything in it.

a. Logs. Log calls that mention a personal name or a whole object on the same line:

bash
git grep -nPi "(console\.(log|info|warn|error|debug)|logger\.\w+|\blog\.\w+|logging\.\w+|\bprint\(|NSLog\(|os_log\(|debugPrint\(|Log\.[dievw]\().*(e_?mail|phone|password|passwd|token|secret|ssn|address|card|authorization|cookie|body|headers|\buser\b|\bprofile\b|payload|JSON\.stringify|\.description)" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.go' '*.swift' '*.dart' '*.kt' '*.java' '*.rb' ':!*.test.*' ':!*.spec.*' ':!*_test.*' | head -150

Then the request loggers, which can dump every body and header without naming a field:

bash
git grep -nP "morgan\(|pino-?http|pinoHttp|requestLogger|logRequests|app\.use\(\s*logger|httpLogger|LoggingMiddleware|log_request|RequestLoggingMiddleware" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.go' '*.rb'

Read the logger's configuration: does it log bodies, Authorization or Cookie headers, or query strings? A redaction list that covers them refutes the candidate.

b. Error reporters and analytics. Identity and event calls, plus the settings that widen what is collected:

bash
git grep -nPi "\b(setUser|identify|setUserId|setUserProperties|people\.set|alias|setContext|setExtra|setTag|logEvent|capture|track(Event)?)\s*\(" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.swift' '*.dart' '*.kt' '*.java' ':!*.test.*' ':!*.spec.*' | head -150
git grep -nP "sendDefaultPii|send_default_pii|attachScreenshot|attachViewHierarchy|maskAllText|maskAllInputs|replaysSessionSampleRate|replaysOnErrorSampleRate|session_recording|disable_session_recording|autocapture|capture_pageview" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.swift' '*.dart' '*.kt'

Read each call's arguments. Email, phone or name passed to identify/setUser, PII as event properties, sendDefaultPii: true, and session replay with masking turned off are flows.

c. Other third parties. Find outbound calls and SDK clients (email, SMS, support, payments, webhooks to partners), then read what each sends:

bash
git grep -nPi "(sendgrid|mailgun|postmark|resend|twilio|slack|discord|zendesk|intercom|hubspot|mailchimp|zapier|webhook)" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.go' '*.swift' '*.dart' '*.kt' ':!*.test.*' ':!*.spec.*' | head -80

A vendor receiving the data it needs to do its job (the email address to an email provider) is expected, not a finding. A vendor receiving more than that is a flow: a full user record posted to a chat webhook, a support widget booted with fields it does not display.

d. URLs. Personal values placed in a query string end up in server logs, proxies and browser history:

bash
git grep -nP "[?&](email|phone|name|token|ssn|dob|address)=" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.swift' '*.dart' '*.kt' ':!*.test.*' ':!*.spec.*'

Each flow that survives is a candidate. Record it with the field, its category, the sink and the line.

Step 4: Deletion coverage (operated store and vendor backend only)

If the project lets people create accounts, find the path that deletes one:

bash
git grep -nPi "(delete|destroy|remove|purge|erase|close|anonymi[sz]e)[_-]?(my[_-]?)?(account|user|profile)|accountDeletion|\.delete\(\s*['\"\`]/(api/)?(me|account|users?)\b|auth\(\)\.currentUser\??\.delete|deleteUser\(" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' '*.go' '*.swift' '*.dart' '*.kt' '*.rb' ':!*.test.*' ':!*.spec.*'

Then enumerate everything tied to a user, so the path can be checked against it:

bash
git grep -nPi "\b(user|owner|account|member|author|created_by)_?id\b|references\(\s*\(\)\s*=>\s*users|ForeignKey\(\s*['\"]?User|belongs_to :user" -- '*.sql' '*.prisma' '*schema*' '*model*' '*Model*' '*migration*' '*entit*' | head -150

Build the table in the worklog: one row per user-linked table, collection or storage bucket, and for each, how the delete path removes it (explicit delete, ON DELETE CASCADE, vendor rule, or nothing). Uploaded files, sessions, refresh tokens and rows in other services count.

  • No delete path at all, and accounts can be created: one finding.
  • A delete path that leaves rows marked "nothing": one finding listing them.
  • A soft delete (deleted_at, is_deleted) with nothing that ever purges the row: one finding.

Search for the purge job before reporting it.

While the route list is open, note whether any route or job gives a user a copy of their own data (an export, a download, a "my data" endpoint). Record it as has_export_flow; its absence is the info row in Step 7.

Step 5: Expiry of short-lived data (operated store and vendor backend only)

Some records are only meant to live briefly. Check that each one can expire:

bash
git grep -nPi "(reset|verif\w*|magic|invite|otp|one_?time|session|refresh)[_-]?(token|code|link|key)s?\b" -- '*.sql' '*.prisma' '*schema*' '*model*' '*Model*' '*migration*' '*entit*' | head -80

For each such table: is there an expiry column that the reading code checks, and does anything delete expired rows? A reset token that is never checked for age is a finding. Do not report the absence of a retention policy for ordinary user data.

Step 6: Consent gates and device permissions

a. A setting that does not gate. Only when the code has a consent or opt-out mechanism:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-privacy-data/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-privacy-data)

Something wrong with this skill or its page? Tell us.