How hellosverre/claude-skins works
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: rows.tsx Turn rows · register.tsx Event hooks · designer.ts Skin designer · chart-art.ts Chart rendering
Components 24
Plugin integration
- Event hooks
hooks/register.tsx - Turn rows
hooks/rows.tsx - Tool details
hooks/detail-rows.tsx
Skins and settings
- Skin model
hooks/skin.ts - Built-in themes
hooks/themes/index.ts - Settings UI
hooks/settings.tsx - Skin designer
hooks/designer.ts - Custom skins
hooks/custom.ts
Reply rendering
- Markdown parsing
hooks/markdown.ts - Code highlighting
hooks/highlight.ts - Shell output
hooks/shell.ts - Diff cards
hooks/svg-diff.ts
Cards and charts
- Math rendering
hooks/math.ts - Mermaid parsing
hooks/mermaid.ts - Terminal diagrams
hooks/mermaid-art.ts - Chart rendering
hooks/chart-art.ts - Card primitives
hooks/svg-kit.ts - Table cards
hooks/svg-table.ts
Turn utilities
- Usage band
hooks/svg-usage.ts - Skin commands
hooks/command.ts - Design tool
hooks/tools.ts - Release checks
hooks/updates.ts
Other components
- Claude Code
- User
Connections 23
- Claude Code → Event hooks: dispatches events
- Event hooks → Turn rows: renders rows
hooks/register.tsx - Event hooks → Skin model: resolves active
hooks/register.tsx - Built-in themes → Skin model: defines themes
hooks/themes/index.ts - User → Skin commands: chooses options
- Skin commands → Event hooks: configures plugin
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
hooks/register.tsx - Turn rows → Markdown parsing: splits reply
hooks/rows.tsx - Turn rows → Code highlighting: highlights code
hooks/rows.tsx - Turn rows → Shell output: draws shell output
- Turn rows → Diff cards: draws diffs
hooks/rows.tsx - Turn rows → Math rendering: parses and draws
hooks/rows.tsx - Turn rows → Mermaid parsing: parses diagrams
hooks/rows.tsx - Turn rows → Terminal diagrams: draws terminal charts
hooks/rows.tsx - Turn rows → Chart rendering: draws charts
hooks/rows.tsx - Turn rows → Table cards: draws table cards
hooks/rows.tsx - Chart rendering → Card primitives: uses card primitives
- Event hooks → Usage band: renders usage band
hooks/register.tsx - Event hooks → Release checks: checks releases
hooks/register.tsx - Design tool → Skin designer: offers design tool