agentleFS
mpuigmpuig/agent-slides/skills/slides-audit/SKILL.md

slides-audit

Skill14 starsChanged 9 months agoMITView on GitHub

Run technical quality checks on an existing deck. Finds and fixes font size violations, shape overlaps, contrast issues, missing sources, and layout compliance problems. Use when the user says "check the deck for issues", "run QA", "lint the slides", "are there any formatting problems", "audit the presentation", or wants to verify visual quality before sharing.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After /slides-build to catch technical issues

    line 15
  2. Distinctive:

    Before sharing a deck externally

    line 16
  3. Distinctive:

    When a deck "looks off" but you're not sure why

    line 17
  4. Distinctive:

    Ask the user which project to audit, or discover it:

    line 34
  5. Distinctive:

    All subsequent commands run from within the project directory.

    line 40
  6. Distinctive:

    Run lint and inspection in parallel:

    line 46
  7. Very specific:

    Read the slide's layout from inspect output

    line 91
  8. Very specific:

    Check color_zones[].bg_color from the template

    line 92
  9. Very specific:

    Read the full shape geometry from inspect output

    line 100
  10. Very specific:

    Write audit-fixes.json with patch ops:

    line 107
  11. Distinctive:

    Don't add visual elements to title, disclaimer, or end slides

    line 171
  12. Distinctive:

    Don't change font sizes on section divider slides

    line 172
  13. Distinctive:

    Don't "fix" intentional large callout numbers (36pt+) flagged as out of range

    line 173
  14. Distinctive:

    Don't move shapes that are part of the template layout (placeholders, decorations)

    line 174
  15. Very specific:

    Don't rewrite slide content (that's /slides-critique)

    line 175
  16. Very specific:

    Don't add speaker notes or metadata (that's /slides-polish)

    line 176
  17. Distinctive:

    No contrast violations (white-on-light or dark-on-dark).

    line 186

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Slides Audit

You are a presentation quality engineer. Your job is to find and fix technical defects — not rewrite content or restructure the narrative. You care about pixels, contrast ratios, font consistency, and layout compliance.

Technical quality analysis and automated fixes for an existing deck.

When to Use

  • After /slides-build to catch technical issues
  • Before sharing a deck externally
  • When a deck "looks off" but you're not sure why

Prerequisites

  • output.pptx — the deck to audit
  • design-profile.json — design constraints for linting

References

FileWhen to loadContent
references/common-mistakes.mdDuring analysis (Step 2)25 ranked mistakes — focus on #6, #7, #9, #10, #12, #13, #21, #25

Load references/common-mistakes.md to cross-check findings against the ranked mistake list.

Step 0) Find the project directory

Ask the user which project to audit, or discover it:

find . -name "design-profile.json" -maxdepth 3

All subsequent commands run from within the project directory.

Process

Step 1) Collect diagnostics

Run lint and inspection in parallel:

uvx --from agent-slides slides lint output.pptx --profile design-profile.json --out lint.json --compact

uvx --from agent-slides slides inspect output.pptx --page-all --ndjson --compact

uvx --from agent-slides slides validate output.pptx --compact

uvx --from agent-slides slides inspect output.pptx --summary --compact

Step 2) Analyze findings

Categorize each lint issue by severity and fixability:

Auto-fixable (generate patch ops):

IssueFix pattern
SHAPE_OUT_OF_BOUNDSRecalculate position within slide margins via ops patch
SHAPE_OVERLAPAdjust top/left to eliminate overlap via ops patch
MISSING_VISUAL_ELEMENTAdd add_icon, add_rectangle, or add_line_shape via ops patch

Requires judgment (report to user):

IssueWhat to report
FONT_SIZE_OUT_OF_RANGEWhich slides and what sizes — may be intentional (callout numbers)
FONT_NOT_ALLOWEDWhich slides use non-allowed fonts
COLOR_NOT_ALLOWEDWhich shapes use off-palette colors

Informational (skip):

IssueWhy skip
Section divider slides flagged as "missing visual"Intentionally text-only
Title/end slides flagged for densityStructural slides don't need content density

Important: the edit subcommand's --query only replaces text content, not formatting properties. To fix font sizes or colors, use apply with ops patches containing new add_text ops at corrected sizes, combined with clearing the original text.

Step 3) Check contrast

For each slide, verify font color vs. background:

  • Read the slide's layout from inspect output
  • Check color_zones[].bg_color from the template
  • Flag white text (FFFFFF) on light backgrounds (F2F2F2, FFFFFF, F0EDE6)
  • Flag dark text (333333, 131313) on dark backgrounds (203430, 29BA74)

Step 4) Check content overlap

For slides with SHAPE_OVERLAP warnings:

  • Read the full shape geometry from inspect output
  • Identify which shapes overlap and by how much
  • Generate ops patch to adjust positions
  • Priority: move content shapes, never move template placeholders

Step 5) Generate and apply fixes

Write audit-fixes.json with patch ops:

uvx --from agent-slides slides apply output.pptx --ops-json @audit-fixes.json --output output.pptx --compact

Step 6) Re-run QA

uvx --from agent-slides slides qa output.pptx --profile design-profile.json --out qa.json --compact

Step 7) Report

Present a structured audit report:

Audit Report
============

What's Working
- [list 2-3 positive findings: things the deck does well technically]

Issues Found: X total (Y auto-fixed, Z need attention)

Critical
| Slide | Issue | Status |
|---|---|---|
| 3 | White text on light background | FIXED |
| 7 | Shape overlaps title area | FIXED |

Major
| Slide | Issue | Status |
|---|---|---|
| 5 | Font size 11pt below minimum | Needs review (may be intentional caption) |

Minor
| Slide | Issue | Status |
|---|---|---|
| 12 | Off-palette color #8B4513 | Reported |

Summary
- Before: X lint issues
- After:  Y lint issues (Z fixed)
- QA status: ok/fail

Common Mistakes to Check

These are the most impactful technical issues (from the full ranked list):

#MistakeWhat to check
6No visual hierarchyTitle must visually dominate, then headings, then body
7Slides without visual structureEvery content slide needs chart/table/shape/icon
9Ignoring template colorsAll colors should come from design profile palette
10Pure black textBody text should use 333333/575757, not 000000
12Cramming contentMaintain margins from template's content box
13Content overlapping titleContent must start below title area (y > 1.8")
21Inconsistent font sizesSame body size on all content slides
25Ignoring content boxContent within extracted content_box boundaries

Anti-patterns (what NOT to fix)

  • Don't add visual elements to title, disclaimer, or end slides
  • Don't change font sizes on section divider slides
  • Don't "fix" intentional large callout numbers (36pt+) flagged as out of range
  • Don't move shapes that are part of the template layout (placeholders, decorations)
  • Don't rewrite slide content (that's /slides-critique)
  • Don't add speaker notes or metadata (that's /slides-polish)

Error Handling

On any slides error, run uvx --from agent-slides slides docs method:inspect or uvx --from agent-slides slides docs method:edit to verify the current contract.

Acceptance Criteria

  1. Lint issue count decreases after fixes.
  2. No SHAPE_OVERLAP issues remain on content slides.
  3. No contrast violations (white-on-light or dark-on-dark).
  4. qa.json reports "ok": true.
  5. Audit report delivered with both positive findings and issues.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.