PPT Page Recognition to JSON Converter
Paste the following prompt into your AI chat to install this skill:
Please refer to https://skillhub.cn/install/skillhub.md to install @user_65333ed1/ppt-page-recognition.
About this skill
Problem Background
PPT files are widely used for presentations and documentation, but their content is stored in an unstructured format, making programmatic analysis, data extraction, or integration with other systems difficult. Manual conversion to structured formats like JSON is time-consuming and error-prone, especially with multi-page presentations, complex layouts, or image-heavy pages, where hierarchy, semantics, and connections can be lost.
Core Workflow
This skill automates the recognition of PPT page structures and content to generate structured JSON files that faithfully restore original semantics. Key steps include:
-
Pre-identification Check: Before running, it checks for a PDF file with the same name in the target
.pptxdirectory. If missing, it prompts the user to either provide the PDF or continue with PPT only. It also verifies if the current model supports vision capabilities; if not, it reminds the user to switch models to avoid silently skipping critical steps. -
Native Structure Recognition: Executes
scripts/recognize_ppt_deck.py --vision-mode offto prioritize extracting the native OOXML structure from the PPT, generating an initial JSON. This step focuses on text, hierarchy, and layout, outputting fields like page types (timeline,logo-wall, etc.). -
Vision Enhancement: If
vision_tasksare produced (e.g.,slide_visual_recoveryfor low-text pages) and the model supports vision, it automatically uses screenshots exported from the PDF (stored inoutput/screenshots/) for supplementation. Visual tasks focus on recovering text, metrics, and connections in image-heavy areas. -
Merge and Cleanup: Combines vision task results into the initial JSON via
scripts/apply_vision_tasks.pyto produce the finalmerged JSON. After success, runsscripts/cleanup_intermediate_outputs.pyto delete intermediate files like task result JSON and audit reports, ensuring only one delivery result remains in the workspace.
The skill supports various page families such as people-matrix, metrics, peer-panels, and uses missing_risk fields to honestly flag areas that cannot be reliably recovered.
Caveats
-
Applicability Boundaries: The skill works best with editable
.pptxfiles where text is retained in the OOXML structure. If the PPT consists mainly of screenshots, flat diagrams, or scanned pages, text coverage may decrease, andconnectorinference relies more on visual judgment, but multimodal supplementation is still required. -
Hard Rules: Must prioritize native structure over OCR; defaults to visual enhancement for image-heavy pages without additional user confirmation; cannot silently skip PDF or model checks; final output is a single JSON, with intermediate artifacts like
vision_task_results.jsoncleaned up. -
Avoided Pitfalls: Does not flatten structures (e.g., timelines or logo walls) into plain lists; retains small labels, footers, or side columns with semantic value; explicitly preserves conflicting data sets instead of selecting one version. These rules ensure the completeness and accuracy of the converted data.
Use Cases
- When needing to automatically extract chart data from quarterly report PPTs into BI tools for visual analysis, use the skill to recognize page structure and generate JSON.
- During migration of enterprise legacy PPTs to a new knowledge base system, use the skill to restore hierarchy and layout semantics for each page to ensure complete, searchable content.
- Processing marketing PPTs with complex layouts like timelines or logo walls, use the skill to extract and structure parallel groupings and metrics data.
- Building multimodal datasets for AI training by converting PPT files to JSON format, preserving page types and connections for model learning.
Best For
- Data analysts who need to automatically import data from PPTs into analysis platforms for trend forecasting.
- Operations specialists responsible for batch-processing company product PPTs and extracting structured information to update content management systems.
- Algorithm engineers developing document-understanding AI applications who need to convert PPT content into parseable JSON.
- Project managers tasked with integrating project timelines from departmental PPTs into ERP systems in a unified format.
Related Skills
Batch-import team weekly reports, aggregate progress, plans, issues, and support by project, flag delivery or resource risks, and generate structured department reports.
Generates Kingdee Cloud ERP startup, implementation, and acceptance documents from Word templates with delivery guidance.
Read PDF, Word, Excel, PowerPoint, HTML, and text documents, list archive files, and extract text or JSON for AI analysis.
Extract decisions and action items from meeting notes, emails, or chat logs, then track owners, deadlines, and follow-ups with lightweight reminders and no direct tool integrations.