Communitygithub.com

フロントエンドスライド

ゼロ依存でアニメーション豊かなHTMLプレゼンテーションを新規作成したり、PowerPointファイルを変換して作成します。プレゼンテーションの作成、PPT/PPTXのWeb変換、トークやピッチ用スライドの作成時に使用します。非デザイナーが抽象的な選択ではなく視覚的な探索を通じて美的感覚を発見できるよう支援します。

フロントエンドスライド とは?

このスキル「フロントエンドスライド」は、ブラウザ上で動作するゼロ依存・アニメーション豊かなHTMLプレゼンテーションを作成するためのものです。新規作成、PPT/PPTXからの変換、既存HTMLスライドの改善をサポートします。zarazhangrui氏の視覚探索アプローチに触発され、非デザイナーでも抽象的な選択ではなく具体的なビジュアルプレビューを通じて好みのスタイルを発見できるワークフローを提供します。対応プラットフォームはClaude Code、Cursor、Codexなど、AIエージェントが動作する環境全般です。ワークフローは「モード検出→コンテンツ収集→スタイル探索(3つのプレビュー生成)→プレゼンテーション構築→ビューポートフィット検証→納品」というステップで構成され、各スライドがビューポート内に収まることを徹底します。スタイルプリセットや密度制限は別ファイル`STYLE_PRESETS.md`に定義されており、スキル実行前に参照します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/frontend-slides

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

フロントエンドスライド は何をしますか?

ブラウザ上で動作する、ゼロ依存・アニメーション豊かなHTMLプレゼンテーションを作成します。

zarazhangrui氏の作品で示された視覚探索アプローチに触発されています(クレジット: @zarazhangrui)。

アクティベーションタイミング

  • トーク、ピッチ、ワークショップ、社内プレゼンテーション用のデッキを作成する場合
  • .ppt または .pptx スライドをHTMLプレゼンテーションに変換する場合
  • 既存のHTMLプレゼンテーションのレイアウト、モーション、タイポグラフィを改善する場合
  • 自分のデザインの好みがわからないユーザーとプレゼンテーションスタイルを探索する場合

絶対条件

  1. ゼロ依存: デフォルトでは、インラインCSSとJSを含む1つの自己完結型HTMLファイルとします。
  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. 納品

引き渡し時:

  • ユーザーが保持を希望しない限り、一時プレビューファイルを削除します
  • プラットフォームに適したオープナーを使用してデッキを開きます(便利な場合)
  • ファイルパス、使用したプリセット、スライド数、簡単なテーマカスタマイズポイントを要約します

現在のOSに適したオープナーを使用します。

  • 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つ

アンチパターン

  • 視覚的アイデンティティのない凡庸なスタートアップグラデーション
  • 意図的な編集スタイルでない限りのシステムフォントデッキ
  • 長い箇条書きの壁
  • スクロールが必要なコードブロック
  • 短い画面で壊れる固定高さのコンテンツボックス
  • -clamp(...) のような無効な否定CSS関数

関連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.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

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.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

関連スキル