ai-html-generate
Convert PDF Pages to Semantic HTML
Manually converting PDF pages to semantic HTML is time-consuming and error-prone. This skill uses AI to automatically generate semantic HTML5 from PDF pages with three sources of context for high accuracy.
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「ai-html-generate」。 Convert Chapter 2, Page 16 to semantic HTML
預期結果:
- Generates 04_page_16.html with semantic HTML5 structure
- Includes page-container wrapper and page-content main element
- Applies chapter-header with chapter-number and chapter-title
- Creates section-navigation with nav-item elements
- Uses proper heading hierarchy (h1 → h2 → h3 → h4)
- Wraps bullet lists in ul.bullet-list with li.bullet-item
- Logs generation metadata to 05_generation_metadata.json
安全審計
安全This skill consists solely of documentation describing how to use AI for PDF-to-HTML conversion. SKILL.md is a markdown file containing prompts and instructions - not executable code. All 59 static findings are false positives: backticks are markdown code formatting, file paths are documentation examples, and there is no actual cryptographic code, shell execution, or file operations in this skill. The skill contains no network operations, no credential access, and no command execution capabilities.
風險因素
🌐 網路存取 (1)
📁 檔案系統存取 (5)
⚙️ 外部命令 (30)
品質評分
你能建構什麼
Document Accessibility
Convert textbook chapters to accessible HTML for screen readers and web display with proper semantic markup.
PDF Content Migration
Migrate PDF documentation to web-ready HTML with consistent class names and structured formatting.
Digital Publishing
Transform printed materials into digital formats with proper heading hierarchies and semantic elements.
試試這些提示
Convert the attached PDF page to semantic HTML5. Use the PNG image for layout, the JSON data for text accuracy, and the ASCII preview for structure.
Generate HTML that includes every word from the source JSON. Do not add any bridging text or transitional phrases between pages.
Create semantic HTML with proper heading hierarchy (h1 to h4), list structures, and CSS classes. Use classes like page-container, section-heading, paragraph, and bullet-list.
Analyze the PNG image for visual layout, use the JSON for exact text content, and follow the ASCII preview for element relationships. Generate HTML5 that accurately recreates the page.
最佳實務
- Run the verification script after each page generation to catch AI hallucination early
- Use all three input sources (PNG, JSON, ASCII) for complete context
- Check coverage percentage is between 99-100% before proceeding to the next page
- Do not consolidate chapters until all individual pages pass the verification gate
避免
- Skipping the text verification step and proceeding to consolidation
- Accepting coverage above 100% which indicates the AI added invented content
- Consolidating pages with any coverage below 95%
- Allowing the AI to add bridging text between page boundaries
常見問題
Which AI models support this skill?
What happens if text coverage is below 95%?
Can this skill process scanned PDFs without text layers?
Is my document data sent to external servers?
Why does the verification sometimes show over 100% coverage?
How is this skill different from other PDF converters?
開發者詳情
作者
AbeJitsu授權
MIT
儲存庫
https://github.com/AbeJitsu/Game-Settings-Panel/tree/main/.claude/skills/calypso/ai-html-generate引用
main
檔案結構
📄 SKILL.md