agentleFS
wanwrickwanwrick/noosphere-public/.claude/skills/governance-audit/SKILL.md

governance-audit

Skill0 starsChanged 7 months agoMITView on GitHub

Run the pre-phase-advance governance audit for a regulated archetype or PII-bearing data product. Verifies DPIA, classification, masking, retention, and access obligations are met before phase advance. Use whenever an archetype with regulated=true or a data product with pii=true is about to move to the next phase, ship, or be promoted from dev to prod.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If CONDITIONAL or FAIL: specific remediation list with owners + due dates.

    line 52
  2. Very specific:

    If any check is unknown rather than pass/fail → verdict is FAIL by default.

    line 60
  3. Very specific:

    Always log the audit itself to _Logs/sanitization-audit.md (yes, governance audits live in the sanitization audit log too — same evidence …

    line 66

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

governance-audit

You are running the governance gate that Invariant #2 from CLAUDE.md demands: phase advance is blocked unless DPIA + classification + masking obligations are demonstrably met.

Source files (must read all five before issuing a verdict)

  • governance/compliance-register.yaml — register of obligations.
  • governance/regulated-fsi-compliance-runbook.md — OSFI + PIPEDA flow.
  • governance/dpia-template.md — DPIA shape.
  • governance/client-data-classification.md — CDMC-aligned 4-tier.
  • governance/gdpr-article-17-erasure-runbook.md — erasure path.

When to invoke

  • An archetype in initiatives/initiatives.yaml is moving from qualify → diagnose → design → build → embed → exit.
  • A data product with pii: true is being promoted dev → qa or qa → prod.
  • A new producer onboarded via data-source-10q-intake flagged Tier-1/2 classification.
  • Periodic audit (quarterly) on all regulated: true archetypes.

Required inputs

  1. Archetype ID (or data product ID) under audit.
  2. Target phase (or environment) the user wants to advance to.
  3. Current dpia_completed flag from the archetype row.

The 7 audit checks (all must pass)

  1. DPIA exists and is current — completed within the last 12 months, matches governance/dpia-template.md shape, signed by data ethics owner.
  2. Classification declared — every column in the contract carries a tier 1–4 tag; tier-1/2 columns have a masking declaration.
  3. Masking validated — at least one MCP-path test or unit test exercises every tier-1/2 column under the lowest-privilege role.
  4. Retention enforced — retention obligation in compliance-register.yaml matches the table property in DABs.
  5. Erasure path tested — for any column with PIPEDA / GDPR scope, the erasure runbook has been dry-run within the last 90 days.
  6. Access matrix matches contract — permissions.yml ABAC tags reconciled against the contract's access section (no drift).
  7. Cross-jurisdictional — if the archetype crosses borders, SCC or adequacy assessment attached.

Output shape

A pass/fail audit memo:

  1. Verdict (BLUF first sentence): PASS / CONDITIONAL PASS / FAIL.
  2. Each of the 7 checks with verdict + evidence pointer.
  3. If CONDITIONAL or FAIL: specific remediation list with owners + due dates.
  4. Recommended next step (advance phase / block advance / re-audit on date X).

Verification

  • Cite the compliance register row IDs explicitly. Do not paraphrase.
  • Sanitization: no employer / regulator / stakeholder names; reference styles like osfi-style, pipeda-style only.
  • If any check is unknown rather than pass/fail → verdict is FAIL by default.

Handoff

  • On PASS: update initiatives.yaml dpia_completed: true and advance phase.
  • On FAIL: log the gap to _Logs/feedback.md with the entry format.
  • Always log the audit itself to _Logs/sanitization-audit.md (yes, governance audits live in the sanitization audit log too — same evidence trail).

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.