当前位置: 首页 > Skill >

ppt-turn-web-generator

ppt-turn-web-generator

0.1.1 2026.11.26 浏览:993
获取Skill文件查看使用说明
作者:叶川许可证:
本文目录展开

Tutorial Website Builder

Overview

Use this skill for two related workflows:

  1. Extract a reusable UI style prompt from a user-provided reference image.
  2. Generate a single-file paged HTML tutorial using a selected UI style prompt.

The expected HTML output is an immediately usable tutorial page, not a marketing landing page. The first screen must enter the tutorial content directly.

Workflow A: Extract Style From Image

When the user provides a reference image and asks to create, extract, save, or package a style:

  1. Read references/style-extraction-schema.md.
  2. Analyze only the visual language of the image: layout, typography, color, components, spacing, media treatment, illustration logic, interaction mood, and responsive implications.
  3. Fill the schema fields with concrete reusable defaults. Do not merely describe the image; convert what you see into a style system another agent can apply to a webpage.
  4. Name the style by its visual language, using lowercase hyphen-case English for the file name.
  5. Save the reusable prompt as references/styles/<style-name>.md.
  6. If the image contains protected logos, characters, private UI, or copyrighted artwork, extract the general visual system only. Do not instruct future pages to copy exact proprietary elements.
  7. Report the created style file path and the human-readable style name.

Do not generate the tutorial HTML in this workflow unless the user also asks for it.

Workflow B: Generate Tutorial HTML

When the user asks to generate or modify a tutorial HTML:

  1. Identify available style prompts:
    • references/default-ui-system.md
    • every *.md file in references/styles/
  2. If the user has not specified a style, ask which style prompt to use. Keep the question concise and include the default option.
  3. Read the selected style prompt before designing the HTML.
  4. Also read references/production-guide.md.
  5. Always apply the three bottom-level logic rules below, even if the selected style prompt does not mention them.
  6. Generate or edit the HTML according to the selected style, tutorial content, and media available in the project.

Default media folders remain:

tutorial.html
images/
  image_01.png
  image_02.png
videos/
  video_01.mp4

The user may confirm or adjust actual image/video placement later in the conversation. Do not require that confirmation before producing a scaffold when the user asks for one.

Required Bottom-Level Logic

These rules override individual style prompts and component convenience.

1. No Card-Inside-Card Composition

Never build the page by stacking many cards inside other cards. Use one primary page/container surface, then create hierarchy with grid, typography, borders, divider lines, labels, media frames, verification blocks, and whitespace.

Avoid repeated nested rounded rectangles such as card > card > panel > media card.

2. Meaningful Graphics Only

Do not add graphics by default. Any illustration, icon, shape, branch, leaf, animal, smoke, stream, hill, background mark, or decorative object must have a clear purpose:

  • Aesthetic framing.
  • Topic symbolism.
  • Section rhythm.
  • Directional guidance.
  • State feedback.
  • Media annotation.
  • Brand mood reinforcement.

If the graphic cannot be explained, omit it. If graphics make the page busy or weaken the focal point, remove them.

3. Tutorial Readability First

Layout styles can be diverse, but the page is a tutorial first. Every page must make these items easy to find:

  • Current step.
  • Current action.
  • Why the step matters.
  • Media that verifies the action.
  • Observable success condition.

Do not use visual variation that makes reading order ambiguous, separates media from its explanation, hides verification standards, creates long scanning paths, or turns the tutorial into a decorative poster.

User Configuration

Before generating the final HTML, ask whether any selected style defaults should be changed. Keep the question concise:

默认使用所选风格提示词。是否需要修改主色、字体、圆角、间距、导航、媒体样式、插图风格或动效?如果不需要,我将按默认值生成。

If the user does not specify changes, proceed with the selected style defaults. Do not repeatedly ask configuration questions.

When the user provides overrides, update only the relevant tokens or component rules while preserving the rest of the selected style.

Tutorial Content Rules

  1. Inventory the user-provided material:
    • Steps or rough workflow text.
    • Screenshots in images/, preferably named image_01.png, image_02.png, etc.
    • Videos in videos/, preferably named video_01.mp4, video_02.mp4, etc.
    • Official sites, source articles, tool pages, documentation links, or other external references.
  2. Split the tutorial by the real execution order. Each page must cover one action or one tightly related group of actions.
  3. For each page, write only the current step:
    • What the user is trying to accomplish.
    • What to do now.
    • What visible result means the step is complete.
  4. Attach media after the explanation so the image or video verifies the operation, rather than replacing the instructions.
  5. Number all figures globally by appearance order: 图 1, 图 2, 图 3. Do not reset numbering per step.
  6. Embed links directly in the body text with target="_blank" and rel="noopener noreferrer".

Output Requirements

  • Create a single HTML file unless the user explicitly asks for a framework project.
  • Use assets/newspaper-tutorial-template.html as a structural starting point when useful, but restyle it according to the selected style prompt.
  • Keep all style choices in CSS custom properties or equivalent design tokens.
  • Keep exactly one navigation area near the top: current page indicator plus previous/next buttons.
  • Use data-step sections and a single totalSteps value in JavaScript.
  • Derive Chinese page numerals from the step count.
  • Support clickable image enlargement. Videos should remain playable inline.
  • Make mobile layout single-column with large enough navigation buttons.

Quality Gate

Before delivery, check:

  • The selected style prompt is applied consistently.
  • The three bottom-level logic rules are applied.
  • Previous/next buttons correctly disable on first and last pages.
  • Only one navigation area exists.
  • Current page indicator and total page count match the number of step sections.
  • Figure numbers increase globally in display order.
  • Every src path points to the correct images/ or videos/ directory.
  • Every image has useful alt text and every media item has a concise caption.
  • Links open in a new tab and use rel="noopener noreferrer".
  • The page works when opened as a local HTML file.
  • Mobile width does not create horizontal scrolling, clipped buttons, or text overlap.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,033
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,012
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,012
Skill 文件
  • SKILL.md
    • Tutorial Website Builder
    • Overview
    • Workflow A: Extract Style From Image
    • Workflow B: Generate Tutorial HTML
    • Required Bottom-Level Logic
      • 1. No Card-Inside-Card Composition
      • 2. Meaningful Graphics Only
      • 3. Tutorial Readability First
    • User Configuration
    • Tutorial Content Rules
    • Output Requirements
    • Quality Gate
  • 项目或源文件

相关 Skill

更多
Ppt Ocr Ppt Ocr OCR for PowerPoint (.ppt, .pptx) presentations with scanned or image-embedded slides. Uses MinerU to extract text from image-based presentation content. Feat...
PPT 智能生成器 PPT 智能生成器 当用户要把文章、提纲、数据、图片或一个主题做成 PPT、演示文稿、汇报、培训课件、知识讲解或产品发布会时使用。首次运行会从 CNB 下载经过 SHA-256 校验的固定引擎,之后全部在本地生成可编辑 HTML,并可导出 PPTX 与 PDF。
ppt-generate ppt-generate The intelligent PPT generation tool is provided by Baidu. It is a tool that intelligently generates PPTS based on the themes or questions given by users. Users can choose PPT themes, templates, or even customize their own templates. It also provides image or resource files (such as pdf,word,txt, etc.). The download address for the final generated PPT file is provided
PPT 中文工具专业版 PPT 中文工具专业版 <h2>PPT 中文工具专业版</h2>
CN PPT Outline Writer PPT大纲生成器 CN PPT Outline Writer PPT大纲生成器 PPT大纲生成器,专为职场汇报、商业提案、演讲PPT提供结构设计与内容生成。触发场景:用户提到"做PPT"、"PPT大纲"、"汇报"、"提案"、"演讲稿"、"幻灯片"、"商业计划书"、"述职报告"、"工作汇报"、"年终总结"、"产品发布"、"PPT结构"、"PPT框架"、"PPT内容"、"写PPT"、"帮我做PP...