算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
kimi-widget【设计与创意】Kimi widget design system. Read this BEFORE rendering any inline widget. Defines when to use a widget and the runtime contract; the full visual style lives in references/design-system.md. Your widget runs in a sandboxed iframe with the Kimi design system pre-loaded — reference the provided CSS variables, never hardcode colors or fonts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
A widget is a compact visual or interactive surface rendered inline in the conversation: diagrams, dashboards, calculators, sliders, comparisons, timelines, state machines, small simulations. Use one when seeing structure helps the user understand, compare, inspect, or act on the answer better than prose alone.
Do not use a widget for: ordinary prose answers, routine line-by-line code explanations, file lists / galleries / final deliverables, blocking input workflows, destructive or native actions, or large long-lived apps.
The widget runs in a sandboxed iframe with the Kimi design system CSS already loaded. All CSS variables, form-element styles, and SVG classes are available at runtime — reference them, do not redefine them.
fetch, or WebSocket. For charts/diagrams use SVG, Canvas, CSS, or plain DOM.window.sendPrompt(text) (when the host
injects it) to push the user's next intent into the conversation. Write text as a real user
message — what the user would actually type — never a robotic confirmation like "I selected
option A, please proceed."var(--xxx). Hardcoded values break
dark mode and look inconsistent with the host UI.Unless the user has given you very explicit, precise styling instructions for this specific widget, you MUST read references/design-system.md before writing the widget code. It carries the full Kimi Perspective Widget style — visual rules, typography, component patterns, runtime token map, and the application checklist. Do not decide a widget is too simple, too static, or too small to need it. Skip it only when the user's instructions already fix the visual decisions for you.
If the widget uses icons, also read references/icon-system.md: the
skill ships 105 Kimi icons (assets/icons/, indexed in references/icons/manifest.json) — pick
from the library and inline the SVG instead of drawing your own or using emoji.