agentleFS
vaquarkhanvaquarkhan/data-engineering-agent-skills/skills/lineage-pii-and-governance/SKILL.md

lineage-pii-and-governance

Skill49 starsChanged 6 months agoMITView on GitHub

Applies governance, lineage, ownership, and sensitive-data controls to data changes. Use when a pipeline touches published datasets, regulated information, or shared business metrics.

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:

    Every published dataset should have:

    line 23
  2. Distinctive:

    Update lineage and documentation.

    line 44
  3. Distinctive:

    Verify policy enforcement in implementation.

    line 47
  4. Distinctive:

    Do not stop at documentation.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Lineage, PII, And Governance

Overview

Governance is an engineering concern, not a cleanup exercise. This skill ensures that every meaningful data change accounts for ownership, lineage, access, and sensitive-data handling before release.

When to Use

  • publishing a new table, model, or stream
  • changing business-critical metrics
  • handling personal, financial, health, or otherwise sensitive data
  • modifying access controls or data-sharing patterns
  • changing upstream or downstream lineage

Workflow

  1. Identify ownership and consumers. Every published dataset should have:
    • an owner
    • intended consumers
    • known downstream dependencies
  2. Classify the data. Determine whether fields are:
    • public
    • internal
    • confidential
    • regulated or sensitive
  3. Define required controls. Controls may include:
    • masking
    • tokenization
    • row-level restrictions
    • column-level restrictions
    • encryption requirements
    • retention or deletion rules
  4. Update lineage and documentation. Record how the data flows from source to publish layer, including major transformations.
  5. Verify policy enforcement in implementation. Do not stop at documentation. Check that access and masking rules are actually reflected in code or platform configuration.

Common Rationalizations

RationalizationReality
"It is only internal data."Internal datasets still create exposure, misuse, and compliance risk.
"We will document lineage later."Lineage that is not updated during change work becomes stale immediately.
"Security will handle masking downstream."Sensitive data should be controlled as close to production as possible.

Red Flags

  • published data has no named owner
  • sensitive fields are copied without classification
  • lineage updates are missing for a shared metric
  • access rules are assumed but not enforced

Verification

  • Dataset ownership and consumers are identified
  • Sensitive fields are classified
  • Required controls are implemented or explicitly planned
  • Lineage and documentation reflect the change
  • Governance checks are based on real enforcement, not comments alone

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.