Skip to content
cccskills
FreePublished on GitHub

artifact

Build a standalone, single-file HTML page the user can open and use — a report, dashboard, data visualization, interactive tool or calculator, mockup, landing page, poster/one-pager, or small game — write it into the session workspace and hand back a link that renders it in Cebian's file preview. Use when the user asks for a web page, dashboard, chart, visualization, interactive demo, prototype, "something I can open / click / share", or to "render this as HTML"; also when a plain-text answer would be a poor fit for the content (tabular data to explore, a layout to judge, a UI to try). Not for ordinary answers, Markdown notes, or edits to files that are not HTML.

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177 stars(GitHub 177 + cccskills 0)

Run score Not tested

See how to install

Files included (4)

  • SKILL.md5.9 KB
  • assets/starter.html5.1 KB
  • references/design.md8.2 KB
  • references/sandbox.md5.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

artifact

An artifact is one self-contained .html file in the session workspace. The user opens it from a link in your reply; Cebian renders it as a live web page in a sandbox, with a Preview / Source toggle, copy and download in the header. You iterate by editing the same file.

When to reach for an artifact

The user wants…Deliver
An answer, explanation, list, or comparison they will read onceA normal reply (no artifact)
Notes, a plan, a document to keep and re-readA .md file in the workspace
Something to look at: a page, poster, one-pager, mockup, slide-like summaryArtifact
Something to explore or operate: dashboard, chart, table with filters, calculator, form, gameArtifact
A visual judgment: "does this layout work", "compare these two designs"Artifact

If in doubt, ask yourself whether the value is in the rendered result rather than the words. Only then build an artifact.

Hard rules

Read references/sandbox.md once per session before writing your first artifact. The short version:

  • One file, self-contained. Inline all CSS and JS. Relative paths are never resolved — ./chart.png, styles.css, ../data.json will 404. Embed small assets as data: URIs; load libraries and fonts only from absolute https:// URLs.
  • No browser storage. localStorage, sessionStorage, document.cookie, IndexedDB and caches all throw SecurityError in the sandbox. Keep state in memory. A single uncaught call at the top of a script kills the whole script.
  • Show the page at rest. Everything worth reading must be visible in plain HTML once loaded, before any script runs: Firefox renders artifacts without JavaScript, and a chart that only appears after JS runs is an empty box there. Put the content in the markup itself; let scripts enhance it.
  • A real <title>. Two to four words naming the thing, like a product or document name — not a description.
  • Real content, never lorem ipsum. Use the user's data and words. Mark anything you invented as an example.
  • Stable filename. kebab-case.html, chosen once. Edit the same file on every iteration so the user's link keeps working.
  • Keep it small. Aim for well under 2 MB; the preview refuses files over 50 MB and large data: images count.

Workflow

  1. Pin the subject. One concrete subject, its audience, and the page's single job. If the request is ambiguous in a way that changes the page materially, ask; otherwise decide and note your assumption in the reply.
  2. Choose the treatment using references/design.md: utilitarian (a report, a tool, a dashboard — polished, restrained) or editorial (a landing page, a poster, something meant to be shared — opinionated, one deliberate risk). Most requests are utilitarian.
  3. Write a three-line design plan before any code: palette (4–6 named colors, light and dark), type (a display face and a body face, with fallbacks), layout (one sentence). Then build from that plan — every color and size in the file should trace back to it.
  4. Start from assets/starter.html. It carries the token structure, type scale, container, prefers-color-scheme handling and prefers-reduced-motion respect. Replace the placeholder content; keep the structure.
  5. Write the file with fs_create_file into the session workspace path given in your system prompt (/workspaces/<session-id>/<name>.html). Do not put it anywhere else.
  6. Reply with the link and one sentence. Use the hash-only href form from your system prompt: [Quarterly dashboard](#/workspaces/<session-id>/quarterly-dashboard.html). Say what the page shows and which parts are interactive; mention assumptions and any example data you made up.
  7. Iterate in place. For every follow-up, fs_edit_file the same file — never create v2.html. Re-read the file first if the conversation has moved on. Tell the user to re-open or refresh the link.
  8. When the user reports a problem ("blank", "no style", "chart missing", "nothing happens"), run through the troubleshooting table in references/sandbox.md before guessing.

What an artifact is not

  • Not a multi-page site. Links between artifacts do not work inside the preview; put sections, tabs or a sidebar in one page instead.
  • Not a place to persist user input. Nothing the user types survives a refresh; say so if the page collects input, or offer a "copy results" button.
  • Not a substitute for the conversation. Conclusions, caveats and next steps still belong in your reply.

References

  • references/sandbox.md — exactly what the preview sandbox allows and blocks, how links and iteration work, and a troubleshooting table.
  • references/design.md — design fundamentals for the page: treatment, type, color, layout, charts, copy, and the AI-template look to avoid.
  • assets/starter.html — the skeleton to start every artifact from.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

cl

Free

审计自上次发版以来的提交,把遗漏的「用户可见变更」补进 CHANGELOG.md 的 [Unreleased];可选地把 [Unreleased] 收口成正式版本节

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

Use when completing a coding task to perform senior-level code review. Triggers on: code review, post-task review, review changes, check code quality, review my code.

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions. MUST be used whenever adding, editing, refactoring, or reviewing any translation key in `locales/*.yml`, any `t(...)` call in source code, or any `__MSG_*__` placeholder in manifest. Also triggers when reviewing diffs that touch i18n files, when proposing new user-facing strings, or when validating translation completeness/consistency between `en.yml`, `zh_CN.yml`, and `zh_TW.yml`.

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

Replace this with 1–1024 characters describing what the skill does AND when to use it. Include synonyms a user might say (e.g. "summarize", "digest", "tl;dr"). See the description-tuning reference in the skill-creator skill for guidance.

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

shadcn

Free

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

Create new Cebian skills, edit or improve existing ones, scaffold multi-file skill packages, and validate them against the agentskills.io specification. Use when the user wants to author, refactor, or debug a skill (including questions like "why isn't my skill firing"), declare metadata.permissions for scripts that call chrome.* APIs or inject code into pages, or rewrite a description for better trigger accuracy.

The English summary is being prepared. Showing the original description.

maotoumao/Cebian177Updated Oct 24, 2026

See all skills by maotoumao

Report a problem with this skill