Skip to content
Back to skills

Nuphos Visualize

ASecurity

Show an interactive chart, diagram or picker inline in a Nuphos Desktop reply, channel or Bot chat.

  • 843 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add nuphos/nuphos --skill nuphos-visualize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nuphos Visualize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nuphos Visualize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuphos-nuphos-visualize/badge)](https://www.skillsdirectory.com/skills/nuphos-nuphos-visualize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nuphos-visualize
description: "Show an interactive chart, diagram or picker inline in a Nuphos Desktop reply, channel or Bot chat."
---

# Inline visualizations in Nuphos Desktop

Nuphos Desktop renders an agent's ` ```nuphos-visualize ` code fence as a live
HTML page, inline in the message, in a sandboxed frame: in your replies in a
conversation, and in what you post to a Nuphos channel or a Bot chat (for
example with `channel_post`). A fence a person writes stays code. Use it when a picture
or a small interactive page explains the answer better than text or a table:

- a chart of numbers you just pulled (trend, comparison, distribution, funnel)
- a diagram (flow, timeline, architecture sketch, state machine)
- a side-by-side comparison the reader can toggle or sort
- a small picker: buttons that put the reader's next request in the composer

Do not use it for plain lists or short tables (write markdown), for documents
the user will keep or download (use an artifact), or when the reader is not on
Nuphos Desktop (Slack, LINE, Discord, email show the fence as code).

## Format

````markdown
Signups rose mid-week:

```nuphos-visualize title="Weekly signups"
<svg id="bars" viewBox="0 0 420 160" width="100%"></svg>
<script>
  // draw into #bars
</script>
```
````

- Language: `nuphos-visualize` (`visualize` also works).
- `title="…"` after the language is the frame's accessible name, for screen
  readers. It is not shown. Optional.
- The body is an HTML fragment or a full `<!doctype html>` document. Inline
  `<script>` and `<style>` are fine. Keep it self-contained: put the data in the
  script as a literal.
- There is no frame around the block: no title bar, border, background or
  buttons. The page sits on a transparent ground at the message's width, so it
  reads as part of the reply. Write the text around it as usual.
- The fence renders once it is complete. While it streams the reader sees
  "Drawing the visualization…", so put the fence where a short wait is fine.

## Theme

The page follows the app's light or dark theme, live. Use these CSS variables
instead of hard-coded colors:

| Variable                                                             | Use                         |
| -------------------------------------------------------------------- | --------------------------- |
| `--nuphos-text`, `--nuphos-text-secondary`, `--nuphos-text-tertiary` | text                        |
| `--nuphos-bg`, `--nuphos-surface`, `--nuphos-subtle`                 | backgrounds                 |
| `--nuphos-border`                                                    | lines, card borders         |
| `--nuphos-accent`, `--nuphos-accent-text`                            | primary action and its text |
| `--nuphos-success`, `--nuphos-error`                                 | good / bad values           |
| `--nuphos-series-1` … `--nuphos-series-6`                            | chart series, in order      |
| `--nuphos-font`, `--nuphos-mono`, `--nuphos-radius`                  | type and corners            |

The page background is transparent, over the message. Ready-made classes:
`.nx-btn` and `.nx-btn.primary` (buttons), `.nx-muted` (secondary text), and
`.nx-card` (a bordered panel). Your own CSS overrides them.

Let the page blend into the reply:

- Do not wrap the whole page in `.nx-card` by default. Keep it for a part
  that should stand apart, such as one card in a set of options.
- Do not repeat a big title inside the page. The sentence before the block
  introduces it; inside, use small labels (axis names, a legend, a `.nx-muted`
  caption) only where they are needed.

In script, `window.nuphos.theme` is `'light'` or `'dark'`, and
`window.nuphos.onThemeChange(fn)` calls `fn(theme)` on a switch. CSS variables
update by themselves; only redraw from script if you copied colors into it
(for example into a canvas).

## Buttons that talk to the chat

A visualization can hand the reader's next message to the chat, only from a
click by the reader:

- `data-nuphos-send="…"` on an element: clicking it asks the reader to send
  that text as their next message. They see it in a confirmation, can edit it,
  and choose Send or Cancel.
- `data-nuphos-insert="…"`: clicking it puts the text in the composer, for the
  reader to finish and send themselves. Good for "Draft an email about …".
- From script, inside a click handler: `window.nuphos.sendPrompt(text)` and
  `window.nuphos.insertPrompt(text)`. They return `false` when refused.
  `window.openai.sendFollowUpMessage({ prompt })` is an alias of `sendPrompt`.

```html
<button class="nx-btn primary" data-nuphos-send="Break Thursday down by source.">Why Thursday?</button>
<button class="nx-btn" data-nuphos-insert="Draft a note to the team about ">Draft a note</button>
```

Write the text as the reader's own request, in their language, complete enough
to stand alone ("Compare the Pro and Team plans in a table", not "compare").

## Limits

The frame is sandboxed. Plan for these limits; there is no way around them:

- No network. `fetch`, XHR, WebSocket, EventSource and WebRTC are blocked, and
  so are images and media from URLs. Put the data in the page; use inline
  SVG, `data:` or `blob:` URLs for images.
- Scripts, styles and fonts load only from `https://cdn.jsdelivr.net`,
  `https://unpkg.com` and `https://cdnjs.cloudflare.com` (for example Chart.js,
  D3, Mermaid, ECharts from jsDelivr). Pin a version. Anything else is blocked.
  Prefer plain SVG when it is enough: it loads instantly and works offline.
- No same-origin access: no cookies, `localStorage`, `sessionStorage` or
  IndexedDB, and no access to the app.
- The page stays on its own document. The app refuses any navigation of the
  frame or of a frame inside it, whether by script (`location.href = …`), a
  link or `<meta http-equiv="refresh">`; the request is never sent. No forms
  (`<form>` submission), no nested frames, `<object>` or `<embed>`.
- No popups: `window.open` and `target="_blank"` do nothing by themselves. A
  click on an `http(s):` or `mailto:` link opens it in the reader's browser;
  `#id` links scroll the page. Nothing opens without a click.
- DNS prefetching is off, but the CSP does not govern
  `<link rel="preconnect">`; do not put data in a hostname.
- At most 300 KB of HTML; a larger block shows as code only.
- The frame sizes itself to the page's height, from 48 px up to 900 px; past
  that it scrolls. Do not set `height: 100vh` on the page: it has no fixed
  viewport.
- Prompts: 1–4000 characters, only during a click inside this frame, at most
  one every 0.8 seconds. Sends always go through the reader's confirmation.
- Errors in the page show as a line under the block. Test mentally that the
  script runs top to bottom without the network.

## Checklist

1. Data is inline, small, and labeled with units and the date range.
2. Colors come from the variables; text stays readable in light and dark.
3. Width is fluid (`width="100%"`, `viewBox`, flex or grid), so the page fits
   the message column at any size.
4. Buttons carry complete requests; nothing auto-sends.
5. One sentence of text before the block says what it shows; the page has no
   big heading or outer card of its own.

## Trying it

Post a short ` ```nuphos-visualize ` block in a conversation, a Nuphos channel
or a Bot chat and open it in Nuphos Desktop. Its buttons act on that chat's own
composer.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.