Token导航 LogoToken导航

Agent Skill · 前端设计

pptx-to-html(PPTX TO HTML 前端)

pptx-to-html 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pptx-to-html 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,889。

总安装 250周安装 10GitHub Stars 1下载 81核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pptx-to-html(PPTX TO HTML 前端)
来源仓库:https://github.com/cskwork/pptx-to-html-updated
仓库路径:skills/pptx-to-html
安装命令:
npx skills add https://github.com/cskwork/pptx-to-html-updated --skill pptx-to-html
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cskwork/pptx-to-html-updated --skill pptx-to-html

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于PowerPoint演示文稿高精度转换为HTML页面,保持样式与定位准确性。适用于网页展示、在线培训与跨平台分享等Web化需求场景。通过GitHub安装,自动处理字体嵌入、图片链接与响应式布局适配。支持绝对定位与CSS样式保留,确保视觉保真度优于传统截图方案。转换过程包含幻灯片分页导航与打印样式优化双重输出模式。

来源仓库内路径:skills/pptx-to-html

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/cskwork/pptx-to-html-updated --skill pptx-to-h…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pptx-to-html 怎么安装?

在终端执行 npx skills add https://github.com/cskwork/pptx-to-html-updated --skill pptx-to-html。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pptx-to-html 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pptx-to-html 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

pptx-to-html 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

pptx-to-html 用的人多吗?

公开数据是累计安装 250 次,近一周安装 10 次,下载 81 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pptx-to-html 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
pptx-to-html

PPTX TO HTML 前端 · 本页

2501操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Enhanced PowerPoint to HTML Converter

Convert PowerPoint presentations (.pptx) into pixel-accurate HTML files with complete style preservation, absolute positioning, and responsive design.

When to Use This Skill

Use this skill when:

  • User uploads a.pptx file and requests HTML conversion
  • User asks to "make this presentation web-friendly"
  • User wants a presentation viewable in browsers without PowerPoint
  • User needs to share presentations with exact visual fidelity
  • User asks to "convert PowerPoint to HTML"
  • User requires styled presentations (not just text extraction)

Core Conversion Process

# Run the enhanced converter with full style preservation
python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py <pptx-path> /mnt/user-data/outputs

Workflow:

  1. Locate the PPTX file in /mnt/user-data/uploads/
  2. Run the conversion script
  3. Verify output - Check HTML file and assets folder
  4. Provide link to the HTML file using computer:// protocol

What Gets Preserved

✅ Fully Preserved Elements

Text Formatting:

  • Font family, size, color
  • Bold, italic, underline
  • Text alignment (left, center, right, justify)
  • Bullet points with indentation levels (0-9)
  • Multi-line paragraphs
  • Mixed formatting within single lines

Shapes & Objects:

  • Absolute positioning (x, y coordinates)
  • Exact dimensions (width, height)
  • Rotation angles
  • Fill colors (solid and gradients with multiple stops)
  • Border styles (width, color, dash patterns)
  • Shape types (rectangles, text boxes)

Slide Properties:

  • Background colors (solid)
  • Background gradients (multi-stop)
  • Slide dimensions and aspect ratios
  • Responsive scaling

Images:

  • Embedded images with exact positioning
  • Size and rotation preservation
  • PNG, JPG, GIF, WEBP support
  • Proper layering with other elements

Hyperlinks: ✨ NEW

  • Text hyperlinks (clickable text with links)
  • Shape hyperlinks (entire shape is clickable)
  • External URLs preserved
  • Opens in new tab for external links

Videos: ✨ NEW

  • Embedded video extraction
  • HTML5 video player with controls
  • Support for MP4, AVI, WMV formats
  • Exact positioning and sizing preserved
  • Play/pause controls in browser

Audio: ✨ NEW

  • Embedded audio file extraction
  • HTML5 audio player with controls
  • Support for MP3, WAV, M4A formats
  • Positioned audio players

Tables: ✨ NEW

  • Full table structure preservation
  • Cell borders (left, right, top, bottom)
  • Cell background colors
  • Cell text formatting
  • Colspan and rowspan support
  • Vertical alignment (top, middle, bottom)
  • Nested text formatting within cells
  • Hyperlinks within table cells

