Communitygithub.com

ComeOnOliver/skillshub

從頭開始或透過轉換 PowerPoint 檔案,建立令人驚嘆、動畫豐富的 HTML 簡報。當使用者想要建構簡報、將 PPT/PPTX 轉換為網頁,或為演講/提案建立投影片時使用。協助非設計師透過視覺探索而非抽象選擇來發掘他們的美感。

skillshub 是什麼?

此技能專注於建立零依賴、動畫豐富的 HTML 簡報,檔案完全在瀏覽器中執行。它支援三種模式:從無到有建立新簡報、將 PPT 或 PPTX 檔案轉換為 HTML,以及改善現有 HTML 簡報。技能的核心在於視覺探索流程——如果使用者不確定設計偏好,AI 會生成三種單頁預覽,讓使用者比較和混搭風格,而不是回答抽象的問卷。它強制執行嚴格的無滾動單一視埠規則,使用 clamp() 實現響應式縮放,並包含一個演示控制器類別,用於鍵盤、滑鼠滾輪和觸控導覽。跨平台相容性透過 Python 進行 PPT 轉換,支援 macOS、Linux 和 Windows。最終輸出是一個完全自包含的 HTML 檔案,具有內嵌 CSS 和 JS、語義可訪問性支援,以及針對 1920×1080、1280×720、768×1024、375×667 和 667×375 解析度的驗證,以確保在視埠適合性方面無懈可擊。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/affaan-m/everything-claude-code/frontend-slides

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

前端投影片

建立零依賴、動畫豐富的 HTML 簡報,完全在瀏覽器中執行。

靈感來自 zarazhangrui 作品中展示的視覺探索方法(致謝:@zarazhangrui)。

何時啟動

  • 建立演講簡報、提案簡報、工作坊簡報或內部簡報
  • 將 .ppt 或 .pptx 投影片轉換為 HTML 簡報
  • 改善現有 HTML 簡報的版面、動畫或排版
  • 與尚未明確設計偏好的使用者一起探索簡報風格

不可妥協的事項

  1. 零依賴:預設使用單一自包含的 HTML 檔案,內嵌 CSS 和 JS。
  2. 強制視埠適合:每張投影片必須完全契合在一個視埠內,且無內部捲動。
  3. 展示而非告知:使用視覺預覽,而非抽象的風格問卷。
  4. 獨特的設計:避免通用的紫色漸層、Inter 字體搭白色背景、模板風格的簡報。
  5. 生產品質:程式碼應有註解、可存取、具響應性且高效能。

生成前,請閱讀 STYLE_PRESETS.md 以了解視埠安全的 CSS 基礎、密度限制、預設目錄以及 CSS 注意事項。

工作流程

1. 偵測模式

選擇一種路徑:

  • 新簡報:使用者有主題、筆記或完整草稿
  • PPT 轉換:使用者有 .ppt 或 .pptx 檔案
  • 強化:使用者已有 HTML 投影片,希望改善

2. 探索內容

僅詢問最低限度的資訊:

  • 目的:提案、教學、會議演講、內部更新
  • 長度:短(5-10 頁)、中(10-20 頁)、長(20 頁以上)
  • 內容狀態:完成的文稿、粗略的筆記、僅有主題

如果使用者有內容,請要求他們在設定樣式之前貼上內容。

3. 探索風格

預設採用視覺探索。

如果使用者已經知道想要的預設風格,則跳過預覽並直接使用。

否則:

  1. 詢問簡報應營造何種感覺:印象深刻、充滿活力、專注、啟發靈感。
  2. 在 .ecc-design/slide-previews/ 中生成 3 個單頁預覽檔案。
  3. 每個預覽必須是自包含的,清楚顯示字體/顏色/動畫,且投影片內容維持在大約 100 行以下。
  4. 詢問使用者要保留哪個預覽,或希望混搭哪些元素。

將情緒對應到風格時,請使用 STYLE_PRESETS.md 中的預設指南。

4. 建構簡報

輸出以下其中之一:

  • presentation.html
  • [presentation-name].html

僅當簡報中包含提取或使用者提供的圖片時,才使用 assets/ 資料夾。

