# Interactive Artifact

> |

- **Type:** Skill
- **Install:** `agentstack add skill-haowjy-creative-writing-skills-interactive-artifact`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [haowjy](https://agentstack.voostack.com/s/haowjy)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [haowjy](https://github.com/haowjy)
- **Source:** https://github.com/haowjy/creative-writing-skills/tree/main/cw/skills/interactive-artifact

## Install

```sh
agentstack add skill-haowjy-creative-writing-skills-interactive-artifact
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Interactive Artifact

A single HTML file that opens in a browser. The viewer clicks, filters, or expands to
explore — not just read.

## Principles

- **One view, detail on demand.** Show the full picture. Clicking an element reveals
  detail in a collapsible sidebar — don't split information across pages or tabs.
- **Maximize the content area.** Fill the viewport (`height: 100vh`, flex column).
  Navigation and detail are collapsible sidebars with width transitions, not fixed
  headers or overlays. Content area gets all remaining space.
- **Light mode default with toggle.** Drive colors from CSS custom properties. Toggle
  dark mode by adding `.dark` to ``. Include a ☀/🌙 button in the toolbar.
- **Static, no build step.** CDN `` tags. One HTML file, no npm, no bundler.
- **Works on a phone.** Responsive layout, touch pan/pinch-zoom, tap targets ≥ 44px.

`resources/layout-and-theme.md` has the concrete layout, theme, and mobile patterns
shared across all interaction patterns.

## Interaction patterns

Default to **Mermaid diagrams** when information has relationships or flow. Pick a
different pattern when the data is better served by it:

| Pattern | When to use | Resource |
|---|---|---|
| Explorable diagram | Dependencies, flow, system maps | `resources/explorable-diagram.md` |
| Data table | Records with sortable/filterable columns | `resources/data-table.md` |
| Data chart | Quantities, trends, distributions | `resources/data-chart.md` |
| Timeline | Chronological events with detail | `resources/timeline.md` |
| Tree / TOC | Hierarchy navigation, document outline | `resources/tree-and-toc.md` |
| Card grid | Items with summary + expandable detail | `resources/card-grid.md` |
| Diff / comparison | Before/after, version diff | `resources/diff-view.md` |

For custom node rendering, drag, or live filtering on graphs beyond what Mermaid
offers, see `resources/experimental-react-flow.md`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [haowjy](https://github.com/haowjy)
- **Source:** [haowjy/creative-writing-skills](https://github.com/haowjy/creative-writing-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-haowjy-creative-writing-skills-interactive-artifact
- Seller: https://agentstack.voostack.com/s/haowjy
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
