SLIDEX-RAY

Japanese version
Deterministic structural linting and bounded repair for PowerPoint .pptx files. SLIDEX-RAY gives AI agents, CI jobs, and VS Code users structured findings and a verified OpenXML repair path without uploading the presentation or opening PowerPoint.
SLIDEX-RAY is part of AI-IN-THE-LOOP PACK.
Why SLIDEX-RAY?
Generated slides often contain overflowing text, overlapping shapes, edge violations, or group children outside their parent bounds. SLIDEX-RAY exposes the underlying slide structure and can apply a small, reviewable patch set while preserving the original file until verification succeeds.
- Scan: Resolve slide order, shape IDs, normalized coordinates, text metrics, groups, and structured anomalies.
- Patch: Apply only an operation in the explicit allowlist.
- Verify: Rescan, classify the before/after diff, and roll back on a new error or verification failure.
Capabilities
- Resolve presentation display order and report hidden slides separately.
- Detect estimated text overflow, shape overlap, safe-margin violations, and group-child overflow.
- Return shape, group, coordinate, text, and anomaly evidence as JSON, VS Code Problems, CLI output, or MCP results.
- Preview a safe-margin correction from VS Code and require explicit confirmation before applying it.
- Repair top-level shape position and size with
move_shape and resize_shape.
- Repair direct children of top-level groups with
move_group_child and resize_group_child.
- Apply bounded text fitting with
set_text_autofit and shrink_font_size.
- Compare scans as
resolved, persisted, or regressed and restore an exact persisted snapshot.
Safety Boundary
Every patch validates the source SHA-256 hash, saves a snapshot when requested, changes only allowed OpenXML attributes, rescans the PPTX, and rolls back when verification introduces a regression.
| Target |
Allowed operations |
Guardrails |
| Top-level shapes |
move_shape, resize_shape |
Finite normalized coordinates, positive size, and in-slide bounds |
| Direct group children |
move_group_child, resize_group_child |
Top-level group only, parent chOff/chExt bounds, nested groups remain read-only |
| Top-level text shapes |
set_text_autofit, shrink_font_size |
fontScale 50-100%, line-spacing reduction 0-20%, minimum font size 6-72pt |
| Read-only |
text content, font families, colors, rotation, z-order, charts, media, SmartArt, OLE, animations, slide structure, masters |
Never modified |
Group-child coordinates support:
coordinateSpace: "slide": normalized slide coordinates, matching existing shape patch arguments.
coordinateSpace: "group_local": raw EMU coordinates in the parent group's local coordinate system.
Malformed arguments, stale hashes, unsupported targets, nested groups, and out-of-bounds results are rejected without changing the source file. set_text_autofit preserves the original run sizes. shrink_font_size checks all explicit run sizes before mutating any of them and defaults to a 10pt floor.
VS Code Commands
SLIDEX-RAY: Scan Active PPTX
SLIDEX-RAY: Scan Workspace
SLIDEX-RAY: Preview Safe-Margin Patch
SLIDEX-RAY: Copy AI Report
SLIDEX-RAY: Save AI Report
slidexRay.autoScanOnSave refreshes Problems after a PPTX is saved. The safe-margin Quick Fix shows a patch preview and requires explicit confirmation.
slidex_scan
slidex_scan_workspace
slidex_diff_scans
slidex_apply_patch
slidex_rollback
slidex_heal
Installing the extension contributes the local MCP server to VS Code. A standalone client can start node dist/mcp.cjs from an installation or build directory. slidex_heal remains limited to one explicit patch attempt.
CLI
node dist/cli.cjs scan .\deck.pptx
node dist/cli.cjs scan .\deck.pptx --json .\reports\scan.json
node dist/cli.cjs diff .\reports\before.json .\reports\after.json
node dist/cli.cjs apply-patch .\reports\scan.json .\patch-set.json
node dist/cli.cjs rollback .\apply-result.json
node dist/cli.cjs heal .\reports\scan.json .\patch-set.json --max-attempts 1
Privacy and Limitations
- No network requests, uploads, or telemetry.
- OpenXML ZIP/XML processing stays local.
- Snapshots remain in
.slidex unless an explicit path is supplied.
- Text overflow uses a fast estimate without font rendering and remains labeled
ESTIMATED.
- SLIDEX-RAY does not claim pixel-perfect PowerPoint rendering parity.
- Unsupported PPTX structures remain read-only.
Source and License
Source: https://github.com/furukawa658/ai-in-the-loop-pack
Apache License 2.0.
| |