Medical Device MDR Auditor
ID: 130
Version: 1.0.0
Description: Check whether medical device technical files contain required documents according to EU MDR (2017/745) regulations
When to Use
- - Use this skill when the task needs Audit medical device technical files against EU MDR 2017/745 regulations.
- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
Key Features
- - Scope-focused workflow aligned to: Audit medical device technical files against EU MDR 2017/745 regulations.
- Packaged executable path(s):
scripts/main.py. - Reference material available in
references/ for task-specific guidance. - Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
See ## Prerequisites above for related details.
- -
Python: 3.10+. Repository baseline for current packaged skills. - INLINECODE5 :
unspecified. Declared in requirements.txt. - INLINECODE8 :
unspecified. Declared in requirements.txt.
Example Usage
See ## Usage above for related details.
CODEBLOCK0
Example run plan:
- 1. Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings. - Run
python scripts/main.py with the validated inputs. - Review the generated output and return the final artifact with any assumptions called out.
Implementation Details
See ## Workflow above for related details.
- - Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface:
scripts/main.py. - Reference guidance:
references/ contains supporting rules, prompts, or checklists. - Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
Quick Check
Use this command to verify that the packaged script entry point can be parsed before deeper execution.
CODEBLOCK1
Audit-Ready Commands
Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
CODEBLOCK2
Workflow
- 1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
- Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
- Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
- Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
- If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
Overview
This Skill is used to audit the compliance of medical device technical files, checking whether documents contain necessary Clinical Evaluation Reports and Post-Market Surveillance plans according to EU MDR 2017/745 regulatory requirements.
Usage
CODEBLOCK3
Parameters
| Parameter | Type | Required | Description |
|---|
| INLINECODE17 | string | Conditional | Technical file directory path |
| INLINECODE18 |
string | Conditional | JSON configuration file path |
|
--class | string | Yes | Device classification (I, IIa, IIb, III) |
|
--output | string | No | Output report path |
|
--verbose | flag | No | Output detailed information |
MDR 2017/745 Check Points
1. Clinical Evaluation Report (CER)
According to MDR Annex XIV Part A, must include:
- - [ ] Clinical Evaluation Plan
- [ ] Clinical Data Assessment (Literature review / Clinical investigation data)
- [ ] Clinical Evidence Analysis
- [ ] Benefit-risk Conclusion
2. Post-Market Surveillance Plan (PMS)
According to MDR Article 83 & Annex III, must include:
- - [ ] PMS procedure description
- [ ] Data collection methods
- [ ] Risk assessment update mechanism
- [ ] Trend reporting mechanism
3. Post-Market Clinical Follow-up Plan (PMCF Plan)
According to MDR Annex XIV Part B, for Class IIa and above devices:
- - [ ] PMCF plan document
- [ ] Clinical data continuous collection methods
- [ ] Safety and performance monitoring procedures
4. Other Key Documents
- - [ ] Risk Management File (ISO 14971)
- [ ] Usability Engineering File
- [ ] Biological Evaluation Report
- [ ] Labeling & Instructions for Use
Output Format
Compliance Report Example
CODEBLOCK4
Compliance Levels
| Level | Description |
|---|
| INLINECODE22 | Fully compliant with MDR requirements |
| INLINECODE23 |
Partially compliant, with correctable deficiencies |
|
NON_COMPLIANT | Seriously non-compliant, critical documents missing |
Exit Codes
| Code | Meaning |
|---|
| 0 | Audit passed, fully compliant |
| 1 |
Audit passed, with warnings |
| 2 | Audit failed, with deficiencies |
| 3 | Execution error |
References
- - Regulation (EU) 2017/745 (MDR)
- MDCG Guidance Documents
- EN ISO 14971:2019
- EN ISO 13485:2016
Author
OpenClaw Skill Development Team
Risk Assessment
| Risk Indicator | Assessment | Level |
|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access |
No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
Security Checklist
- - [ ] No hardcoded credentials or API keys
- [ ] No unauthorized file system access (../)
- [ ] Output does not expose sensitive information
- [ ] Prompt injection protections in place
- [ ] Input file paths validated (no ../ traversal)
- [ ] Output directory restricted to workspace
- [ ] Script execution in sandboxed environment
- [ ] Error messages sanitized (no stack traces exposed)
- [ ] Dependencies audited
Prerequisites
CODEBLOCK5
Evaluation Criteria
Success Metrics
- - [ ] Successfully executes main functionality
- [ ] Output meets quality standards
- [ ] Handles edge cases gracefully
- [ ] Performance is acceptable
Test Cases
- 1. Basic Functionality: Standard input → Expected output
- Edge Case: Invalid input → Graceful error handling
- Performance: Large dataset → Acceptable processing time
Lifecycle Status
- - Current Stage: Draft
- Next Review Date: 2026-03-06
- Known Issues: None
- Planned Improvements:
- Performance optimization
- Additional feature support
Output Requirements
Every final response should make these items explicit when they are relevant:
- - Objective or requested deliverable
- Inputs used and assumptions introduced
- Workflow or decision path
- Core result, recommendation, or artifact
- Constraints, risks, caveats, or validation needs
- Unresolved items and next-step checks
Error Handling
- - If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
- If
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback. - Do not fabricate files, citations, data, search results, or execution outcomes.
Input Validation
This skill accepts requests that match the documented purpose of medical-device-mdr-auditor and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
INLINECODE27 only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
References
Response Template
Use the following fixed structure for non-trivial requests:
- 1. Objective
- Inputs Received
- Assumptions
- Workflow
- Deliverable
- Risks and Limits
- Next Checks
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
医疗器械MDR审核员
ID: 130
版本: 1.0.0
描述: 根据欧盟MDR(2017/745)法规,检查医疗器械技术文件是否包含所需文件
使用时机
- - 当任务需要根据欧盟MDR 2017/745法规审核医疗器械技术文件时使用此技能。
- 用于需要明确假设、限定范围和可重复输出格式的学术写作任务。
- 当需要为缺失输入、执行错误或部分证据提供文档化的回退路径时使用此技能。
主要特性
- - 聚焦范围的工作流程,对齐:根据欧盟MDR 2017/745法规审核医疗器械技术文件。
- 打包的可执行路径:scripts/main.py。
- 参考资料位于 references/ 目录,提供任务特定指导。
- 结构化的执行路径,确保输出一致且可审查。
依赖项
相关详情请参见上方## 前提条件。
- - Python:3.10+。当前打包技能的仓库基线。
- dataclasses:未指定。在 requirements.txt 中声明。
- enum:未指定。在 requirements.txt 中声明。
使用示例
相关详情请参见上方## 用法。
bash
cd 20260318/scientific-skills/Academic Writing/medical-device-mdr-auditor
python -m py_compile scripts/main.py
python scripts/main.py --help
示例运行计划:
- 1. 确认用户输入、输出路径及任何必需的配置值。
- 如果脚本使用固定设置,编辑文件内的 CONFIG 块或文档化参数。
- 使用验证后的输入运行 python scripts/main.py。
- 审查生成的输出,并返回最终成果,同时注明任何假设。
实现细节
相关详情请参见上方## 工作流程。
- - 执行模型:验证请求,选择打包的工作流程,生成限定范围的可交付成果。
- 输入控制:在运行任何脚本前,确认源文件、范围限制、输出格式和验收标准。
- 主要实现界面:scripts/main.py。
- 参考指导:references/ 包含支持规则、提示或检查清单。
- 需首先明确的参数:输入路径、输出路径、范围过滤器、阈值及任何领域特定约束。
- 输出规范:保持结果可重复,明确标识假设,避免未文档化的副作用。
快速检查
在深入执行前,使用此命令验证打包脚本入口点是否可解析。
bash
python -m py_compile scripts/main.py
审核就绪命令
使用这些具体命令进行验证。它们特意保持自包含,避免使用占位符路径。
bash
python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py -h
工作流程
- 1. 在进行详细工作前,确认用户目标、必需输入和不可协商的约束条件。
- 验证请求是否与文档化范围匹配,如果任务需要不受支持的假设,则提前停止。
- 仅使用实际可用的输入,使用打包脚本路径或文档化的推理路径。
- 返回结构化结果,区分假设、可交付成果、风险和未解决项。
- 如果执行失败或输入不完整,切换到回退路径,并准确说明阻止完全完成的原因。
概述
此技能用于审核医疗器械技术文件的合规性,检查文件是否根据欧盟MDR 2017/745法规要求包含必要的临床评估报告和上市后监督计划。
用法
text
检查单个技术文件目录
python3 /Users/z04030865/.openclaw/workspace/skills/medical-device-mdr-auditor/scripts/main.py --input /path/to/technical/file --class IIa
使用JSON配置文件批量检查
python3 /Users/z04030865/.openclaw/workspace/skills/medical-device-mdr-auditor/scripts/main.py --config /path/to/config.json
输出详细报告
python3 /Users/z04030865/.openclaw/workspace/skills/medical-device-mdr-auditor/scripts/main.py --input /path/to/technical/file --class III --verbose --output report.json
参数
| 参数 | 类型 | 必需 | 描述 |
|---|
| --input | 字符串 | 条件性 | 技术文件目录路径 |
| --config |
字符串 | 条件性 | JSON配置文件路径 |
| --class | 字符串 | 是 | 器械分类(I, IIa, IIb, III) |
| --output | 字符串 | 否 | 输出报告路径 |
| --verbose | 标志 | 否 | 输出详细信息 |
MDR 2017/745检查点
1. 临床评估报告(CER)
根据MDR附录XIV A部分,必须包括:
- - [ ] 临床评估计划
- [ ] 临床数据评估(文献综述/临床研究数据)
- [ ] 临床证据分析
- [ ] 受益-风险结论
2. 上市后监督计划(PMS)
根据MDR第83条及附录III,必须包括:
- - [ ] PMS程序描述
- [ ] 数据收集方法
- [ ] 风险评估更新机制
- [ ] 趋势报告机制
3. 上市后临床随访计划(PMCF计划)
根据MDR附录XIV B部分,适用于IIa类及以上器械:
- - [ ] PMCF计划文件
- [ ] 临床数据持续收集方法
- [ ] 安全性和性能监测程序
4. 其他关键文件
- - [ ] 风险管理文件(ISO 14971)
- [ ] 可用性工程文件
- [ ] 生物学评估报告
- [ ] 标签和使用说明
输出格式
合规性报告示例
json
{
audit_date: 2026-02-06T06:00:00Z,
device_class: IIa,
compliance_status: PARTIAL,
findings: [
{
category: CRITICAL,
regulation: MDR Annex XIV Part A,
item: Clinical Evaluation Report,
status: MISSING,
description: Clinical evaluation report file not found
},
{
category: MAJOR,
regulation: MDR Article 83,
item: PMS Plan,
status: INCOMPLETE,
description: PMS plan lacks trend reporting mechanism
}
],
summary: {
total_checks: 12,
passed: 8,
warnings: 2,
failed: 2
}
}
合规级别
| 级别 | 描述 |
|---|
| COMPLIANT | 完全符合MDR要求 |
| PARTIAL |
部分合规,存在可纠正的缺陷 |
| NON_COMPLIANT | 严重不合规,关键文件缺失 |
退出代码
审核通过,存在警告 |
| 2 | 审核失败,存在缺陷 |
| 3 | 执行错误 |
参考资料
- - 欧盟法规(EU) 2017/745(MDR)
- MDCG指导文件
- EN ISO 14971:2019
- EN ISO 13485:2016
作者
OpenClaw技能开发团队
风险评估
| 风险指标 | 评估 | 级别 |
|---|
| 代码执行 | 本地执行Python/R脚本 | 中 |
| 网络访问 |
无外部API调用 | 低 |
| 文件系统访问 | 读取输入文件,写入输出文件 | 中 |
| 指令篡改 | 标准提示指南 | 低 |
| 数据暴露 | 输出文件保存到工作区 | 低 |
安全检查清单
- - [ ] 无硬编码凭据或API密钥
- [ ] 无未经授权的文件系统访问(../)
- [ ] 输出不暴露敏感信息
- [ ] 已实施提示注入保护
- [ ] 输入文件路径已验证(无../遍历)
- [ ] 输出目录限制在工作区内
- [ ] 脚本在沙盒环境中执行
- [ ] 错误消息已清理(不暴露堆栈跟踪)
- [ ] 依赖项已审计
前提条件
text
Python依赖项
pip install -r requirements.txt
评估标准
成功指标
- - [ ] 成功执行主要功能
- [ ] 输出符合质量标准
- [ ] 优雅处理边缘情况
- [ ] 性能可接受
测试用例
- 1. 基本功能:标准输入 → 预期输出
- 边缘情况:无效输入 → 优雅的错误处理