visual-audit
Adversarial visual-layout audit of a Quarto `.qmd` or Beamer `.tex` deck. Flags overflow, font inconsistency, box fatigue, spacing, and alignment issues. Use when user says "visual audit", "check the layout", "does this overflow?", "look for visual issues", "audit the slides", or after reworking a deck's appearance. Does NOT check writing or pedagogy — pair with `/proofread` or `/pedagogy-review`.
How do I install this agent skill?
npx skills add https://github.com/pedrohcgs/claude-code-my-workflow --skill visual-auditIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill performs visual audits of slide decks by rendering Quarto files or compiling Beamer files. The primary security concern is the indirect prompt injection surface, as the agent processes untrusted content from user-provided files to generate reports and could be influenced by instructions embedded within those files.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Visual Audit of Slide Deck
Perform a thorough visual layout audit of a slide deck.
Steps
-
Read the slide file specified in
$ARGUMENTS -
For Quarto (.qmd) files:
- Render with
quarto render Quarto/$ARGUMENTS - Measure the render:
"${SLIDE_QA_PYTHON:-python3}" scripts/slide-qa.py Quarto/<deck>.html. It loads the deck in headless Chrome with every fragment shown and writesquality_reports/audits/slide-qa/<deck>/report.md— per-slide pixels past each edge, the offending element, content hidden inside scrolling elements — plus one screenshot per slide, and broken images or local files whose path is missing or in the wrong letter case (these break on GitHub Pages). OVERFLOW findings come from this report, and a broken or wrong-case asset is a finding too; Read the screenshots of flagged and dense slides for the other checks. - If it exits 2 (usually Playwright is missing — the script prints the one-time venv install and the
SLIDE_QA_PYTHONline to set), say so, fall back to reading the rendered HTML of the dense slides and any screenshot the user supplies, and name the slides the user should eyeball
- Render with
-
For Beamer (.tex) files:
- Compile (see
/compile-latex), check the log for overfull hbox warnings, and Read the PDF pages that carry figures or dense content
- Compile (see
-
Audit every slide for:
OVERFLOW: Content exceeding slide boundaries FONT CONSISTENCY: Inline font-size overrides, inconsistent sizes BOX FATIGUE: 3+ colored boxes on one slide (INV-7 allows two), wrong box types SPACING: Missing negative margins, missing fig-align LAYOUT: Missing transitions, missing framing sentences, semantic colors
-
Produce a report organized by slide with severity and recommendations
-
Follow the spacing-first principle:
- Reduce vertical spacing with negative margins
- Consolidate lists
- Move displayed equations inline
- Reduce image/SVG size
- Last resort: font size reduction (never below 0.85em)
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/pedrohcgs/claude-code-my-workflow/visual-audit">View visual-audit on skillZs</a>