Skip to content
Back to skills

Privacy

ASecurity

Privacy of a change — personal data map, minimization, access by scope and role, masking, no personal data in logs, events and analytics, export with confirmation, data subject requests, retention, questions for a lawyer. Use for privacy review, personal data, PII, data minimization, masking, data subject request, retention.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgosecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill privacy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Privacy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Privacy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-privacy/badge)](https://www.skillsdirectory.com/skills/vectora-os-privacy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: privacy
description: Privacy of a change — personal data map, minimization, access by scope and role, masking, no personal data in logs, events and analytics, export with confirmation, data subject requests, retention, questions for a lawyer. Use for privacy review, personal data, PII, data minimization, masking, data subject request, retention.
metadata:
  category: security
---

# Privacy

## Purpose

This skill checks that a change collects only the personal data it needs, shows it only to those entitled and in masked form, keeps it out of logs and analytics, and exports it only with confirmation. The legal basis for processing, retention periods, how data subject requests are answered and the applicable law are defined by the product owner and a lawyer: the skill records what the project's documents describe and raises the rest as questions. The agent gives no legal opinions.

## Inputs

- Feature design, data model, integrations.

## Outputs

- Personal data map, requirements, questions for counsel.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "privacy personal data"` for prior decisions, patterns and lessons.
- [AGENTS.md](../../../AGENTS.md) — the "Invariants" and "Restrictions" sections: the project's rules on personal data.
- The task specification (`product-requirements` skill) — which action requires each field.
- The data register or data model, if the project has one (for example `docs/data-model.md`) — where personal data is stored and who owns it.
- [ADR register](../../../docs/adr/README.md) — decisions on access, tenant isolation, storage, logging and authentication.
- [Glossary](../../../docs/glossary.md) — project terms.
- Neighbouring skills: read the `SKILL.md` of `independent-security-review` (secrets, logs, access) and `threat-modeling` (data disclosure as a threat).

## Steps

1. **Data map of the change.** List new and changed fields with personal data (name, contacts, identifiers, IP, geolocation, payment and biometric data, free text from the user), their source, module, storage and recipients (internal services, external processors).
   Done when every field has a source, storage location, recipients and a row in the project's data register, or the entry "no register — question for the owner".
2. **Minimization.** A field is needed for an action described in the specification; otherwise — a question to the product owner before implementation. Prefer derived values (a flag, an age group) to raw ones.
   Done when every new field has the specification item that requires it.
3. **Access by scope and role.** Personal data is read only within one's own scope (tenant, organization) and with the role's permission; someone else's resource returns `404`.
   Done when every new read route has a test "another scope → `404`" and, if storage enforces isolation, "no scope → 0 rows".
4. **Masking and confirmation.** In staff interfaces, contacts and identifiers are shown masked by default; revealing the full value and exporting require a separate permission, re-authentication if provided for, and an audit record. If specific masking rules are not approved, it is a question for the owner, not the agent's choice.
   Done when every screen and export with personal data is listed with its permission, mask or a link to an open question.
5. **Logs, events, analytics.** No personal data in logs, traces, metrics, analytics events, error messages, URLs or query parameters; external services (monitoring, analytics, LLM providers) receive only what a document allows.
   Done when log serializers and event payloads in the diff are checked and there is a test for them or the entry "no test".
6. **Data subject requests.** Access, correction, export and deletion — only per the process described in the project. If there is no process, the change does not invent one: response times, export contents and deletion rules are a question for the owner and a lawyer. Deletion accounts for copies: backups, caches, search indexes, external processors.
   Done when the change does not bypass the described process and undescribed steps are listed as questions.
7. **Retention.** Only from a project document; otherwise "not defined, question for the owner". Test data and fixtures are synthetic, with no real personal data.
   Done when the change has no retention period without a source and no real personal data in the repository.

## Best practices

- Collect less.
- Mask by default in UI and logs.
- Design deletion and export from the start.

## Common mistakes

- Personal data in logs or analytics.
- Agents giving legal opinions.

## Example

Phone number field: purpose question, masking in admin UI and logs, deletion path, retention tied to account.

## Reusable prompt

```text
Apply the privacy skill (.agents/skills/privacy/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Map the personal data of the change, apply minimization and masking, define access, retention and deletion, and list questions for counsel.
Cite evidence for every claim; list open questions separately.
```

## Checks

- [ ] Every new field with personal data is justified by the specification and entered in the data register or raised as a question.
- [ ] Scope tests exist for routes that read personal data.
- [ ] Reveal and export require a separate permission and an audit record.
- [ ] Logs, events, errors and external services contain no personal data beyond what is allowed.
- [ ] No masking rule, retention period or request procedure was invented by the agent.
- [ ] The repository and fixtures contain no real personal data.
- [ ] The words "compliant" and "certified" are not used; legal questions are marked "requires confirmation by a lawyer".

## Out of scope

- Legal assessment, legal basis for processing and applicable law — a lawyer (a human); the agent only formulates questions.
- Secrets, authentication, authorization — `independent-security-review`.
- Threat model — `threat-modeling`.
- Storage schema and migrations — the task assignee per the `task-execution` skill.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.