agentleFS
obielinobielin/responsible-ai-skills/skills/governance-documentation/SKILL.md

governance-documentation

Skill2 starsChanged 8 months agoMITView on GitHub

Use when preparing an AI system for production deployment, or when asked to document an AI system. Run before go-live — never after.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Run the model card generator:

    line 24
  2. Distinctive:

    If deploying in UK public sector context, complete this before go-live:

    line 124

≈ “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

Governance Documentation

You cannot deploy an AI system without governance documentation. This skill generates the minimum required artefacts. Do not ship without completing every item.

What Must Exist Before Deployment

DocumentRequired ForGenerated By
Model CardAll AI systemsThis skill — Step 1
Risk AssessmentTier 2+ systemsThis skill — Step 2
ATRS EntryUK public sectorThis skill — Step 3
Incident Response PlanAll production systemsThis skill — Step 4
Monitoring PlanAll production systemsThis skill — Step 5

Step 1: Generate the Model Card

Run the model card generator:

python skills/governance-documentation/scripts/generate_model_card.py \
  --name "Your System Name" \
  --output docs/model-card.md

Or fill in this template manually:

# Model Card: [System Name]

## System Details
- **Name:** 
- **Version:** 
- **Date:** 
- **Type:** [Classification / Regression / NLP / Generative / Agent]
- **Owner:** 
- **Contact:** 

## Intended Use
- **Primary use:** 
- **Intended users:** 
- **Out-of-scope uses:**

## Training Data
- **Source:** 
- **Size:** 
- **Date range:** 
- **Known limitations:** 

## Performance
| Metric | Overall | Group A | Group B | Group C |
|---|---|---|---|---|
| Accuracy | | | | |
| F1 | | | | |
| FPR | | | | |

## Limitations
- 
- 

## Ethical Considerations
- Potential for harm: 
- Mitigations: 

## Human Oversight
- Who reviews outputs: 
- Override mechanism: 
- Override rate (target): 

Step 2: Complete the Risk Assessment

Answer every question. No blanks.

## AI Risk Assessment — [System Name]

### Impact Classification
- Affected population: 
- Decision reversibility: [Easily reversed / Difficult / Irreversible]
- Vulnerable groups affected: [Yes/No — specify]
- Maximum consequence of error: 
- Risk Tier: [1 / 2 / 3 / 4]

### Data Risks
- Personal data processed: [Yes/No]
- Special category data: [Yes/No — specify]
- DPIA completed: [Yes/No — date]
- Data minimisation applied: [Yes/No]

### Model Risks
- Bias assessment completed: [Yes/No — date]
- Fairness tests passing: [Yes/No]
- Known failure modes:
  1. 
  2. 
- Mitigation for each:
  1. 
  2. 

### Operational Risks
- What happens if system is unavailable: 
- Manual fallback process: 
- Time to restore service: 
- Monitoring in place: [Yes/No — describe]

### Residual Risk
- Overall residual risk: [Low / Medium / High / Critical]
- Accepted by (SRO name and date): 

Step 3: ATRS Entry (UK Public Sector Only)

If deploying in UK public sector context, complete this before go-live:

## ATRS Entry — [System Name]

**Tool name:** 
**Owning organisation:** 
**Description:** [Plain English — what does this tool do, and in which decisions?]
**Phase:** [In development / Deployed / Decommissioned]
**Scope:** [Which decisions or processes does it apply to?]
**Type of AI:** 
**Supplier:** 
**Date first deployed:** 
**Review date:** 

**Human oversight:**
[Describe exactly what human review happens before any decision is acted on]

**Equality impact:**
[Was an EIA completed? What did it find? What was done about it?]

**Data used:**
[What data does the system use? Is any of it personal or sensitive?]

**Where to find more information:**
[Link to model card, contact details]

Publish this at: [your-org-website]/algorithmic-transparency


Step 4: Incident Response Plan

Complete this template. Every field is mandatory:

## AI Incident Response Plan — [System Name]

### Severity Levels
| Level | Description | Response Time | Escalation |
|---|---|---|---|
| P1 — Critical | System causing active harm to citizens | 1 hour | SRO + Director immediately |
| P2 — High | Significant performance degradation | 4 hours | SRO within 2 hours |
| P3 — Medium | Fairness threshold exceeded | 24 hours | Team lead + SRO |
| P4 — Low | Anomalous output detected | 72 hours | Team lead |

### First Response Checklist
- [ ] Assess severity level
- [ ] Log incident in incident register with timestamp
- [ ] Notify appropriate contacts (see escalation matrix below)
- [ ] Decide: continue / pause / shut down system
- [ ] If pausing: activate manual fallback process
- [ ] Preserve all logs — do not delete or overwrite

### Emergency Shutdown Procedure
1. [Exact steps to stop the system — must be executable in <15 minutes]
2. 
3. 

### Escalation Matrix
| Severity | Primary Contact | Secondary | Regulator Notification? |
|---|---|---|---|
| P1 | [Name, phone] | [Name, phone] | ICO within 72h if personal data breach |
| P2 | [Name, phone] | [Name, phone] | Assess case by case |
| P3 | [Name, phone] | | No |

### Post-Incident Review
- All P1/P2 incidents: mandatory post-incident review within 5 business days
- Output: root cause analysis + remediation plan + updated risk assessment
- Share with governance board within 10 business days

Step 5: Monitoring Plan

## Monitoring Plan — [System Name]

### Metrics to Monitor
| Metric | Baseline | Warning Threshold | Critical Threshold | Frequency |
|---|---|---|---|---|
| Prediction accuracy | | | | Daily |
| Demographic parity gap | | >0.05 | >0.10 | Weekly |
| Override rate | | <5% or >50% | | Weekly |
| System availability | 99.5% | <99% | <95% | Real-time |
| Error rate | | | | Daily |

### Monitoring Owner
- Primary: [Name, role]
- Secondary: [Name, role]

### Review Cadence
- Automated alerts: real-time
- Weekly dashboard review: [day and time]
- Monthly governance report: [date]
- Annual full review: [month]

### Model Retraining Triggers
- [ ] Accuracy drops below [threshold]
- [ ] Fairness threshold exceeded for [N] consecutive weeks
- [ ] Significant change in input data distribution
- [ ] Policy or legislation change affecting the use case
- [ ] Annual scheduled review

Completion Checklist

  • Model card written and stored in docs/model-card.md
  • Risk assessment complete and signed off by SRO
  • ATRS entry drafted (publish before or on go-live date)
  • Incident response plan complete — emergency shutdown tested
  • Monitoring plan in place with named owner
  • All documents committed to version control
  • Documents location communicated to governance board

You may not deploy to production until all items are checked.

Now run alignment-review as the final check before go-live.

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.