ai-governance
Skill1 starsChanged 7 months agoMITView on GitHub
Audit an AI/ML system for governance controls — bias risk, explainability, model risk management, data lineage, fairness metrics, and regulatory alignment (EU AI Act, NIST AI RMF)
7 other projects use a version of this.
Adopted by
Most recently taken up by
- takleb3rry/claude-global-appbuilding-skillstheir own version, first seen Nov 8, 2026
- catesandrew/skillstheir own version, first seen Nov 1, 2026
- paulopestanajunior/agents-configtheir own version, first seen Oct 15, 2026
- nitinjain999/platform-skillstheir own version, first seen Oct 13, 2026
- guerrilla2799/ops-and-scale-ostheir own version, first seen Oct 13, 2026
- magnus919/agent-skillstheir own version, first seen Jul 21, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- magnus919/agent-skills★ 172same name
- nitinjain999/platform-skills★ 71same name
- takleb3rry/claude-global-appbuilding-skills★ 6same name
- linseyk/ai-governance★ 2same name
- catesandrew/skills★ 1same name
- guerrilla2799/ops-and-scale-os★ 1same name
- paulopestanajunior/agents-config★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- decision-logSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
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
- Distinctive: line 84
Check for model risk controls:
- Distinctive: line 141
No ML code detected: Check for third-party model API calls (OpenAI, Bedrock, etc.) and apply governance review to the integration layer.
- Distinctive: line 153
Early exit: If no model artifacts, training scripts, or LLM client code found, report "No AI/ML system detected in this path" and exit.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Governance Audit
Systematic trust and control assessment for AI/ML systems. Maps the AI system boundary, evaluates risk controls, and identifies gaps against governance frameworks (EU AI Act, NIST AI RMF, ISO 42001).
Usage
/ai-governance # full audit of the current project
/ai-governance <path> # audit a specific ML service or module
/ai-governance --framework eu # focus on EU AI Act risk classification
/ai-governance --framework nist # focus on NIST AI RMF (Govern/Map/Measure/Manage)Behavior
Step 1 — Map the AI system boundary
# Identify model artifacts, training scripts, inference code
find . -name "*.pkl" -o -name "*.pt" -o -name "*.onnx" -o -name "model.*" 2>/dev/null | head -10
grep -rn "model.predict\|model.generate\|pipeline\|inference" --include="*.py" -l . | head -10
# Find dataset references
grep -rn "pd.read_csv\|load_dataset\|dataloader\|train_data" --include="*.py" -l . | head -10Document:
- What decisions does the model make? (classification, ranking, generation, recommendation)
- Who is affected? (internal tooling vs customer-facing vs high-stakes)
- What data does it consume?
Step 2 — Risk classification
Classify the system under the EU AI Act tiers:
| Risk tier | Criteria | Examples |
| Unacceptable | Social scoring, real-time biometric surveillance | Flag for legal review immediately |
| High | Employment, credit, health, safety, law enforcement | Full compliance controls required |
| Limited | Chatbots, emotion recognition disclosure | Transparency obligations only |
| Minimal | Spam filters, game AI, recommenders | Voluntary codes of practice |
Flag the applicable tier and list required controls.
Step 3 — Evaluate bias and fairness controls
# Look for fairness tooling
grep -rn "fairlearn\|aif360\|what-if-tool\|demographic\|protected\|sensitive_attr\|equalized_odds" \
--include="*.py" -l . 2>/dev/null
# Check if sensitive attributes are in training data
grep -rn "gender\|race\|ethnicity\|age\|religion\|nationality" \
--include="*.py" --include="*.csv" --include="*.json" -l . 2>/dev/null | head -10Check for:
- Fairness metric definition (demographic parity, equalized odds, calibration)
- Bias testing in CI pipeline
- Disparate impact analysis on test set
- Sensitive attribute handling (removed, proxied, or legitimately included)
Step 4 — Evaluate explainability
grep -rn "shap\|lime\|captum\|eli5\|anchors\|explanation\|interpret" --include="*.py" -l . 2>/dev/nullCheck:
- Is there a method to explain individual predictions?
- Are explanations surfaced to affected users or decision-makers?
- Is there a global feature importance report?
- For LLMs: are citations / sources provided for generated claims?
Step 5 — Evaluate model risk management
Check for model risk controls:
| Control | What to look for | Gap indicator |
| Model card | model_card.md, MODEL_CARD.md, README with model description | No documentation of intended use, limitations, training data |
| Version tracking | Model version in filename, MLflow, DVC, W&B | Model artifact with no version |
| Performance monitoring | Drift detection, accuracy tracking in production | No monitoring post-deployment |
| Human-in-the-loop | Approval step for high-stakes decisions | Fully automated decisions in high-risk domain |
| Rollback plan | Previous model artifact retained | Only latest model available |
| Incident process | Runbook for model failure | No defined response to model misbehavior |
Step 6 — Evaluate data governance
# Check for data lineage documentation
find . -name "data_catalog*" -o -name "lineage*" -o -name "data_dictionary*" 2>/dev/null
grep -rn "consent\|gdpr\|pii\|personally_identifiable\|anonymize\|pseudonymize" --include="*.py" -l . 2>/dev/nullCheck:
- Is training data provenance documented?
- Is PII in training data identified and handled?
- Is there a data retention / deletion policy?
- Can a subject request their data be removed from training?
Step 7 — Report findings
AI GOVERNANCE AUDIT — <system/path>
Risk Classification
EU AI Act tier: LIMITED (chatbot with emotion recognition disclosure required)
NIST AI RMF: Map phase incomplete — no impact assessment documented
Bias & Fairness (2 gaps)
No fairness metrics defined — demographic parity not measured on test set
gender column present in training features — document why or remove
Explainability (1 gap)
No explanation method found — users cannot understand why they received a recommendation
Model Risk Management (3 gaps)
No model card — intended use, limitations, and training data undocumented
Model artifact (model.pkl) has no version tag — rollback impossible
No drift monitoring configured — silent degradation in production undetected
Data Governance (1 gap)
PII (email addresses) in training CSV with no anonymization documentation
Required actions for LIMITED tier compliance:
[ ] Add disclosure that users are interacting with an AI system
[ ] Document model limitations in model card
[ ] Implement opt-out mechanism for data use in trainingEdge Cases
- No ML code detected: Check for third-party model API calls (OpenAI, Bedrock, etc.) and apply governance review to the integration layer.
- Internal tooling only: Note reduced risk tier; focus on model risk management and explainability rather than regulatory compliance.
- Foundation model wrapper: Most governance obligations shift to the foundation model provider; focus audit on the application layer (context, output validation, misuse prevention).
Token Optimization
Expected range: 800–2,500 tokens (full audit); 300–600 tokens (single-framework focus)
Patterns used: Grep-before-Read, early exit (if no ML artifacts found, report and suggest scope), progressive disclosure (classification → gaps → required actions)
Caching: Caches system boundary map in .claude/cache/ai-governance/boundary.json (invalidated when model files or training scripts change).
Early exit: If no model artifacts, training scripts, or LLM client code found, report "No AI/ML system detected in this path" and exit.
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.

