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.
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- data-products/CLAUDE.mdCLAUDE.md
- governance/CLAUDE.mdCLAUDE.md
- initiatives/CLAUDE.mdCLAUDE.md
- insights/CLAUDE.mdCLAUDE.md
- ip/CLAUDE.mdCLAUDE.md
- _Logs/CLAUDE.mdCLAUDE.md
- methodology/CLAUDE.mdCLAUDE.md
- playbooks/CLAUDE.mdCLAUDE.md
- practice-context/CLAUDE.mdCLAUDE.md
- _Registry/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- talent/CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- Templates/CLAUDE.mdCLAUDE.md
- Workflows/CLAUDE.mdCLAUDE.md
- ai-consumption-contractSkill
- claude-md-bootstrapSkill
- dabs-template-initSkill
- data-source-10q-intakeSkill
- defending-ai-spend-memoSkill
- weekly-practice-synthesisSkill
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
- Distinctive: line 52
If CONDITIONAL or FAIL: specific remediation list with owners + due dates.
- Very specific: line 60
If any check is unknown rather than pass/fail → verdict is FAIL by default.
- Very specific: line 66
Always log the audit itself to _Logs/sanitization-audit.md (yes, governance audits live in the sanitization audit log too — same evidence …
≈ “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.
Files
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.yamlis moving fromqualify → diagnose → design → build → embed → exit. - A data product with
pii: trueis being promoted dev → qa or qa → prod. - A new producer onboarded via
data-source-10q-intakeflagged Tier-1/2 classification. - Periodic audit (quarterly) on all
regulated: truearchetypes.
Required inputs
- Archetype ID (or data product ID) under audit.
- Target phase (or environment) the user wants to advance to.
- Current
dpia_completedflag from the archetype row.
The 7 audit checks (all must pass)
- DPIA exists and is current — completed within the last 12 months,
matches
governance/dpia-template.mdshape, signed by data ethics owner. - Classification declared — every column in the contract carries a tier 1–4 tag; tier-1/2 columns have a masking declaration.
- Masking validated — at least one MCP-path test or unit test exercises every tier-1/2 column under the lowest-privilege role.
- Retention enforced — retention obligation in
compliance-register.yamlmatches the table property in DABs. - Erasure path tested — for any column with PIPEDA / GDPR scope, the erasure runbook has been dry-run within the last 90 days.
- Access matrix matches contract — permissions.yml ABAC tags reconciled against the contract's access section (no drift).
- Cross-jurisdictional — if the archetype crosses borders, SCC or adequacy assessment attached.
Output shape
A pass/fail audit memo:
- Verdict (BLUF first sentence): PASS / CONDITIONAL PASS / FAIL.
- Each of the 7 checks with verdict + evidence pointer.
- If CONDITIONAL or FAIL: specific remediation list with owners + due dates.
- 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-styleonly. - If any check is
unknownrather than pass/fail → verdict is FAIL by default.
Handoff
- On PASS: update
initiatives.yamldpia_completed: trueand advance phase. - On FAIL: log the gap to
_Logs/feedback.mdwith 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).
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
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.

