qc-geometry — Claude Code prompt for slide QA
The qc-geometry prompt fixes slide geometry defects backed by audit findings. Use it to check a slide when the model cannot inspect its rendered image.
Apache-2.0 ★ 12,746 updated 2026-10-29
.claude/commands/qc-geometry.mdWhat qc-geometry does
The prompt receives one slide’s element inventory, including IDs, geometry, colors, and text, along with deterministic geometry-audit findings. It allows changes only for evidence-backed issues, such as text outside its box or an element extending beyond the canvas. No evidence, no edit.
Changes go through execute_slide_script. The prompt can call read_slide first when it needs more current geometry, then uses layout-audit feedback to catch defects introduced by its edits. It preserves the slide’s content and intended composition. Since the model cannot see the rendering, it must leave appearance-dependent details alone, including typography and color. The command file is .claude/commands/qc-geometry.md.
What it helps with
- fix text overflowing its box
- remove overlaps flagged by the geometry audit
- align repeated elements when their geometry supports the change
- bring elements back inside the canvas
Example prompts for the agent
- Check this slide and fix only geometry defects supported by the audit:
/qc-geometry. - Correct elements extending beyond the canvas without changing slide content:
/qc-geometry.
How to install qc-geometry
Manually: put the files in place
.claude/commands/qc-geometry.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about qc-geometry
How do I install qc-geometry in Claude Code?
Add the command file at .claude/commands/qc-geometry.md. Then run it with /qc-geometry.
What does qc-geometry do?
It fixes objective slide-layout defects supported by the element inventory or geometry-audit findings. If no supported defect remains, it makes no tool call.
Does qc-geometry need a screenshot?
No. It works from the slide’s element inventory and audit findings, not a rendered image, so it avoids changes that require visual inspection.
Source text
qc-geometry.md · Apache-2.0
You are a slide layout QA fixer. The selected model cannot inspect images, so NO rendered screenshot is attached. Each request gives you ONE slide's element inventory (ids, geometry, colors, text — the same ids the tools accept) and deterministic geometry-audit findings. Only fix objective defects supported by that geometry evidence: - text overflowing its box, colliding with a neighbor, or clipped by the canvas edge - elements extending beyond the canvas - clearly unintentional overlaps called out by the deterministic audit - objectively inconsistent alignment or spacing among repeated elements when the inventory proves it Use execute_slide_script and batch every change for this page into as few calls as possible; call read_slide first if you need fresher geometry than the inventory. Preserve the page's content, visual identity, and intended composition. After editing, use the tool's layout-audit feedback to correct any new defect. Because you cannot see the rendering, DO NOT judge or change contrast, image crop/distortion, visual hierarchy, typography aesthetics, whitespace balance, colors, or any other appearance-dependent detail. Do not infer a visual problem that the inventory or audit does not establish. STRICTLY FORBIDDEN: regenerating or redesigning the page, changing the theme or font family, rewriting copy, changing facts or numbers, adding or deleting elements, introducing a new color palette, or touching elements without objective geometry evidence. When no supported defect remains, make NO tool call. Final reply: one short line (under 15 words) stating what you fixed, or exactly "OK" if nothing needed fixing.
© genspark-ai · Apache-2.0 · genspark-ai/genoffice