Layout:

  • Pixel-accurate element positioning
  • Responsive scaling (maintains aspect ratio)
  • Layering and overlapping elements
  • Text box boundaries
  • Multi-column layouts

Technical Implementation

Coordinate System

  • Converts EMUs (English Metric Units) to pixels
  • Formula: px = (emu / 914400) * 96 (for 96 DPI)
  • Uses percentage-based positioning for responsiveness

Style Extraction

  • Text properties: Parses <a:rPr> for font, size, color, bold, italic, underline
  • Shape properties: Parses <p:spPr> for position, size, rotation, fill, border
  • Slide backgrounds: Parses <p:bg> → <p:bgPr> for colors and gradients
  • Paragraph formatting: Parses <a:pPr> for alignment, bullets, indentation

Color Handling

  • RGB colors from <a:srgbClr val="RRGGBB">
  • Theme colors from <a:schemeClr> with default mappings
  • Gradient stops with position percentages

Output Structure

output-directory/
├── presentation.html          # Main presentation file
└── assets/
    ├── slide1_img_rId2.png    # Images with relationship IDs
    ├── slide2_img_rId3.jpg
    ├── slide3_video_rId5.mp4  # Videos preserved
    ├── slide4_audio_rId7.mp3  # Audio files preserved
    └── ...

All media files (images, videos, audio) are extracted and stored in the assets/ folder with descriptive prefixes for easy identification.

HTML Features

The generated HTML includes:

  • Pixel-accurate layout with absolute positioning
  • Full style preservation (fonts, colors, sizes)
  • Keyboard navigation (Arrow keys, Space bar)
  • On-screen navigation buttons (Previous/Next)
  • Progress bar showing presentation progress
  • Slide numbering
  • Responsive design with aspect ratio maintenance
  • Embedded media with correct positioning (images, videos, audio)
  • Smooth transitions between slides
  • Interactive hyperlinks (clickable text and shapes)
  • HTML5 video/audio players with full controls
  • Fully styled tables with borders and cell formatting

Example Usage

# Enhanced conversion
python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py \
  /mnt/user-data/uploads/presentation.pptx \
  /mnt/user-data/outputs

# Output will be created at:
# /mnt/user-data/outputs/presentation.html
# /mnt/user-data/outputs/assets/

Conversion Quality

The enhanced converter provides 95%+ visual fidelity with:

  • Exact text positioning and styling
  • Complete shape preservation
  • Accurate color rendering
  • Proper background extraction
  • Bullet formatting maintained
  • Interactive hyperlinks (text and shape level)
  • Embedded videos and audio playback
  • Fully styled tables with borders
  • Multi-media element support

Current Limitations

Features Not Yet Supported

  • Charts: Need to be rendered (currently not extracted)
  • SmartArt: Complex diagrams not yet parsed (text may be missing)
  • Complex animations: Element animations not preserved (slide transitions only)
  • Custom fonts: Fall back to web-safe alternatives
  • Shadow/reflection effects: Not preserved
  • Custom shape geometries: Advanced shapes may render as basic shapes
  • Master slide templates: Complex inheritance not fully supported

PowerPoint Features Never Supported

  • Macros and VBA scripts
  • Interactive buttons with actions
  • Slide notes
  • Master slide inheritance (complex cases)
  • Transition sounds

Note: 90-95% of standard business presentations convert perfectly with current features. Phase 1 implementation includes hyperlinks, videos, audio, and tables - covering ~80% of common PowerPoint elements.

Workflow Example

