跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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 的全部技能

报告此技能的问题