AverageCargo87

Self Reviewing Document Agent — Development skill for Claude Code

Development community

Claude tool-use agent that turns a one-line request into finished PPTX decks, PDFs and image sets, renders its own pages in headless Chromium, inspects the previews and fixes overflow and empty pages.

How to install Self Reviewing Document Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AverageCargo87/self-reviewing-document-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Self Reviewing Document Agent does

Claude tool-use agent that turns a one-line request into finished PPTX decks, PDFs and image sets, renders its own pages in headless Chromium, inspects the previews and fixes overflow and empty pages before delivery. 6 tools, 23 offline tests

Alternatives in Development

  • Portaljs Add Chart — Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal 2.3k ★
  • Open Claude In Chrome — Claude in Chrome, reverse-engineered and open-source 199 ★
  • Claude Desktop Fedora — Claude Desktop for Fedora 44 — native RPM built from Anthropic's official Linux x86_64 build 174 ★

README

Self-Reviewing Document Agent

**Type one sentence. Get a finished deck, document or image set, laid out by an agent that looks at its own rendered pages and fixes them before you ever see them.**

![Slides generated from a one-line request](docs/deck.jpg)

*Six slides from a generated deck on AI in credit scoring. Every image, chart, layout and word came from the agent.*

Chat models write great content, but non-technical people need finished files, not transcripts. Template generators push that content into "title + bullets" and the result looks generated at a glance. This studio removes the template ceiling: the agent designs every page in HTML/CSS, custom render engines turn the pages into PPTX and PDF, and the agent then **inspects pixel previews of its own output** plus a machine defect report, and fixes the layout before delivery.

What it is A web studio for one-off deliverables: decks, proposals, lesson books, logo sets. One-line request in, downloadable files out
Agent Raw Anthropic SDK tool-use loop (Claude Opus, configurable), up to 40 turns, 6 tools, 16k-token output budget
Stack Python, FastAPI, SSE, Anthropic SDK, OpenAI gpt-image-2, Playwright (headless Chromium), python-pptx, python-docx, PyMuPDF, Next.js 15, React 19, Tailwind 4
Tests 23 offline tests in ~7 s with no API keys (20 scenario + 3 render-engine); a real-API end-to-end gate passes 4/4 demo scenarios in one batch run
Size ~1,200 lines of Python backend, one 400-line Next.js page

How it works

flowchart LR
  U[One-line task] --> AG[Agent loop
Claude · ≤40 turns · 6 tools] AG --> IMG[generate_image
gpt-image-2] AG --> PY[run_python
HTML/CSS layout · matplotlib charts] PY --> R[slidegen / docgen
headless Chromium] R --> PV[Pixel previews
+ JSON defect report] PV -- "overflow · empty pages
≤2 fix passes" --> AG PV -- "defects: []" --> OUT[PPTX · PDF · DOCX · PNG · MD]