Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

visualisevisualise 前端

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

569

周安装

23

GitHub Stars

435

下载量

178
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:visualise(visualise 前端)
来源仓库:https://github.com/bentossell/visualise
仓库路径:skills/visualise
安装命令:
npx skills add https://github.com/bentossell/visualise --skill visualise
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bentossell/visualise --skill visualise

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及页面改动时应通过截图或浏览器预览检查表现。
  • 安装命令:npx skills add https://github.com/bentossell/visualise --skill visualise
  • 注意:涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

SKILL.md

Inline Visualizer

Render rich visual content — SVG diagrams, HTML interactive widgets, charts — directly inline in a chat conversation. Output streams token-by-token into a sandboxed iframe. The result feels like a natural extension of the conversation, not an attachment.

How it works

You generate raw HTML or SVG fragments. The client renders them in a sandboxed iframe with the design system's CSS variables injected. No <html>, <head>, or <body> tags — just content fragments.

Two output modes:

  • SVG mode: Output starts with <svg>. Client auto-wraps in a card. Best for static diagrams.
  • HTML mode: Raw HTML fragment. Best for interactive content (sliders, tabs, charts, controls). You can embed <svg> elements inside HTML mode.

The client detects which mode based on whether the output starts with <svg.

Before generating any visual

Read the design system reference before your first visual in a conversation:

  1. Always read first: references/design-system.md — CSS variables, color ramps, typography, core rules
  2. Then read the relevant module:

- Diagrams (flowcharts, structural, illustrative): references/diagrams.md - Interactive explainers, comparisons, data records: references/components.md - Charts (Chart.js, data viz): references/charts.md

Read the design system file once per conversation. Read module files as needed for each visual type.

Streaming constraints

Output streams token-by-token into the DOM. This dictates structure:

  1. <style> first (keep under 15 lines — inline styles preferred)
  2. Visible HTML/SVG content next (the user sees it building up)
  3. <script> last (executes only after streaming completes)

Because of streaming:

  • No gradients, drop shadows, blur, or glow — they flash during DOM diffs. Use flat fills.
  • No display:none or hidden content — it streams invisibly.
  • No <!-- comments --> or /* comments */ — waste tokens, break streaming.
  • Inline style="..." preferred over <style> blocks so elements look correct mid-stream.
  • No tabs or carousels that start hidden — show everything stacked vertically during stream. Post-streaming JS can add interactivity.

Iframe sandbox rules

The visual renders in a sandboxed iframe. These are hard constraints:

  • No localStorage / sessionStorage — all state must be in-memory
  • No position: fixed — the iframe auto-sizes to content height; fixed elements collapse it
  • No external fetches — CSP blocks API calls from inside the widget
  • CDN allowlist only: cdnjs.cloudflare.com, esm.sh, cdn.jsdelivr.net, unpkg.com
  • No DOCTYPE, <html>, <head>, <body> — just content fragments
  • Background is transparent — the host provides the container/card styling
  • Load libraries via <script src="https://cdnjs.cloudflare.com/ajax/libs/..."> (UMD globals)

The sendPrompt bridge

A global sendPrompt(text) function is available inside the iframe. It sends a message to the chat as if the user typed it. Use it to make visuals conversational — clicking a node in a diagram can trigger a follow-up explanation.

Use sendPrompt when the user's next step benefits from the model thinking. Handle filtering, sorting, toggling, and calculations in local JS instead.

Choosing the right visual type

Route on the verb, not the noun. The same subject gets different treatment depending on what was asked:

User saysTypeWhat to build
"how does X work"Illustrative diagramSpatial metaphor showing the mechanism
"what are the components of X"Structural diagramLabelled boxes showing containment
"walk me through the steps"FlowchartSequential boxes and arrows
"compare X vs Y"Comparison layoutSide-by-side cards with metrics
"show me the data"ChartChart.js or inline data viz
"explain X" (spatial concept)Interactive explainerSliders, controls, live state

Default to illustrative for "how does X work" — it's the more ambitious choice. Don't retreat to a flowchart because it feels safer.

Multiple visuals per response

Generate multiple visuals in a single response, interleaved with prose:

  1. Text block (introduce/explain)
  2. Visual
  3. Text block (transition)
  4. Visual (if needed)

Never stack visuals back-to-back without text between them.

Output wrapper

Wrap visual output in a code fence with the language tag visualizer so the client detects and routes it to the iframe renderer:

<svg width="100%" viewBox="0 0 680 400"> ... </svg>

The client strips the fence and injects the content into the iframe with theme variables prepended.

Quick reference

RuleValue
SVG viewBox widthAlways 680px
Font sizes14px labels, 12px subtitles only
Stroke width0.5px for borders and edges
Max colors per diagram2-3 ramps
Box subtitle length≤5 words
Corner radius (SVG)rx="4" default, rx="8" for emphasis
Corner radius (HTML)var(--border-radius-md) or -lg
Min font size11px
Text weights400 regular, 500 bold only
Heading sizesh1=22px, h2=18px, h3=16px

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.31%
按下载量换算63

Claude

29.63%
按下载量换算53

Cursor

19.6%
按下载量换算35

Gemini CLI

10.8%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills