本文へ移動
cccskills
無料GitHub で公開

html-artifact

Create polished single-file HTML artifacts for plans, reports, explainers, code reviews, lightweight dashboards, prototypes, and one-off editing tools. Use when the user asks for a standalone HTML file, single HTML, HTML artifact, interactive report, shareable local artifact, Alpine.js artifact, custom CSS artifact, copy/export UI, or a browser-openable deliverable instead of Markdown.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.2 KB

SKILL.md(原文)

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

Single HTML Artifact

Default Stack

Use this stack unless the user asks otherwise:

  • One .html file with embedded <style> and <script>.
  • Custom CSS with CSS variables for theme, spacing, borders, and status colors.
  • Vanilla JavaScript for static pages and simple interactions.
  • Alpine.js from CDN when stateful UI would otherwise require repetitive DOM code.
  • Optional CDN libraries only when they clearly reduce complexity: Chart.js for charts, Mermaid for diagrams, highlight.js for code, KaTeX for math.

Avoid build tools, package managers, JSX transpilers, large component libraries, and app frameworks unless the artifact is truly a mini-app or the user requests them.

Workflow

  1. Clarify the artifact's job: document, comparison, dashboard, prototype, editor, or review aid.
  2. Choose the smallest interaction model:
    • Static reading: HTML + custom CSS.
    • Tabs, filters, toggles, forms, copy/export: add Alpine.js.
    • Many reusable components or nested state: consider Preact, but explain the tradeoff.
  3. Build the first screen as the usable artifact, not a landing page.
  4. Keep the layout readable: clear hierarchy, dense but calm spacing, responsive constraints, and no overlapping text.
  5. Add export affordances when the user will make decisions in the artifact: copy as Markdown, JSON, prompt, or diff.
  6. Verify by opening in a browser or otherwise checking the generated HTML for syntax, layout, and interaction issues.

CSS Guidance

Prefer custom CSS over a UI framework. Define a small token set:

:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #687076;
  --accent: #2563eb;
  --border: #d9dee3;
}

Use framework CSS only when it fits the artifact:

  • Pico.css: good for document-like pages with forms, tables, and prose.
  • Tailwind CDN: acceptable for quick prototypes mostly maintained by AI, but expect noisy HTML.
  • DaisyUI, Flowbite, Bootstrap, Material, shadcn-style systems: usually too heavy for single-file artifacts.

Alpine.js Pattern

Use Alpine.js when the page needs light state:

<script
  defer
  src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"
></script>

<main x-data="{ tab: 'why' }">
  <button @click="tab = 'why'">Why</button>
  <section x-show="tab === 'why'">...</section>
</main>

Keep state close to the markup it controls. For larger logic, define named functions inside the page script and initialize them with x-data="artifact()".

Quality Bar

Before finishing:

  • Confirm the file is self-contained except for intentional CDN links.
  • Ensure the core content remains readable if optional scripts fail.
  • Check mobile and desktop responsiveness.
  • Check buttons, tabs, filters, and export actions.
  • Keep the final report concise: file path, what changed, verification, and any known tradeoffs.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

coss

無料

Helps implement coss UI components correctly. Use when building UIs with coss primitives (buttons, dialogs, selects, forms, menus, tabs, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior. Covers imports, accessibility, Tailwind styling, and common pitfalls.

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

Index of all COSS UI particle examples. Use when implementing UI features to find copy-paste-ready component patterns built on coss primitives. Each particle has a description and a JSON URL for easy installation.

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

email

無料

Standard IMAP/SMTP email client for Gmail, Outlook, and self-hosted accounts. Use when user mentions email, inbox, send email, check mail, read message, compose, reply, set up email, add email account, configure email (non-Lark/Feishu accounts).

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

lark-cli

無料

Lark/Feishu workspace operations through the `lark-cli` tool — calendar and meeting rooms, docs, sheets, Base (多维表格), wiki, drive, mail, IM messages, tasks, OKR, approvals, minutes, video conferences, whiteboards, slides, contacts, attendance, and real-time events. Use whenever the user mentions 飞书 / Lark / 我的日程 / 约会议 / 订会议室 / 飞书文档 / 多维表格 / 知识库 / 云空间 / 发消息 / 群聊 / 邮件 / 待办 / OKR / 审批 / 妙记 / 会议纪要 / 画板 / 幻灯片, or asks to look up a colleague, or hands you a `feishu.cn` / `larksuite.com` URL. Also covers `lark-cli` setup, auth login, and permission-denied errors.

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

recally

無料

Reading assistant for saving, organizing, and recalling web content. Use when the user says "save this article", "read this link", "summarize this", "check my feeds", "add to my library", or asks about previously saved content. Handles articles, tweets, YouTube videos, GitHub repos, PDFs, and RSS feeds. Articles are stored with their metadata and indexed for fast search.

日本語の概要は準備中です。原文の説明を表示しています。

CherryHQ/stella532026年10月2日 更新

CherryHQ のスキルをすべて見る

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