Communitygithub.com

frontend-slides

ゼロ依存でアニメーション豊かなHTMLプレゼンテーションを作成します。PowerPointからの変換や、新しいスライドの作成、既存のHTMLプレゼンテーションの改善に対応します。

frontend-slides とは?

このスキルは、完全にブラウザ内で動作する、依存関係のないアニメーションリッチなHTMLプレゼンテーションを作成します。PowerPointファイル(.ppt/.pptx)からスライドを抽出し、スタイル選定とビューポート最適化を自動化します。ユーザーがデザインの好みをまだ明確に持っていない場合でも、視覚的なプレビューを複数生成して探索的なスタイル選択を可能にします。プレゼンテーションはすべて単一のHTMLファイルにインラインCSS/JSで収められ、キーボード、タッチ、マウスホイールによるナビゲーションを備え、アクセシビリティにも配慮しています。このスキルは、講演デッキ、ピッチデッキ、ワークショップ資料、社内発表など、あらゆるプレゼンテーションシナリオで活用できます。

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

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

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

ドキュメント

Frontend Slides

ブラウザだけで動作する、依存関係のないアニメーションリッチなHTMLプレゼンテーションを作成します。

zarazhangrui 氏の作品で紹介された視覚的探索アプローチに着想を得ています(クレジット: @zarazhangrui)。

アクティベートするタイミング

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

絶対条件

  1. 依存関係ゼロ: デフォルトでは、インラインCSSとJSを含む1つの自己完結型HTMLファイルにする。
  2. ビューポートフィットは必須: すべてのスライドは内部スクロールなしで1つのビューポートに収まらなければならない。
  3. 説明ではなく表示: 抽象的なスタイルに関する質問票ではなく、視覚的なプレビューを使う。
  4. 個性的なデザイン: 無難な紫のグラデーション、Inter on white、テンプレートのようなデッキは避ける。
  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画像

アンチパターン

  • ビジュアルアイデンティティのない一般的なスタートアップグラデーション
  • 意図的にエディトリアルでない限り、システムフォントのデッキ
  • 長い箇条書きの壁
  • スクロールが必要なコードブロック
  • 短い画面で壊れる固定高さのコンテンツボックス
  • 無効な否定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.

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/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

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.

関連スキル