# hellosverre/claude-skins architecture

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

- Interactive diagram: https://gitdiagram.com/hellosverre/claude-skins
- Repository: https://github.com/hellosverre/claude-skins

## Overview

Claude Skins is a Claude Code plugin that redraws tool activity and assistant output with selectable skins across desktop and terminal surfaces. The principal workflow is: Claude Code events and replies enter the registration hooks, settings and the active skin determine rendering choices, and row/card renderers produce the displayed result. Separate branches cover skin selection and design, code and shell output, Markdown, charts and math, plus usage meters and release notifications. Source excerpts show some rendering calls and theme wiring; other capability links are documented in the README, and unsampled implementation details are not inferred.

Main entry points: [`hooks/rows.tsx`](https://github.com/hellosverre/claude-skins/blob/main/hooks/rows.tsx) (Turn rows), [`hooks/register.tsx`](https://github.com/hellosverre/claude-skins/blob/main/hooks/register.tsx) (Event hooks), [`hooks/designer.ts`](https://github.com/hellosverre/claude-skins/blob/main/hooks/designer.ts) (Skin designer), [`hooks/chart-art.ts`](https://github.com/hellosverre/claude-skins/blob/main/hooks/chart-art.ts) (Chart rendering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["Plugin integration"]
  node_register["Event hooks<br/>[register.tsx]"]
  node_rows["Turn rows<br/>[rows.tsx]"]
  node_toolrows["Tool details<br/>[detail-rows.tsx]"]
end

subgraph group_appearance["Skins and settings"]
  node_skin["Skin model<br/>[skin.ts]"]
  node_themes["Built-in themes<br/>[index.ts]"]
  node_settings["Settings UI<br/>[settings.tsx]"]
  node_designer["Skin designer<br/>[designer.ts]"]
  node_custom["Custom skins<br/>[custom.ts]"]
end

subgraph group_rendering["Reply rendering"]
  node_markdown["Markdown parsing<br/>[markdown.ts]"]
  node_code["Code highlighting<br/>[highlight.ts]"]
  node_shell["Shell output<br/>[shell.ts]"]
  node_diff["Diff cards<br/>[svg-diff.ts]"]
end

subgraph group_visuals["Cards and charts"]
  node_math["Math rendering<br/>[math.ts]"]
  node_mermaid["Mermaid parsing<br/>[mermaid.ts]"]
  node_mermaidart["Terminal diagrams<br/>[mermaid-art.ts]"]
  node_chart["Chart rendering<br/>[chart-art.ts]"]
  node_svgkit["Card primitives<br/>[svg-kit.ts]"]
  node_svgtable["Table cards<br/>[svg-table.ts]"]
end

subgraph group_utilities["Turn utilities"]
  node_usage["Usage band<br/>[svg-usage.ts]"]
  node_commands["Skin commands<br/>[command.ts]"]
  node_tools["Design tool<br/>[tools.ts]"]
  node_updates["Release checks<br/>[updates.ts]"]
end

node_claude(("Claude Code"))
node_user(("User"))

node_claude -->|"dispatches events"| node_register
node_register -->|"renders rows"| node_rows
node_register -->|"resolves active"| node_skin
node_themes -->|"defines themes"| node_skin
node_user -->|"chooses options"| node_commands
node_commands -.->|"configures plugin"| node_register
node_user -->|"adjusts appearance"| node_settings
node_user -->|"requests design"| node_designer
node_designer -.->|"creates skin"| node_custom
node_register -.->|"renders tool results"| node_toolrows
node_rows -->|"splits reply"| node_markdown
node_rows -.->|"highlights code"| node_code
node_rows -.->|"draws shell output"| node_shell
node_rows -.->|"draws diffs"| node_diff
node_rows -->|"parses and draws"| node_math
node_rows -->|"parses diagrams"| node_mermaid
node_rows -->|"draws terminal charts"| node_mermaidart
node_rows -->|"draws charts"| node_chart
node_rows -.->|"draws table cards"| node_svgtable
node_chart -.->|"uses card primitives"| node_svgkit
node_register -->|"renders usage band"| node_usage
node_register -->|"checks releases"| node_updates
node_tools -.->|"offers design tool"| node_designer

click node_register "https://github.com/hellosverre/claude-skins/blob/main/hooks/register.tsx"
click node_rows "https://github.com/hellosverre/claude-skins/blob/main/hooks/rows.tsx"
click node_toolrows "https://github.com/hellosverre/claude-skins/blob/main/hooks/detail-rows.tsx"
click node_skin "https://github.com/hellosverre/claude-skins/blob/main/hooks/skin.ts"
click node_themes "https://github.com/hellosverre/claude-skins/blob/main/hooks/themes/index.ts"
click node_settings "https://github.com/hellosverre/claude-skins/blob/main/hooks/settings.tsx"
click node_designer "https://github.com/hellosverre/claude-skins/blob/main/hooks/designer.ts"
click node_custom "https://github.com/hellosverre/claude-skins/blob/main/hooks/custom.ts"
click node_markdown "https://github.com/hellosverre/claude-skins/blob/main/hooks/markdown.ts"
click node_code "https://github.com/hellosverre/claude-skins/blob/main/hooks/highlight.ts"
click node_shell "https://github.com/hellosverre/claude-skins/blob/main/hooks/shell.ts"
click node_diff "https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-diff.ts"
click node_math "https://github.com/hellosverre/claude-skins/blob/main/hooks/math.ts"
click node_mermaid "https://github.com/hellosverre/claude-skins/blob/main/hooks/mermaid.ts"
click node_mermaidart "https://github.com/hellosverre/claude-skins/blob/main/hooks/mermaid-art.ts"
click node_chart "https://github.com/hellosverre/claude-skins/blob/main/hooks/chart-art.ts"
click node_svgkit "https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-kit.ts"
click node_svgtable "https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-table.ts"
click node_usage "https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-usage.ts"
click node_commands "https://github.com/hellosverre/claude-skins/blob/main/hooks/command.ts"
click node_tools "https://github.com/hellosverre/claude-skins/blob/main/hooks/tools.ts"
click node_updates "https://github.com/hellosverre/claude-skins/blob/main/hooks/updates.ts"

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_register,node_rows,node_toolrows,node_user toneBlue
class node_skin,node_themes,node_settings,node_designer,node_custom toneAmber
class node_markdown,node_code,node_shell,node_diff toneMint
class node_math,node_mermaid,node_mermaidart,node_chart,node_svgkit,node_svgtable toneRose
class node_usage,node_commands,node_tools,node_updates,node_claude toneIndigo
```

## Components

### Plugin integration

- [Event hooks](https://github.com/hellosverre/claude-skins/blob/main/hooks/register.tsx): `hooks/register.tsx`
- [Turn rows](https://github.com/hellosverre/claude-skins/blob/main/hooks/rows.tsx): `hooks/rows.tsx`
- [Tool details](https://github.com/hellosverre/claude-skins/blob/main/hooks/detail-rows.tsx): `hooks/detail-rows.tsx`

### Skins and settings

- [Skin model](https://github.com/hellosverre/claude-skins/blob/main/hooks/skin.ts): `hooks/skin.ts`
- [Built-in themes](https://github.com/hellosverre/claude-skins/blob/main/hooks/themes/index.ts): `hooks/themes/index.ts`
- [Settings UI](https://github.com/hellosverre/claude-skins/blob/main/hooks/settings.tsx): `hooks/settings.tsx`
- [Skin designer](https://github.com/hellosverre/claude-skins/blob/main/hooks/designer.ts): `hooks/designer.ts`
- [Custom skins](https://github.com/hellosverre/claude-skins/blob/main/hooks/custom.ts): `hooks/custom.ts`

### Reply rendering

- [Markdown parsing](https://github.com/hellosverre/claude-skins/blob/main/hooks/markdown.ts): `hooks/markdown.ts`
- [Code highlighting](https://github.com/hellosverre/claude-skins/blob/main/hooks/highlight.ts): `hooks/highlight.ts`
- [Shell output](https://github.com/hellosverre/claude-skins/blob/main/hooks/shell.ts): `hooks/shell.ts`
- [Diff cards](https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-diff.ts): `hooks/svg-diff.ts`

### Cards and charts

- [Math rendering](https://github.com/hellosverre/claude-skins/blob/main/hooks/math.ts): `hooks/math.ts`
- [Mermaid parsing](https://github.com/hellosverre/claude-skins/blob/main/hooks/mermaid.ts): `hooks/mermaid.ts`
- [Terminal diagrams](https://github.com/hellosverre/claude-skins/blob/main/hooks/mermaid-art.ts): `hooks/mermaid-art.ts`
- [Chart rendering](https://github.com/hellosverre/claude-skins/blob/main/hooks/chart-art.ts): `hooks/chart-art.ts`
- [Card primitives](https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-kit.ts): `hooks/svg-kit.ts`
- [Table cards](https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-table.ts): `hooks/svg-table.ts`

### Turn utilities

- [Usage band](https://github.com/hellosverre/claude-skins/blob/main/hooks/svg-usage.ts): `hooks/svg-usage.ts`
- [Skin commands](https://github.com/hellosverre/claude-skins/blob/main/hooks/command.ts): `hooks/command.ts`
- [Design tool](https://github.com/hellosverre/claude-skins/blob/main/hooks/tools.ts): `hooks/tools.ts`
- [Release checks](https://github.com/hellosverre/claude-skins/blob/main/hooks/updates.ts): `hooks/updates.ts`

### Other components

- **Claude Code**
- **User**

## Connections

- Claude Code → Event hooks: dispatches events
- Event hooks → Turn rows: renders rows (evidence: `hooks/register.tsx`)
- Event hooks → Skin model: resolves active (evidence: `hooks/register.tsx`)
- Built-in themes → Skin model: defines themes (evidence: `hooks/themes/index.ts`)
- User → Skin commands: chooses options
- Skin commands → Event hooks: configures plugin (evidence: `hooks/register.tsx`)
- User → Settings UI: adjusts appearance
- User → Skin designer: requests design
- Skin designer → Custom skins: creates skin
- Event hooks → Tool details: renders tool results (evidence: `hooks/register.tsx`)
- Turn rows → Markdown parsing: splits reply (evidence: `hooks/rows.tsx`)
- Turn rows → Code highlighting: highlights code (evidence: `hooks/rows.tsx`)
- Turn rows → Shell output: draws shell output
- Turn rows → Diff cards: draws diffs (evidence: `hooks/rows.tsx`)
- Turn rows → Math rendering: parses and draws (evidence: `hooks/rows.tsx`)
- Turn rows → Mermaid parsing: parses diagrams (evidence: `hooks/rows.tsx`)
- Turn rows → Terminal diagrams: draws terminal charts (evidence: `hooks/rows.tsx`)
- Turn rows → Chart rendering: draws charts (evidence: `hooks/rows.tsx`)
- Turn rows → Table cards: draws table cards (evidence: `hooks/rows.tsx`)
- Chart rendering → Card primitives: uses card primitives
- Event hooks → Usage band: renders usage band (evidence: `hooks/register.tsx`)
- Event hooks → Release checks: checks releases (evidence: `hooks/register.tsx`)
- Design tool → Skin designer: offers design tool