必要的結構:

  • 語義化的投影片區段
  • 來自 STYLE_PRESETS.md 的視埠安全 CSS 基礎
  • 用於主題值的 CSS 自訂屬性
  • 用於鍵盤、滑鼠滾輪和觸控導覽的簡報控制器類別
  • 用於揭示動畫的 Intersection Observer
  • 支援減少動畫

5. 強制視埠適合

將此視為硬性門檻。

規則:

  • 每個 .slide 必須使用 height: 100vh; height: 100dvh; overflow: hidden;
  • 所有字體和間距必須使用 clamp() 進行縮放
  • 當內容無法容納時,將其拆分為多張投影片
  • 永遠不要為了讓內容塞入而將文字縮小到難以閱讀的大小
  • 永遠不允許投影片內出現捲軸

使用 STYLE_PRESETS.md 中的密度限制和強制 CSS 區塊。

6. 驗證

在以下尺寸檢查完成的簡報:

  • 1920x1080
  • 1280x720
  • 768x1024
  • 375x667
  • 667x375

如果可以自動化瀏覽器,請使用它來驗證沒有投影片溢出,且鍵盤導覽正常運作。

7. 交付

交接時:

  • 刪除暫存預覽檔案,除非使用者想保留它們
  • 在適當時使用平台適用的開啟器開啟簡報
  • 總結檔案路徑、使用的預設風格、投影片數量以及簡單的主題自訂點

為目前的作業系統使用正確的開啟器:

  • macOS:open file.html
  • Linux:xdg-open file.html
  • Windows:start "" file.html

PPT / PPTX 轉換

對於 PowerPoint 轉換:

  1. 優先使用 python3 搭配 python-pptx 來提取文字、圖片和備註。
  2. 如果 python-pptx 不可用,詢問使用者是否要安裝它,或回退到手動/匯出式工作流程。
  3. 保留投影片順序、演講者備註及提取的資源。
  4. 提取後,執行與新簡報相同的樣式選擇工作流程。

保持轉換的跨平台相容性。當 Python 可以完成工作時,不要依賴僅限 macOS 的工具。

實作需求

HTML / CSS

  • 使用內嵌 CSS 和 JS,除非使用者明確要求多檔案專案。
  • 字體可能來自 Google Fonts 或 Fontshare。
  • 偏好氛圍濃厚的背景、強烈的字體層級結構,以及清晰的視覺方向。
  • 使用抽象形狀、漸層、網格、雜訊和幾何圖形,而非插圖。

JavaScript

包含:

  • 鍵盤導覽
  • 觸控/滑動導覽
  • 滑鼠滾輪導覽
  • 進度指示器或投影片索引
  • 進入時觸發的揭示動畫

無障礙功能

  • 使用語義化結構(main、section、nav)
  • 保持對比度可讀
  • 支援僅鍵盤導覽
  • 尊重 prefers-reduced-motion

內容密度限制

除非使用者明確要求更密集的投影片且可讀性仍然成立,否則使用以下最大值:

投影片類型限制
標題1 個標題 + 1 個副標題 + 可選的標語
內容1 個標題 + 4-6 個項目符號或 2 個短段落
功能網格最多 6 張卡片
程式碼最多 8-10 行
引言1 句引言 + 出處
圖片1 張受視埠約束的圖片

反模式

  • 沒有視覺識別特色的通用初創公司漸層
  • 除非是有意為之的編輯風格,否則使用系統字體
  • 長串的項目符號牆
  • 需要捲動的程式碼區塊
  • 在短螢幕上會斷裂的固定高度內容框
  • 無效的否定 CSS 函數,例如 -clamp(...)

相關的 ECC 技能

  • frontend-patterns:用於簡報周圍的元件和互動模式
  • liquid-glass-design:當簡報有意借用 Apple 的玻璃美學時
  • e2e-testing:若你需要自動化瀏覽器驗證最終簡報

交付檢查清單

  • 簡報可以從本地檔案在瀏覽器中執行
  • 每張投影片都契合在視埠內,無需捲動
  • 風格獨特且有意圖
  • 動畫有意義且不雜亂
  • 尊重減少動畫設定
  • 在交付時說明檔案路徑和自訂點

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Next.js 16+ uses App Router with Server Components by default. Client Components are only used when interactivity is needed (hooks, event handlers, browser APIs).

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能