# Artifact Visualizer Skill

Generate beautiful HTML visualizations for discovery artifacts.

## Purpose

Transform raw markdown artifacts (brief.md, competitors.md, etc.) into rich HTML cards with:
- Visual hierarchy and structure
- Data highlights and key metrics
- Consistent design system
- Standalone rendering (no external CSS required)

## Design System

```css
/* Dark theme with accent */
--bg: #0a0a0a;
--card: #141414;
--border: #262626;
--text: #fafafa;
--muted: #a1a1aa;
--accent: #d4ff00;
```

**⚠️ IMAGE LIGHTBOX REQUIRED** — All HTML artifacts with images MUST include the lightbox pattern. Images should be clickable and expand to full size in a modal. See `skills/design-pipeline/SKILL.md` for the complete CSS/JS lightbox snippet.

## Artifact Types

### brief.html
- Product overview card
- Key metrics (market size, sector, score)
- Vision statement
- Problem/solution summary

### competitors.html
- Competitor cards grid
- Each card: name, description, strengths, weaknesses
- Market positioning visualization
- Gap analysis summary

### target-market.html
- TAM/SAM/SOM visualization
- Persona cards (2-3 personas)
- Key demographics
- Pain points list

### prd.html
- Feature priority matrix
- MVP scope summary
- Technical requirements highlights
- Success metrics

### user-stories.html
- Story cards grouped by epic/theme
- Priority indicators
- Acceptance criteria preview
- Story point estimates if available

## HTML Template Structure

```html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: system-ui, -apple-system, sans-serif;
      background: #0a0a0a;
      color: #fafafa;
      padding: 24px;
      line-height: 1.6;
    }
    .card {
      background: #141414;
      border: 1px solid #262626;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 16px;
    }
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    .card-title {
      font-size: 1.25rem;
      font-weight: 600;
    }
    .badge {
      background: rgba(212, 255, 0, 0.1);
      color: #d4ff00;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
    }
    .metric {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .metric-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #d4ff00;
    }
    .metric-label {
      font-size: 0.75rem;
      color: #a1a1aa;
      text-transform: uppercase;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }
    .list {
      list-style: none;
    }
    .list li {
      padding: 8px 0;
      border-bottom: 1px solid #262626;
    }
    .list li:last-child {
      border-bottom: none;
    }
    .highlight {
      color: #d4ff00;
    }
    .muted {
      color: #a1a1aa;
    }
    h1 { font-size: 1.5rem; margin-bottom: 24px; }
    h2 { font-size: 1.25rem; margin-bottom: 16px; }
    h3 { font-size: 1rem; margin-bottom: 12px; }
    p { margin-bottom: 12px; }
  </style>
</head>
<body>
  <!-- Content here -->
</body>
</html>
```

## Usage

Called by the artifact rendering API after each discovery artifact is written.
Input: artifact name + content
Output: standalone HTML file saved to discovery folder
