Skip to content
Back to skills

Data Classification

ASecurity

Classify data fields into public/internal/confidential/PII tiers and recommend handling controls. Use when reviewing schemas, database models, migrations, API payloads, config, or log statements for sensitive data; when the user asks to classify data, find or flag PII, or decide encryption/retention/minimization for a field. Triggers on "classify data", "is this PII", "sensitive fields", "data handling", "should we log this".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 1, 2026
ai-agentsgoapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 1, 2026

npx -y skills add matthews-wong/claude-code-plugins --skill data-classification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Classification?

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

Security grade badge for Data Classification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/matthews-wong-data-classification/badge)](https://www.skillsdirectory.com/skills/matthews-wong-data-classification)

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: data-classification
description: 'Classify data fields into public/internal/confidential/PII tiers and recommend handling controls. Use when reviewing schemas, database models, migrations, API payloads, config, or log statements for sensitive data; when the user asks to classify data, find or flag PII, or decide encryption/retention/minimization for a field. Triggers on "classify data", "is this PII", "sensitive fields", "data handling", "should we log this".'
---

# Data Classification

Assign every data field a sensitivity tier and the handling it requires. Be conservative: when a field could fit two tiers, pick the stricter one.

## The four tiers (summary)

- **public** — intended for open disclosure; no harm if exposed (marketing copy, public IDs, published docs).
- **internal** — not secret but not for outsiders; low harm if leaked (internal ticket IDs, non-sensitive config, feature flags).
- **confidential** — business-sensitive; real harm if leaked (secrets/keys/tokens, financials, source-controlled credentials, contracts, security config).
- **PII** — identifies or relates to a person (name, email, phone, address, government ID, IP, precise location, biometric, health, financial-personal). Sensitive-PII subsets (health, government ID, financial account) get the strictest handling.

A field can be both **confidential and PII** — apply PII handling as the floor.

## Fast heuristic

1. Does the value identify or describe a person? → **PII**.
2. Would leaking it harm the business or grant access? → **confidential**.
3. Is it internal-only operational data? → **internal**.
4. Is it safe to publish? → **public**.

## Handling by tier (baseline)

| Tier | Encryption | Retention | Logging | Access |
|------|-----------|-----------|---------|--------|
| public | optional | as needed | ok | open |
| internal | in transit | as needed | ok, no secrets | employees |
| confidential | at rest + in transit | minimize | never log raw | least-privilege |
| PII | at rest + in transit | minimize + defined limit | mask/tokenize only | least-privilege + audit |

## Common failure to flag

- PII or secrets written to logs, error messages, analytics, or URLs.
- Credentials committed to the repo or embedded in config.
- Collecting PII with no stated purpose (violates minimization).

## Going deeper

For the full tier definitions, field-name keyword map, sensitive-PII subcategories, and a per-tier controls matrix, read `reference/classification-matrix.md`. Load it only when you need the detailed rules — the summary above covers most decisions.

Files in this skill

  • SKILL.md2.5 KB
  • reference/classification-matrix.md3.8 KB

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.

Comments

Loading comments…