← ClaudeAtlas

ascii-preview-generatelisted

Use AI to create ASCII text-based preview of PDF page layout. Transforms visual and extracted data into structured ASCII representation for HTML generation.
aiskillstore/marketplace · ★ 329 · Data & Documents · score 79
Install: claude install-skill aiskillstore/marketplace
# ASCII Preview Generate Skill ## Purpose This skill uses **AI to create a meaningful ASCII text-based representation** of the PDF page layout. The AI: - Analyzes both the PDF page image and extracted text data - Creates a structured ASCII preview showing page organization - Represents heading hierarchy, paragraphs, lists, and tables visually - Provides clear structural context for downstream HTML generation The ASCII preview serves as a **structured representation of page layout**, enabling the downstream AI-HTML generator to understand both visual layout and content structure. ## What to Do 1. **Load input files** - Read `02_page_XX.png` (visual reference) - Read `01_rich_extraction.json` (text spans with metadata) - Verify all required fields present 2. **Invoke AI to analyze and represent** - Send PNG image to Claude (visual reference) - Include extracted text data (JSON) - Request ASCII layout representation - AI determines structure and relationships 3. **AI generates ASCII preview** - AI analyzes heading hierarchy from extraction data - AI identifies paragraphs and their relationships - AI represents lists with proper formatting - AI shows table layouts if present - AI creates visual representation using ASCII characters 4. **Validate ASCII output** - Verify output is readable text - Check that all content elements represented - Confirm structure is clear and logical 5. **Save to persistent file** - Save to: `out