agentleFS
mmccallammccalla/coding-agent-skill-library/skills/data-security-and-privacy-architecture/SKILL.md

data-security-and-privacy-architecture

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Designs classification, access, masking, privacy, entitlement and sensitive-data controls. Use when securing shared data, defining privacy controls, or classifying datasets.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when data contains sensitive, personal, confidential, regulated or high-value information.

    line 10
  2. Distinctive:

    Test denial and misuse cases.

    line 25
  3. Distinctive:

    Do not rely on UI-only access controls or broad shared credentials.

    line 61
  4. Distinctive:

    Do not treat privacy compliance as solved by encryption alone.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Data Security and Privacy Architecture

When to use

Use when data contains sensitive, personal, confidential, regulated or high-value information.

Objective

Produce a practical, concise, traceable architecture artefact that a coding agent can use to guide implementation or review.

Procedure

  1. Classify data by sensitivity and purpose.
  2. Identify users, roles and access needs.
  3. Define entitlement model and approval flow.
  4. Define masking, tokenisation or encryption.
  5. Define row/column/object-level controls.
  6. Define logging, monitoring and access evidence.
  7. Define retention/privacy obligations.
  8. Test denial and misuse cases.

Required outputs

  • Classification model
  • Access matrix
  • Entitlement workflow
  • Masking/encryption requirements
  • Audit/access evidence
  • Negative tests

Best-practice alignment

Apply DAMA-DMBOK2-style separation of data governance, architecture, modelling, security, integration/interoperability, master/reference data, metadata and quality. For cloud/shared data, apply CDMC-style expectations: ownership, classification, entitlement/access evidence, lineage/provenance, lifecycle/retention, quality controls and auditable evidence.

Quality checks

  • Access is least privilege.
  • Sensitive fields are identified.
  • Denial paths are tested.
  • Sensitive values are not logged.
  • Access evidence is auditable.

Privacy compliance procedure

This is an operational procedure for agents, not legal advice.

  1. Map personal data categories, purposes and systems involved in the change.
  2. Confirm a lawful basis or organisational policy basis for processing where applicable.
  3. Trigger a DPIA (data protection impact assessment) when processing is high risk (large-scale sensitive data, systematic monitoring, automated decisions with legal effect).
  4. Define data-subject rights handling (access, rectification, erasure/DSAR paths) and response owners.
  5. Align retention, deletion and transfer controls with data-lifecycle-and-retention-management.
  6. Record evidence (classification, access logs, DPIA reference, retention rules).

Avoid

Do not rely on UI-only access controls or broad shared credentials. Do not treat privacy compliance as solved by encryption alone.

Related skills

  • data-lifecycle-and-retention-management — retention and deletion
  • threat-modeling — abuse and exfiltration threats
  • human-in-the-loop — approval for high-risk processing

References

Verification

  • Required artefacts produced and linked to scope.
  • Decisions, assumptions and risks stated explicitly.
  • Quality checks or validation performed.
  • Privacy compliance steps considered (DPIA trigger, data-subject rights, evidence).
  • Files changed reported with traceability preserved.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.