Skip to content
Back to skills

Visualise Explainer

ASecurity

Use when asked to create an interactive HTML concept explainer with controls and live state, returned in a visualizer fence for sandboxed rendering. Validates controls via a local DOM trace, not a mental trace. Not for tasks that require source or remote-system changes.

  • 55 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
ai-agentsjavascriptgojava

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add OutlineDriven/outline-driven-development --skill visualise-explainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Visualise Explainer?

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

Security grade badge for Visualise Explainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/outlinedriven-visualise-explainer-outline-driven-development/badge)](https://www.skillsdirectory.com/skills/outlinedriven-visualise-explainer-outline-driven-development)

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: visualise-explainer
description: 'Use when asked to create an interactive HTML concept explainer with controls and live state, returned in a visualizer fence for sandboxed rendering. Validates controls via a local DOM trace, not a mental trace. Not for tasks that require source or remote-system changes.'
---

# Visualise explainer

## Contract

| Field | Bound contract |
|---|---|
| Trigger | User asks for an interactive explainer, how does X work (with controls), slider, live state, or interactive model |
| Authority | Read-only: no file, VCS, credential, paid, published, deployed, or remote mutation |
| Side effect | Chat output: visualizer fence containing a self-contained HTML interactive explainer with controls and live state, rendered by the client in a sandboxed iframe |
| Done | Visualizer fence containing a functional interactive explainer with working controls and live-updating state, validated via local DOM trace |

## Inputs

- Concept (required): the topic, system, algorithm, or process to explain. Extracted from the user message.
- Interaction model (optional): spatial layout, sequential steps, state machine, or parameter sweep. Inferred from the concept structure when not supplied.
- Depth (optional): introductory, intermediate, or detailed. Defaults to introductory.

## Procedure

1. **Extract concept core dynamics.** Identify the entities, relationships, and state changes the explainer must make visible. Done when: the core dynamics are identified.

2. **Select interaction model and map state.** Choose spatial (drag, pan, zoom), sequential (step forward/back), state machine (toggle states, observe transitions), or parameter sweep (sliders adjust variables). Define the JavaScript state variables, their initial values, valid ranges, and the mapping from each control to its state variable. Done when: the model is selected and state is mapped.

3. **Generate HTML with inline event handlers.** Build a single self-contained HTML document with embedded CSS and JavaScript. Include the controls panel, the visualization area, and event handlers that update state and re-render on every interaction. No external dependencies, CDN links, or fetch calls. Done when: the HTML document is self-contained with all controls and event handlers.

4. **Validate controls via local DOM trace.** Parse the generated HTML with a DOM library (jsdom or equivalent). For every control element, verify it has an event handler that references a defined function. For every event handler, verify the state variables it references are declared. Simulate at least two state transitions programmatically: trigger the handler, read the resulting state, and confirm the visualization output changed. If any control has no handler, any handler references an undefined function, or any simulated transition produces no visible change, fix the HTML and re-validate. Done when: all controls have working handlers and two simulated transitions produce visible state changes.

5. **Wrap in visualizer fence.** Enclose the validated HTML in a visualizer fence for sandboxed iframe rendering by the client. Done when: the HTML is wrapped in the visualizer fence.

## Failure and recovery

| Failure class | Detection | Recovery |
|---|---|---|
| `ambiguous-concept` | Multiple unrelated interpretations possible | Ask the user to narrow the scope. Do not guess or produce a generic explainer. |
| `unrepresentable-interaction` | No control maps to a meaningful state change in any model | Report that the concept cannot be represented with the available interaction models. Do not emit a non-functional explainer. |
| `external-dependencies-detected` | External URL, CDN reference, or fetch call found in the HTML | Remove the dependency and reimplement with inline assets and pure DOM manipulation. |

Partial-result rule: never emit an explainer with non-functional controls. If any control fails the DOM trace, fix it or remove it and adjust the explainer scope.

## Output

A visualizer fence containing a self-contained HTML document with working controls and live-updating state, validated via local DOM trace.

Files in this skill

  • SKILL.md4 KB
  • agents/openai.yaml221 B

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.