Check a self-attested ISO/IEC 42001:2023 AI Management System profile and per-system AI impact assessment against clauses 4-10 and Annex A, and list each gap with a concrete fix. Use when preparing for ISO 42001 certification, running an AIMS gap analysis, assessing the fairness, transparency, safety, privacy, security and accountability controls of one AI system, or deciding what to close first before a Stage 1 audit.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Iso42001 Ai Management?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/borghei-iso42001-ai-management)
---
name: iso42001-ai-management
description: >
Check a self-attested ISO/IEC 42001:2023 AI Management System profile and per-system AI
impact assessment against clauses 4-10 and Annex A, and list each gap with a concrete fix.
Use when preparing for ISO 42001 certification, running an AIMS gap analysis, assessing the
fairness, transparency, safety, privacy, security and accountability controls of one AI system,
or deciding what to close first before a Stage 1 audit.
license: MIT + Commons Clause
metadata:
version: 1.1.0
author: borghei
category: compliance
domain: ai-governance
updated: 2026-12-03
tags: [iso-42001, ai-management, aims, ai-lifecycle, governance]
---
# ISO 42001 AI Management System
Two stdlib-only Python tools for ISO/IEC 42001:2023. Both read a JSON file of true/false answers that
you fill in (generate one with `--template`). They check your answers; they do not inspect your
systems or documents, so a result is only as honest as the answers.
## Tools
### AIMS Readiness Checker
Scores the share of clause 4-10 checks and Annex A controls (implemented and documented) you marked true.
```bash
python3 scripts/aims_readiness_checker.py --template > org_profile.json
python3 scripts/aims_readiness_checker.py org_profile.json
python3 scripts/aims_readiness_checker.py org_profile.json --format json --output report.json
```
Real run on the bundled flawed sample (`python3 scripts/aims_readiness_checker.py assets/flawed_aims_profile.json`):
```
ISO 42001:2023 AIMS READINESS (self-attested checklist coverage)
Organization: Contoso Retail | Industry: Financial services | AI systems: 3
Read: 85/85 clause checks answered, 9/9 Annex A controls supplied
Overall coverage: 83.1/100 (70% clauses + 30% Annex A; internal heuristic)
Readiness band (heuristic): Near Ready
Clause 4 Context of the Organization 55.6 9/9 answered (Defined)
Clause 5 Leadership 91.7 12/12 answered (Optimized)
...
OTHER GAPS (1)
- A.7 A.7 is Partial (implemented=True, documented=False) [annex_a_controls.a7_data_for_ai = {"implemented": true, "documented": false}]
Fix: Document the implemented control A.7 and set annex_a_controls.a7_data_for_ai.documented to true.
FIX 15 gaps
```
How it judges:
- Checks you leave out are reported as "not answered" or "not assessed" and are excluded from the score, never counted as failures. Fill the template to assess everything.
- Every gap quotes the key and value you supplied, and names the evidence an auditor looks for (clause number).
- Overall = 70% clause average + 30% Annex A, and the maturity and readiness bands use fixed cut-offs. These weights and cut-offs are internal heuristics, not ISO rules. Treat the gap list, not the number, as the result.
### AI Impact Assessor
Checks one AI system across fairness, transparency, safety, privacy, security and accountability, with weighted checks per dimension.
```bash
python3 scripts/ai_impact_assessor.py --template > ai_system.json
python3 scripts/ai_impact_assessor.py ai_system.json
python3 scripts/ai_impact_assessor.py ai_system.json --format markdown --output assessment.md
python3 scripts/ai_impact_assessor.py ai_system.json --format json
```
- Output: per-dimension control coverage (higher is better) with a gap level, treatments per failed check (priority, type, effort, exact key to flip), EU AI Act articles taken from the `eu_ai_act_context` flags you set, Annex A mapping, at most three next actions, and a verdict line.
- Hard flags that always count as issues: `is_prohibited` true; `safety_critical_application` true without human override; autonomous decisions without a human in the loop.
- The EU AI Act mapping lists articles for the categories you declare; it does not classify the system for you.
## Exit codes
| Code | Meaning |
|------|---------|
| 0 | No gaps or failed checks in the supplied answers (also `--template`, `--help`) |
| 1 | Gaps found; the report lists each with a fix |
| 2 | Unusable input: missing or unreadable file, empty file, invalid JSON, not an object, no recognised section, non-boolean answer. One-line message on stderr |
Samples in `assets/`: `sample_*` (exit 0), `flawed_*` (exit 1), `malformed_*` (exit 2); `assets/contract.json` lists the runs checked by `python3 scripts/skill_contract_check.py --skill ra-qm-team/iso42001-ai-management`.
## Reference Guides
### ISO 42001 Clause Guide
`references/iso42001-clause-guide.md`
Comprehensive clause-by-clause guidance:
- All clauses (4-10) with requirements and implementation steps
- Annex A controls (A.2-A.10) detailed with evidence requirements
- Audit questions per clause for internal audit preparation
- Common nonconformity findings and how to avoid them
- Required documented information per clause
- Cross-references to ISO 27001, ISO 9001, and EU AI Act
### Standard Overview
`references/standard-overview.md`
PDCA framework by clause (4-10), AI policy and risk-assessment content, lifecycle stages, Annex A control table.
---
### AI Lifecycle Management
`references/ai-lifecycle-management.md`
End-to-end AI system lifecycle guidance:
- Lifecycle stages: design, development, testing, deployment, monitoring, retirement
- Design and development controls (requirements, architecture, coding standards)
- Testing and validation requirements (functional, bias, robustness, performance)
- Deployment procedures (staging, canary, rollback, approval gates)
- Monitoring and maintenance (drift detection, performance degradation, retraining)
- Retirement and decommissioning (data disposal, model archival, stakeholder notification)
- Data management across lifecycle (quality, provenance, bias assessment, lineage)
- Model versioning and change management (version control, change impact, approval workflows)
---
## Clarify First
Before running the assessment, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- **AIMS scope:** which AI systems and organizational boundaries are in scope (drives the readiness assessment and per-system impact assessments).
- **Task:** AIMS readiness assessment vs per-system AI impact assessment (selects the tool and workflow).
- **Certification target:** initial certification, surveillance, or internal-only (sets the score threshold and evidence depth).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
## Workflows
### Workflow 1: ISO 42001 Readiness Assessment
```
Step 1: Define AIMS scope
→ Identify AI systems in scope
→ Determine organizational boundaries
→ Document interested parties and requirements
Step 2: Generate assessment template
→ python3 scripts/aims_readiness_checker.py --template > org_profile.json
→ Fill in organizational details and current state
Step 3: Run readiness assessment
→ python3 scripts/aims_readiness_checker.py org_profile.json
Step 4: Review results
→ Address critical gaps (read the CRITICAL GAPS list first)
→ Prioritize Annex A controls by risk
→ Develop remediation roadmap
Step 5: Conduct AI impact assessments
→ python3 scripts/ai_impact_assessor.py --template > ai_system.json
→ Assess each in-scope AI system
→ python3 scripts/ai_impact_assessor.py ai_system.json
Step 6: Plan implementation
→ See references/iso42001-clause-guide.md for requirements
→ See references/ai-lifecycle-management.md for operational controls
```
### Workflow 2: AI System Impact Assessment
```
Step 1: Identify AI system for assessment
→ Document system purpose, inputs, outputs, and decisions
→ Identify affected individuals and groups
Step 2: Generate assessment template
→ python3 scripts/ai_impact_assessor.py --template > ai_system.json
→ Complete all sections (model details, data sources, deployment context)
Step 3: Conduct assessment
→ python3 scripts/ai_impact_assessor.py ai_system.json --format markdown --output report.md
Step 4: Review dimension scores
→ Fairness: check for bias in training data and outcomes
→ Transparency: verify explainability mechanisms
→ Safety: validate failure modes and human oversight
→ Privacy: confirm data protection measures
→ Security: assess adversarial resilience
Step 5: Implement risk treatments
→ Apply recommended mitigations per dimension
→ Document residual risk acceptance decisions
→ Assign treatment owners and timelines
Step 6: Monitor and review
→ Schedule periodic reassessment and re-run when the system changes materially
→ Track treatment implementation progress
→ Update assessment when system changes materially
```
### Workflow 3: AIMS Certification Preparation
```
Step 1: Gap analysis
→ python3 scripts/aims_readiness_checker.py org_profile.json
→ Aim for a "Ready" band (internal heuristic: overall 80+, no clause under 60), then confirm with an internal audit
Step 2: Document AIMS
→ AI policy (Clause 5.2)
→ AIMS scope (Clause 4.3)
→ Risk assessment methodology (Clause 6.1)
→ Statement of Applicability for Annex A controls
→ AI objectives (Clause 6.2)
Step 3: Implement operational controls
→ AI lifecycle procedures (Clause 8)
→ Data management processes (Annex A.7)
→ Third-party management (Annex A.10)
→ Impact assessments for all AI systems (Annex A.5)
Step 4: Conduct internal audit
→ Use references/iso42001-clause-guide.md audit questions
→ Document findings and corrective actions
→ Verify closure of nonconformities
Step 5: Management review
→ Present AIMS performance to top management
→ Review AI objectives achievement
→ Obtain commitment for continual improvement
Step 6: Stage 1 and Stage 2 audits
→ Stage 1: Documentation review (readiness check)
→ Stage 2: Implementation effectiveness audit
→ Address any nonconformities from audit
```
---