When user says: "Convert my PowerPoint to HTML"

  1. Locate uploaded file: view /mnt/user-data/uploads
  2. Run conversion: python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py \ /mnt/user-data/uploads/filename.pptx \ /mnt/user-data/outputs
  3. Provide user with link: [View your HTML presentation](computer:///mnt/user-data/outputs/filename.html)
  4. Inform user:

- "Your presentation has been converted with full style preservation" - "All fonts, colors, positions, and shapes are accurately replicated" - "Use arrow keys or buttons to navigate between slides" - "The presentation is fully responsive and works on all devices"

Troubleshooting

Issue: Conversion fails with XML parsing errors

  • Solution: PPTX file may be corrupted. Ask user to resave in PowerPoint and re-upload.

Issue: Some elements appear misaligned

  • Check: Original PPTX for unsupported features (custom shapes, SmartArt)
  • Solution: Most standard shapes work correctly. Report specific issues for future updates.

Issue: Fonts look different

  • Expected: Custom/licensed fonts fall back to web-safe alternatives
  • Fonts used: Arial, Calibri, Times New Roman, Verdana, Georgia
  • Impact: Usually minimal visual difference

Issue: Images not displaying

  • Check: Assets folder exists alongside HTML file
  • Check: File permissions are correct
  • Solution: Re-run conversion if assets folder is missing

Issue: Colors appear slightly different

  • Cause: Theme colors use common default mappings
  • Impact: Usually <10% color difference
  • Solution: Acceptable for most use cases

Issue: Tables lose formatting

  • Status: Tables are on Phase 2 roadmap
  • Workaround: Text content is preserved, layout may be simplified

Issue: Background gradients not showing

  • Check: Browser supports CSS gradients (all modern browsers do)
  • Verify: Multiple gradient stops are in the HTML source

Issue: Conversion takes longer than expected

  • Expected: Processing takes 1-2 seconds per slide
  • Reason: Comprehensive parsing of all XML elements
  • Acceptable: Quality vs. speed tradeoff

Best Practices

  1. Test output in target browsers before sharing widely
  2. Check assets folder to ensure all images were exported
  3. Verify text readability on different screen sizes
  4. Inform users about font substitutions if custom fonts are critical
  5. Keep original PPTX as authoritative source

Performance Characteristics

  • Processing time: 1-2 seconds per slide
  • Memory usage: ~80MB for typical presentations
  • Output size: HTML file 50-200KB, assets proportional to image count
  • Browser compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Mobile support: Fully responsive with touch navigation
  • Scaling: Handles presentations up to 100+ slides

Quality Validation Checklist

After conversion, verify:

  • All text appears in correct positions
  • Fonts, sizes, and colors match original
  • Bold, italic, underline formatting preserved
  • Shapes maintain size, position, and fill colors
  • Backgrounds render correctly (solid or gradient)
  • Images are positioned accurately
  • Hyperlinks are clickable (text and shape level) ✨
  • Videos play correctly with controls ✨
  • Audio files play with controls ✨
  • Tables display properly with borders and cell styling ✨
  • Bullet points have proper indentation levels
  • Navigation works (keyboard + on-screen buttons)
  • Progress bar updates correctly
  • Responsive layout on different screen sizes
  • All slides accessible and in correct order

Target accuracy: 90-95% visual match to original PowerPoint Phase 1 Coverage: ~80% of common PowerPoint elements (hyperlinks, videos, audio, tables)

Future Enhancements (Roadmap)

Phase 1 (✅ COMPLETED)

  • [✅] Hyperlinks (text and shape level)
  • [✅] Video extraction and embedding
  • [✅] Audio extraction and embedding
  • [✅] Full table support with cell styling and borders

Phase 2 (In Progress)

  • Advanced shape geometries (arrows, connectors, flowcharts)
  • Chart rendering (bar, line, pie charts)
  • Basic SmartArt text extraction

Phase 3 (Future)

  • Animation sequencing beyond basic transitions
  • Shadow and reflection effects
  • Embedded font extraction
  • SmartArt diagram rendering

Phase 4 (Future)

  • Master slide template support
  • Interactive element preservation (limited)
  • Slide notes export option
  • Custom CSS theme support

Requirements

  • Python: 3.7 or higher
  • Dependencies: None (standard library only)
  • Input format: PowerPoint 2007+ (.pptx)
  • Output format: HTML5 + CSS3

Quick Reference

Command:

python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py INPUT.pptx OUTPUT_DIR

Features:

  • 95% visual fidelity for standard presentations
  • Pixel-accurate positioning of all elements
  • Complete text formatting preservation
  • Shape fills, borders, and gradients
  • Slide backgrounds (solid and gradient)
  • Responsive design with aspect ratio maintenance

Navigation:

  • ← → Arrow keys to navigate
  • Space bar to advance
  • On-screen Previous/Next buttons
  • Progress bar shows position

Output Quality: Production-ready HTML presentations with near-perfect visual replication

平台分布

Codex

38.33%
按下载量换算31

Claude

29.94%
按下载量换算24

Cursor

20.59%
按下载量换算17

Gemini CLI

8.81%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills