# careerhackeralex/visualize architecture

> Architecture diagram of the GitHub repository careerhackeralex/visualize, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/careerhackeralex/visualize
- Repository: https://github.com/careerhackeralex/visualize

## Overview

1. **What this repo is**
   This is not a traditional app backend/frontend codebase. It is a **Claude Code plugin repository** whose primary job is to guide an LLM to generate **single-file HTML visualizations**. The “runtime” is mostly Claude Code plus browser rendering of the generated output.

2. **Package / plugin boundary**
   The `.claude-plugin/` directory is the installable plugin surface. `plugin.json` and `marketplace.json` define how Claude Code discovers, installs, and updates the plugin. For an architecture diagram, this is the outer distribution boundary.

3. **Core behavior spec**
   `skills/visualize/SKILL.md` is the main control document. It encodes the visualization behavior: what kinds of outputs to create, layout and composition rules, theme handling, accessibility expectations, and when to use interactive elements. This is the central “business logic,” but expressed as instructions rather than code.

4. **Design system and pattern library**
   `skills/visualize/references/` contains the reusable guidance the skill draws from: typography, color, CSS techniques, skeleton/layout patterns, menu behavior, animations, data types, library choices, and evaluation criteria. These files form a reference layer that shapes output consistency and quality.

5. **Generation model**
   The repo’s intended output is a **self-contained HTML file** with inline CSS/JS. The HTML may optionally load **CDN libraries** when needed, such as Chart.js, D3, Mermaid, Three.js, Leaflet, or Reveal.js. In the architecture, external libraries are optional dependencies used by the generated artifact, not by the repo itself.

6. **Output categories**
   The `examples/` directory holds representative finished artifacts: dashboards, slide decks, infographics, posters, timelines, comparisons, and more. These act as canonical output samples and serve as a visual contract for the system.

7. **Evaluation subsystem**
   The `eval/` tree is a substantial QA loop for improving generation quality. It includes stress tests, loop/process documentation, round-by-round analyses, screenshots, score files, and archived results. This is the main feedback system for validating whether the skill still produces strong visualizations.

8. **Automated scoring pipeline**
   `eval/pipeline/` is the executable evaluation harness. It includes orchestration (`run.js`), format detection, visual evaluation (`vision-eval.js`), and rule-based checks for accessibility, charts, layout, menus, technical quality, theme, and typography. The pipeline aggregates results into round scores and analysis artifacts.

9. **Evaluation data flow**
   The eval loop is roughly: generate outputs from stress tests → inspect via screenshots/vision and rule checks → score each dimension → record `scores.json`, analyses, and screenshots → revise the skill/references → rerun. The repo stores many historical rounds under `eval/rounds/` and `eval/archive/`, showing that iteration history is part of the system.

10. **Documentation / control plane**
   `README.md`, `CLAUDE.md`, and `docs/plans/` provide operational context and roadmap material. They do not execute at runtime, but they define how the plugin is used, what quality bar it must hit, and how future rebuilds or revisions should be approached.

11. **Important architectural boundary**
   The repo has **no conventional application server, database, or build pipeline for a shipped app**. Its main boundary is between:
   - **instruction assets** in the repo,
   - **Claude Code** interpreting those instructions,
   - and the **browser** rendering the generated HTML visualization.

12. **What to show in a diagram**
   A clear diagram should center the flow from **user prompt → Claude Code plugin/skill → reference guidance → generated HTML artifact → browser**, with a parallel **evaluation loop** feeding back from test cases and screenshots into the skill/references. That feedback loop is the main engineering system in this repository.

Main entry points: [`skills/visualize/SKILL.md`](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/SKILL.md) (Visualize skill), [`eval/pipeline/run.js`](https://github.com/careerhackeralex/visualize/blob/main/eval/pipeline/run.js) (Eval pipeline), [`eval/rounds`](https://github.com/careerhackeralex/visualize/tree/main/eval/rounds) (Rounds archive), [`.claude-plugin/plugin.json`](https://github.com/careerhackeralex/visualize/blob/main/.claude-plugin/plugin.json) (Plugin config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_external["External runtime"]
  node_user_prompt(("User prompt<br/>external input"))
  node_claude_code(("Claude Code<br/>agent runtime"))
  node_browser(("Browser<br/>render runtime"))
  node_cdn_libs(("CDN libs<br/>optional deps"))
end

subgraph group_distribution["Plugin surface"]
  node_plugin_json["Plugin config<br/>plugin manifest<br/>[plugin.json]"]
  node_marketplace_json["Marketplace<br/>distribution manifest<br/>[marketplace.json]"]
end

subgraph group_instruction["Visualization skill"]
  node_skill_md["Visualize skill<br/>behavior spec<br/>[SKILL.md]"]
  node_design_system["Design system<br/>reference guide<br/>[design-system.md]"]
  node_css_techniques["CSS patterns<br/>reference guide<br/>[css-techniques.md]"]
  node_skeleton_ref["Layout skeletons<br/>reference guide<br/>[skeleton.md]"]
  node_menu_ref["Menu behavior<br/>reference guide<br/>[menu.md]"]
  node_animations_ref["Animations<br/>reference guide<br/>[animations.md]"]
  node_types_ref["Data types<br/>reference guide<br/>[types.md]"]
  node_libraries_ref["Libraries<br/>reference guide<br/>[libraries.md]"]
end

subgraph group_outputs["Example outputs"]
  node_examples_html["Examples<br/>output gallery"]
end

subgraph group_evaluation["Evaluation loop"]
  node_eval_pipeline["Eval pipeline<br/>scoring harness<br/>[run.js]"]
  node_eval_checks["Rule checks<br/>quality checks"]
  node_vision_eval["Vision eval<br/>visual scoring<br/>[vision-eval.js]"]
  node_eval_rounds[("Rounds archive<br/>iteration history")]
  node_eval_archive[("Archive<br/>historical results")]
end

subgraph group_docs["Docs and planning"]
  node_readme["README<br/>repo overview<br/>[README.md]"]
  node_claude_md["CLAUDE guide<br/>ops guide<br/>[CLAUDE.md]"]
  node_plans["Plans<br/>roadmap docs"]
end

node_user_prompt -->|"requests"| node_claude_code
node_plugin_json -->|"installs"| node_claude_code
node_marketplace_json -->|"publishes"| node_plugin_json
node_claude_code -->|"applies"| node_skill_md
node_skill_md -->|"draws from"| node_design_system
node_skill_md -->|"draws from"| node_css_techniques
node_skill_md -->|"draws from"| node_skeleton_ref
node_skill_md -->|"draws from"| node_menu_ref
node_skill_md -->|"draws from"| node_animations_ref
node_skill_md -->|"draws from"| node_types_ref
node_skill_md -->|"draws from"| node_libraries_ref
node_claude_code -->|"models output on"| node_examples_html
node_claude_code -.->|"may use"| node_cdn_libs
node_claude_code -->|"produces"| node_browser
node_eval_pipeline -->|"runs"| node_eval_checks
node_eval_pipeline -->|"runs"| node_vision_eval
node_eval_pipeline -->|"records"| node_eval_rounds
node_eval_pipeline -->|"archives"| node_eval_archive
node_eval_rounds -.->|"feeds back"| node_skill_md
node_eval_rounds -.->|"feeds back"| node_design_system
node_readme -->|"orients"| node_claude_md
node_claude_md -->|"guides"| node_plans
node_eval_archive -.->|"informs"| node_plans

click node_plugin_json "https://github.com/careerhackeralex/visualize/blob/main/.claude-plugin/plugin.json"
click node_marketplace_json "https://github.com/careerhackeralex/visualize/blob/main/.claude-plugin/marketplace.json"
click node_skill_md "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/SKILL.md"
click node_design_system "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/design-system.md"
click node_css_techniques "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/css-techniques.md"
click node_skeleton_ref "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/skeleton.md"
click node_menu_ref "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/menu.md"
click node_animations_ref "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/animations.md"
click node_types_ref "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/types.md"
click node_libraries_ref "https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/libraries.md"
click node_examples_html "https://github.com/careerhackeralex/visualize/tree/main/examples"
click node_eval_pipeline "https://github.com/careerhackeralex/visualize/blob/main/eval/pipeline/run.js"
click node_eval_checks "https://github.com/careerhackeralex/visualize/tree/main/eval/pipeline/checks"
click node_vision_eval "https://github.com/careerhackeralex/visualize/blob/main/eval/pipeline/vision-eval.js"
click node_eval_rounds "https://github.com/careerhackeralex/visualize/tree/main/eval/rounds"
click node_eval_archive "https://github.com/careerhackeralex/visualize/tree/main/eval/archive"
click node_readme "https://github.com/careerhackeralex/visualize/blob/main/README.md"
click node_claude_md "https://github.com/careerhackeralex/visualize/blob/main/CLAUDE.md"
click node_plans "https://github.com/careerhackeralex/visualize/tree/main/docs/plans"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user_prompt,node_claude_code,node_browser,node_cdn_libs toneBlue
class node_plugin_json,node_marketplace_json toneAmber
class node_skill_md,node_design_system,node_css_techniques,node_skeleton_ref,node_menu_ref,node_animations_ref,node_types_ref,node_libraries_ref toneMint
class node_examples_html toneRose
class node_eval_pipeline,node_eval_checks,node_vision_eval,node_eval_rounds,node_eval_archive toneIndigo
class node_readme,node_claude_md,node_plans toneTeal
```

## Components

### External runtime

User, Claude Code, browser, and optional CDN libraries that surround the repo artifacts

- **User prompt**: external input · Request that Claude Code turns into a visualization artifact
- **Claude Code**: agent runtime · Interprets the plugin and skill instructions to generate the artifact
- **Browser**: render runtime · Renders the generated standalone HTML visualization
- **CDN libs**: optional deps · Optional external libraries loaded by generated HTML when needed

### Plugin surface

Installable Claude Code plugin boundary

- [Plugin config](https://github.com/careerhackeralex/visualize/blob/main/.claude-plugin/plugin.json): plugin manifest · Claude Code plugin metadata and install surface · `.claude-plugin/plugin.json`
- [Marketplace](https://github.com/careerhackeralex/visualize/blob/main/.claude-plugin/marketplace.json): distribution manifest · Discovery and update metadata for the plugin · `.claude-plugin/marketplace.json`

### Visualization skill

Core instruction set and reusable guidance for generating single-file HTML visualizations

- [Visualize skill](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/SKILL.md): behavior spec · Primary control document for generating single-file HTML visualizations · `skills/visualize/SKILL.md`
- [Design system](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/design-system.md): reference guide · Typography, color, layout, and visual consistency guidance · `skills/visualize/references/design-system.md`
- [CSS patterns](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/css-techniques.md): reference guide · Reusable CSS techniques and implementation patterns · `skills/visualize/references/css-techniques.md`
- [Layout skeletons](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/skeleton.md): reference guide · Structural composition patterns for common visualization layouts · `skills/visualize/references/skeleton.md`
- [Menu behavior](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/menu.md): reference guide · Navigation and interaction guidance for menus and controls · `skills/visualize/references/menu.md`
- [Animations](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/animations.md): reference guide · Motion and transition guidance for visual polish · `skills/visualize/references/animations.md`
- [Data types](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/types.md): reference guide · Structured content and data-shape guidance for outputs · `skills/visualize/references/types.md`
- [Libraries](https://github.com/careerhackeralex/visualize/blob/main/skills/visualize/references/libraries.md): reference guide · When and how to use optional visualization libraries · `skills/visualize/references/libraries.md`

### Example outputs

Representative finished artifacts used as output contracts

- [Examples](https://github.com/careerhackeralex/visualize/tree/main/examples): output gallery · Canonical finished HTML artifacts spanning dashboards, posters, decks, and infographics · `examples`

### Evaluation loop

Automated scoring, screenshots, archives, and iterative improvement history

- [Eval pipeline](https://github.com/careerhackeralex/visualize/blob/main/eval/pipeline/run.js): scoring harness · Executable orchestration for detection, checks, and vision-based evaluation · `eval/pipeline/run.js`
- [Rule checks](https://github.com/careerhackeralex/visualize/tree/main/eval/pipeline/checks): quality checks · Accessibility, charts, layout, menu, technical, theme, and typography checks · `eval/pipeline/checks`
- [Vision eval](https://github.com/careerhackeralex/visualize/blob/main/eval/pipeline/vision-eval.js): visual scoring · Screenshot-based assessment of generated artifacts · `eval/pipeline/vision-eval.js`
- [Rounds archive](https://github.com/careerhackeralex/visualize/tree/main/eval/rounds): iteration history · Round-by-round analyses, scores, personas, and research artifacts · `eval/rounds`
- [Archive](https://github.com/careerhackeralex/visualize/tree/main/eval/archive): historical results · Older rounds, screenshots, and raw evaluation records · `eval/archive`

### Docs and planning

Operational docs and roadmap materials

- [README](https://github.com/careerhackeralex/visualize/blob/main/README.md): repo overview · Top-level repository description and usage context · `README.md`
- [CLAUDE guide](https://github.com/careerhackeralex/visualize/blob/main/CLAUDE.md): ops guide · Operational guidance for working with the repository in Claude Code · `CLAUDE.md`
- [Plans](https://github.com/careerhackeralex/visualize/tree/main/docs/plans): roadmap docs · Evaluation rebuild design and implementation plans · `docs/plans`

## Connections

- User prompt → Claude Code: requests · A user asks for a visualization
- Plugin config → Claude Code: installs · Plugin manifest makes the skill discoverable in Claude Code
- Marketplace → Plugin config: publishes · Marketplace metadata points to the installable plugin
- Claude Code → Visualize skill: applies · Claude Code follows the main visualization skill
- Visualize skill → Design system: draws from · Core behavior references the design system guidance
- Visualize skill → CSS patterns: draws from · CSS implementation guidance shapes the output
- Visualize skill → Layout skeletons: draws from · Layout composition guidance shapes the structure
- Visualize skill → Menu behavior: draws from · Interaction guidance constrains menus and controls
- Visualize skill → Animations: draws from · Motion guidance informs visual polish
- Visualize skill → Data types: draws from · Data-shape guidance informs content structure
- Visualize skill → Libraries: draws from · Optional library policy is defined here
- Claude Code → Examples: models output on · Examples act as canonical finished artifacts
- Claude Code → CDN libs: may use · Generated HTML can load optional external libraries
- Claude Code → Browser: produces · The intended artifact is a self-contained HTML file rendered in a browser
- Eval pipeline → Rule checks: runs · The harness executes rule-based checks
- Eval pipeline → Vision eval: runs · The harness also performs screenshot and vision scoring
- Eval pipeline → Rounds archive: records · Scores and analyses are stored by round
- Eval pipeline → Archive: archives · Older results and screenshots are retained historically
- Rounds archive → Visualize skill: feeds back · Round analyses inform skill revisions
- Rounds archive → Design system: feeds back · Evaluation findings refine the reference guidance
- README → CLAUDE guide: orients · Top-level docs provide usage and operational context
- CLAUDE guide → Plans: guides · Planning docs describe the rebuild and quality roadmap
- Archive → Plans: informs · Historical failures and fixes shape future work
