本文へ移動
cccskills
無料GitHub で公開日本語紹介

generative_ui

図解やデータ可視化、操作できる教材などをHTMLで作り、チャット内のウィジェットや単独で開く画面として見せるためのスキルです。

原文原文の説明を見る

How to render rich interactive HTML widgets inline in the chat or as standalone artifacts. Use this skill when you want to show the user diagrams, data visualizations, interactive controls, educational walkthroughs, or any rich visual content beyond plain text and markdown.

asgeirtj/system_prompts_leaksスター 70,416(GitHub 70,416 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 説明に添える図解を作りたいとき
  • データを操作できる形で見たいとき
  • 短い教材をチャット内に表示したいとき
  • ダッシュボードや試作品を作りたいとき

日本語での紹介

できること

チャット内に埋め込むウィジェットや、サイドペインで開くHTML画面を作り、文章だけでは伝えにくい情報を視覚的に示します。図解、データ可視化、操作できるコントロール、学習用の手順表示などに使えます。HTMLファイルは自己完結型で作成し、必要に応じてチャット内への埋め込みも行います。小さくまとまる内容はチャット内に、大きなダッシュボードやシミュレーション、アプリの試作などは単独の画面にする使い分けが示されています。テーマ変数を使って、表示先の配色に合わせたデザインにもできます。

こんなときに便利

図や操作を交えて説明したいとき、数値や関係性を視覚的に確かめたいときに向いています。短い説明に添える小さな教材から、画面を広く使う可視化や試作品まで、内容に合う形で提示できます。

使い方の例

  • 「この説明に添える図解を作って」
  • 「データを操作できるグラフにして」
  • 「チャット内で見られる短い学習ウィジェットを作って」

注意点

HTMLの作成には write_to_file を使います。外部CDNはコンテンツセキュリティポリシー(CSP)で制限され、Tailwind CSSは指定された gstatic のスクリプトのみ利用できます。チャット内の埋め込み表示は高さ500pxの範囲で、画面全体に依存する高さ指定は避ける必要があります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

資料チェック

SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。

安全面送信・削除・コマンド実行などの扱いが明示されているか
B一部不足HTMLファイル作成と外部スクリプト利用があり、CSPの許可範囲が指定されています。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
B一部不足`write_to_file`と成果物表示環境が前提ですが、導入手順はありません。

点数には入れていません。 2026年10月30日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。

評価が違うと思ったら、見直しを依頼する

どの項目が、なぜ違うと思うかを書いてください。ログインは不要です。内容を SKILL.md と照らし合わせて評価を作り直し、この欄に反映します。

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

含まれるファイル(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Generative UI

You can render custom, rich, interactive user interfaces (inline widgets or larger artifacts) directly in the chat. This is a great way to communicate complex information to the user, generate rich visualizations, and even create small interactive experiences for the user.

Workflow

  1. Create the HTML Artifact: Use write_to_file to save a self-contained .html file (using Tailwind CSS and inline JavaScript) to the artifact directory. Set UserFacing: true in ArtifactMetadata.

  2. Embed Inline (optional): Include the <agent-embed> tag in your chat response, if you decide this html artifact should be rendered inline in the
    conversation:

    <agent-embed src="file:///<artifact_path>/widget.html"></agent-embed>
    

Constraints & Theming

  • External Assets & Tailwind CSS: All external CDNs are blocked by CSP, except for one allowlisted gstatic Tailwind dependency that you CAN and SHOULD use to style your artifacts. Include the following script tag in your <head> to enable Tailwind:

    <script src="https://www.gstatic.com/antigravity/web/dev/tailwindcss.min.js"></script>
    
  • Use Provided Theme Variables: The iframe injects the app's semantic design-system tokens, so widgets automatically match the host theme and the user's custom colors. Surfaces (--background, --content, --card, --sidebar), borders (--border), text (--foreground, --muted-foreground, --placeholder), and accents (--primary/--primary-foreground, --secondary/--secondary-foreground, --accent) are all available. Typography is applied for you on the document body — you do not need to set a font, and never use sub-12px micro-text (text-[10px], text-[11px], or CSS font-size below 12px; keep text-xs / 12px as the minimum floor unless the user asks).

  • Text & Surface Colors: Use semantic variables (bg-[var(--card)], text-[var(--foreground)], text-[var(--muted-foreground)]) instead of hardcoded dark/light utility classes (e.g., bg-slate-900, text-white) to ensure high contrast across both light and dark themes.

  • Do Not Declare Local Fallbacks on :root: Never define local color fallbacks on :root in a <style> block; the host environment manages theme variables dynamically.

  • HTML Boilerplate Template: Recommended base template:

    <!DOCTYPE html>
    <html>
    <head>
      <script src="https://www.gstatic.com/antigravity/web/dev/tailwindcss.min.js"></script>
    </head>
    <body class="bg-transparent text-[var(--foreground)] antialiased p-5">
      <div class="bg-[var(--card)] text-[var(--foreground)] border border-[var(--border)] rounded-xl p-5 shadow-sm">
        <h2 class="text-[var(--foreground)] font-semibold text-lg">Title</h2>
        <p class="text-[var(--muted-foreground)] text-sm">Description</p>
        <!-- Interactive content goes here -->
      </div>
    </body>
    </html>
    
  • General styling: Aim for a clean, premium aesthetic. For <canvas>, check document.documentElement.classList.contains('light') to adapt colors.

Deciding on Placement (Inline vs. Standalone)

Default to artifact only — reference the HTML artifact in your response and let the user open it in the side pane. Consider inlining when the widget is compact (comfortably under 500px tall) and directly illustrates the surrounding explanation (e.g., a small educational widget, plot, or diagram). Larger, more complex content (data dashboards, simulations, app prototypes) should stay artifact-only. Always follow the user's explicit preference if stated.

Designing Inline Widgets (Cards & Transparency)

When embedding inline in chat (<agent-embed>), style widgets as native chat
components:

  • Transparent Root Background: Always set <body class="bg-transparent ..."> so the widget blends seamlessly into the chat container.
  • Card-Based Layouts: Wrap inline content and controls in a card container (as shown in the Boilerplate Template above) to provide elevation and prevent loose text in light mode.
  • Standalone Artifacts: For full-page side-pane artifacts (like dashboards), use a solid background (e.g., bg-[var(--background)]).

Sizing Inline Embeds

For inline embeds, it is important to think small and compact.

Inline embeds only have a 500px height viewport. Past that the widget scrolls inside a small box and the user sees only a fragment of what you built, so don't build inlined widgets that are too tall.

  • Do not set a height attribute on <agent-embed>. It is ignored.
  • Think compact Think carefully about designing something that is compact and fits nicely inline in the chat height budget.
  • If the idea genuinely needs more room, make it a standalone artifact. A scrolling inline widget is usually wrong — full-height in the side pane beats cropped in the chat.

After generating the artifact, consider whether it is sufficiently compact to be useful inline and adjust if needed.

[!IMPORTANT] Never size an inline widget relative to the viewport: no
h-screen, min-h-screen, 100vh, or height: 100% on a top-level
container. The frame's viewport is derived from your content, so these feed
themselves and the widget collapses to a sliver. Use padding for breathing
room instead.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

3d-object

無料概要あり

立体物をthree.jsで作成し、あらゆる角度から確認できるビューアーに表示します。OBJ + MTLやGLBで保存し、他の3D制作ソフトへ持ち込めます。

  • 立体物を作って全方向から確認したいとき
  • Blenderで編集するモデルの作成
  • シルエットや素材の見え方の確認
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

a11y-debugging

無料概要あり

Chrome DevTools MCPでWebページのアクセシビリティを監査し、見出し構造、ラベル、キーボード操作、フォーカス、タップ領域、色のコントラストに関する問題を調べます。

  • ページ全体のアクセシビリティを監査したいとき
  • フォームのラベルや画像の代替テキストを確認したいとき
  • キーボード操作とフォーカスを点検したいとき
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

action-items

無料概要あり

個人用のタスク一覧に、やることや期限、返答待ち、作業が止まる理由を記録します。進捗や依存関係を更新し、重複や完了済みの項目も整理するスキルです。

  • 期限付きのタスクや約束の記録
  • 返答待ちや作業が止まる理由の整理
  • 前提タスク完了後の依存関係の更新
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

agents

無料概要あり

作業の目標と完了条件を整理し、必要に応じて複数のエージェントへ分担します。進捗報告、成果の検証、PRのマージまで、プロジェクトとして進行を管理します。

  • 独立した作業を並行して進めたいとき
  • 進行中の各作業の状況確認
  • 中断したプロジェクトの再開
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

agy-customizations

無料概要あり

Antigravityのカスタマイズの種類や読み込み順、検出場所を説明し、スキル、ルール、プラグイン、フック、MCPサーバーの作成方法を案内します。

  • カスタマイズの種類を選びたいとき
  • 読み込み場所や優先順位を確認したいとき
  • スキルやルールを作成したいとき
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

animated-video

無料概要あり

再生・一時停止や時間位置の指定ができるアニメーションをHTMLページとして制作します。場面の長さや速度を調整し、横長・縦長の動画書き出しに備えます。

  • 製品の操作紹介を動画にしたいとき
  • 文字と図形で内容を説明したいとき
  • 縦長のアニメーション制作
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

asgeirtj のスキルをすべて見る

このスキルの問題を報告する