名称: 无障碍报告 描述: 生成无障碍合规报告,包括VPAT和ACR文档 允许使用的工具:
- 读取
- 写入
- 编辑
- Bash
- Glob
- Grep
无障碍报告技能
目的
生成全面的无障碍合规报告,包括VPAT(自愿性产品无障碍模板)和ACR(无障碍一致性报告)文档。
能力
- 生成VPAT 2.4文档
- 创建ACR(无障碍一致性报告)
- 完成WCAG 2.1/2.2检查清单
- 生成修复路线图
- 随时间跟踪无障碍技术债务
- 支持多种格式导出
目标流程
- accessibility-audit.js (vpatGenerationTask)
- component-library.js
集成点
- VPAT 2.4模板
- WCAG 2.1/2.2成功标准
- 第508条款要求
- EN 301 549标准
输入模式
{
"type": "object",
"properties": {
"reportType": {
"type": "string",
"enum": ["vpat", "acr", "wcag-checklist", "remediation-roadmap"],
"default": "vpat"
},
"productName": {
"type": "string",
"description": "被评估产品的名称"
},
"productVersion": {
"type": "string",
"description": "产品版本"
},
"evaluationDate": {
"type": "string",
"format": "date"
},
"wcagLevel": {
"type": "string",
"enum": ["A", "AA", "AAA"],
"default": "AA"
},
"auditResults": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": { "type": "string" },
"level": { "type": "string" },
"conformance": { "type": "string" },
"remarks": { "type": "string" }
}
}
},
"outputFormat": {
"type": "string",
"enum": ["docx", "pdf", "html", "markdown"],
"default": "markdown"
}
},
"required": ["reportType", "productName", "auditResults"]
}
输出模式
{
"type": "object",
"properties": {
"reportPath": {
"type": "string",
"description": "生成报告的路径"
},
"summary": {
"type": "object",
"properties": {
"overallConformance": { "type": "string" },
"criteriaPass": { "type": "number" },
"criteriaFail": { "type": "number" },
"criteriaPartial": { "type": "number" }
}
},
"remediationItems": {
"type": "array",
"description": "优先修复任务"
},
"timeline": {
"type": "object",
"description": "建议的修复时间线"
}
}
}
使用示例
const result = await skill.execute({
reportType: 'vpat',
productName: 'MyApp Web Portal',
productVersion: '2.1.0',
wcagLevel: 'AA',
auditResults: [
{ criterion: '1.1.1', level: 'A', conformance: 'Supports', remarks: '所有图像都有替代文本' },
{ criterion: '1.4.3', level: 'AA', conformance: 'Partially Supports', remarks: '页脚部分文本对比度较低' }
],
outputFormat: 'markdown'
});