跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

pptx-quality-gates · PPTX 交付前质量门禁检查

在交付可编辑 PPTX 前校验几何布局、无障碍、原生可编辑性、来源追溯与 OOXML 包完整性,并把确定性失败当作修复任务。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

交付产品发布演示前,检查幻灯片数量、元素越界、图片替代文本与阅读顺序,修复后重新构建并复检。

输出

预期交付:几何与无障碍审计结果、包完整性 JSON 报告、修复后的规格或构建器及例外记录。(编辑说明,非实际运行结果)

方法说明

---
name: pptx-quality-gates
description: "Use when validating or repairing an editable PPTX deck for geometry, accessibility, native editability, source lineage, and OOXML package integrity."
---

# PPTX Quality Gates

Use this skill before delivering a generated PPTX. Treat deterministic failures as repair work, not exceptions.

## Workflow

1. Confirm the spec, builder, PPTX, source manifest, and audit paths.
2. Apply `references/audit-checklist.md` to the coordinate contract before building.
3. Reopen the PPTX and compare slide count, actual bounds, hidden slides, and requested geometry with the layout tree.
4. For production decks, run `pptx-reference-deck-analysis/scripts/validate_package.py` and save the JSON report.
5. Check document language, slide titles, meaningful-image alt text, reading order, table headers, and source references.
6. When a compatible renderer is already available, inspect previews for clipping, font fallback, contrast, crop, and hierarchy. Do not add a renderer dependency.
7. Repair the spec or task-local builder, rebuild, and rerun the same checks.

## Required artifacts

Keep the spec, PPTX, build record, geometry audit, accessibility audit, package report, and source manifest together. Report any documented exception with slide ID, object ID, owner, reason, and review date.

## Pass criteria

Zero content collisions, text overflows, unsafe content bounds, invalid positive geometry, and package-integrity errors. Meaningful slide content must remain native editable objects; images support rather than replace it.

See `references/audit-checklist.md` for the complete checklist.