inspect-repair
Skill4 starsChanged 8 months agoMITView on GitHub
Run a free deterministic quality report on ANY PowerPoint file (yours or generated elsewhere) and optionally auto-repair it. Use when the user asks to check/lint/QA/review a pptx, find broken slides, fix overflowing or hidden text, clean up a deck before sending, or verify a generated deck. Uses the SlideForge REST API (works without the MCP server); repair never alters words.
- Sends data out
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-slideSkill
- pdf-to-pptxSkill
- translate-pptxSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 63
Verify generated decks: after any tool (SlideForge or otherwise) produces a pptx, inspect it before delivering — it's free and takes ~1s …
≈ “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.
Files
Inspect & repair any deck (Deck Doctor)
POST /v1/inspect returns a Deck Quality Report for any .pptx — decks SlideForge never
rendered included. Free, deterministic, no LLM: the file is analyzed with real font metrics
and geometry, never sent to a model. Repair is $0.02 per repaired slide, and its dry_run
returns the exact fix plan (and therefore the exact price) free.
Inspect
curl -X POST https://api.slideforge.dev/v1/inspect \
-H "Authorization: Bearer sf_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pptx_base64": "'"$(base64 -w0 deck.pptx)"'"}'Sources (exactly one): pptx_base64 (≤25 MB), pptx_url (https), or job_id (a SlideForge
render). First 50 slides; 30 requests/hour.
What it finds — each with a machine code, severity, message, remedy, and the offending
shape_id: text overflow / clipping (measured with real font metrics, autofit-aware), content
hidden behind opaque shapes (z-order), off-canvas leftovers (parked notes leak content!),
WCAG contrast, sub-9pt fonts, image-only slides, empty slides, hidden slides (marked; they
never fail the deck), density.
Read it honestly: status is clean | review | failed. summary.font_size_coverage /
contrast_coverage state how much of the deck the checks could actually resolve — inherited
theme values it can't resolve are skipped, never guessed. Report findings to the user by
slide number with the remedy; don't paraphrase severities up or down.
Repair (deterministic, never your words)
# free exact quote first
curl -X POST https://api.slideforge.dev/v1/repair -H "Authorization: Bearer sf_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pptx_url": "https://…/deck.pptx", "dry_run": true}'
# then apply
curl -X POST https://api.slideforge.dev/v1/repair -H "Authorization: Bearer sf_live_YOUR_KEY" \
-H "Content-Type: application/json" -d '{"pptx_url": "https://…/deck.pptx"}'Actions (subset via actions[], default all): shrink_to_fit (measured, floor 9pt),
raise_min_font (only when it still fits), remove_off_canvas (fully-invisible junk only),
fix_contrast (WCAG AA, hue-preserving). No characters are ever altered — the response
carries a computed visible_text_untouched proof, a before/after report diff, and
flagged_not_fixed[] for anything ambiguous (with remedies). A run that fixes nothing bills
nothing; the repaired deck persists as a job — download it with your API key via GET /v1/jobs/{id}/pptx.
Workflow patterns
- Pre-send QA: inspect → show the user errors/warnings by slide → offer repair dry-run quote → apply on confirmation → return the repaired file + the before/after diff.
- Verify generated decks: after any tool (SlideForge or otherwise) produces a pptx, inspect it before delivering — it's free and takes ~1s per 30 slides.
- Hygiene sweep: off-canvas findings often reveal parked working notes (names, comments) that ship inside the file — flag these as a content-leak risk, not just a visual issue.
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
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.

