modscode JA

modscode / Gallery / skins

skins

Skins for Claude Code's transcript: themed tool rows, reply gutters and spinner words. /skin swaps them live.

Code you can checkTerminal + desktopPaneBandToastBoxButtonInputMarkdownSelectSvgText

What it does

  • Draws a pane, a band above the prompt, toasts
  • Adds /skin
  • Watches tool calls and can refuse them
  • Hooks classic.SessionStart, config.set, session.append, session.measure and 3 more
  • Keeps its own state between turns

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • Has a desktop-specific branch

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

register.tsx
import type { Register } from 'claude-code'

// Drawn like skins by hellosverre (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/hellosverre-skins/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Skins" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Svg, Button } = $.ui.resolve(e)
    const source = '…'
    const kind = '…'
    const line = '…'
    const spans = '…'
    const glyph = '…'
    const branch = '…'
    const KIND_LABEL = '…'
    const count = '…'
    const KIND_LABEL2 = '…'
    const KIND_LABEL3 = '…'
    const cell = '…'
    const cell2 = '…'
    const cell3 = '…'
    const cell4 = '…'
    const cell5 = '…'
    const cell6 = '…'
    const cell7 = '…'
    const cell8 = '…'
    const cell9 = '…'
    const cell10 = '…'
    const cell11 = '…'
    const cell12 = '…'
    const cell13 = '…'
    const cell14 = '…'
    const cell15 = '…'
    const cell16 = '…'
    const cell17 = '…'
    const cell18 = '…'
    const cell19 = '…'
    const cell20 = '…'
    const cell21 = '…'
    const cell22 = '…'
    const cell23 = '…'
    const cell24 = '…'
    const cell25 = '…'
    const cell26 = '…'
    const cell27 = '…'
    const cell28 = '…'
    const cell29 = '…'
    const cell30 = '…'
    const cell31 = '…'
    const cell32 = '…'
    const cell33 = '…'
    const cell34 = '…'
    const cell35 = '…'
    const cell36 = '…'
    const frames = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const formatDuration = '…'
    const bar = '…'
    const percent = '…'
    const label = '…'
    const bar2 = '…'
    const bar3 = '…'
    const context = '…'
    const prompt = '…'
    const header = '…'
    const done = '…'
    const word = '…'
    const facts = '…'
    const added = '…'
    const removed = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Your prompt
          </Text>
          <Box flexDirection="column" alignItems="flex-start" marginY={1}>
            <Box borderStyle="round" paddingX={1} flexShrink={1}>
              <Text>
                add rate limiting to the hub api
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Tool rows: finished, running, failed
          </Text>
          <Box flexDirection="row" columnGap={1} alignItems="center">
            <Svg source={`${source}`} alt={`${kind}`} width={16} height={16} />
            <Text wrap="truncate-end">
              {line}
              {"   "}
              {spans}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Folded group of reads and searches
          </Text>
          <Text wrap="truncate-end">
            <Text>
              {`${glyph}`}
              <Text>
                {`${branch} `}
              </Text>
            </Text>
            <Text>
              {" · "}
            </Text>
            <Text>
              {KIND_LABEL}
            </Text>
            <Text>
              {` ${count}`}
            </Text>
            <Text>
              {" · "}
            </Text>
            <Text>
              {KIND_LABEL2}
            </Text>
            <Text>
              {` ${count}`}
            </Text>
            <Text>
              {" · "}
            </Text>
            <Text>
              {KIND_LABEL3}
            </Text>
            <Text>
              {` ${count}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Edit diff card
          </Text>
          <Text>
            Desktop only; the terminal keeps Claude Code's diff.
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Shell output card
          </Text>
          <Text>
            Desktop only.
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Code block card
          </Text>
          <Text>
            Desktop only; the terminal keeps Claude Code's markdown.
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Table
          </Text>
          <Box flexDirection="column">
            <Box flexDirection="column" marginY={1} borderStyle="round">
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell2}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell3}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell4}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell5}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell6}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell7}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell8}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell9}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell10}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell11}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell12}
                  </Text>
                </Box>
              </Box>
              <Box position="absolute" right={1}>
                <Button label=" Copy " plain dimColor />
              </Box>
            </Box>
            <Box flexDirection="column" marginY={1} borderStyle="round">
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell13}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell14}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell15}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell16}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell17}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell18}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell19}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell20}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell21}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell22}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell23}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell24}
                  </Text>
                </Box>
              </Box>
              <Box position="absolute" right={1}>
                <Button label=" Copy " plain dimColor />
              </Box>
            </Box>
            <Box flexDirection="column" marginY={1} borderStyle="round">
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell25}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell26}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell27}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell28}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell29}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell30}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell31}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell32}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell33}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="row">
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell34}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell35}
                  </Text>
                </Box>
                <Box paddingX={1}>
                  <Text wrap="truncate-end">
                    {cell36}
                  </Text>
                </Box>
              </Box>
              <Box position="absolute" right={1}>
                <Button label=" Copy " plain dimColor />
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Spinner
          </Text>
          <Text>
            <Text>
              {`${frames} `}
            </Text>
            <Text>
              {text}
            </Text>
            <Text>
              {text2}
            </Text>
            <Text>
              {text3}
            </Text>
            <Text>
              {`…  ${formatDuration}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Band above the prompt: normal, then nudging to compact
          </Text>
          <Box flexDirection="row" alignItems="center" columnGap={2} paddingRight={5}>
            <Box flexDirection="row" columnGap={3}>
              <Text>
                <Text>
                  {bar}
                </Text>
                {` ${percent}% ${label}`}
              </Text>
              <Text>
                <Text>
                  {bar2}
                </Text>
                {` ${percent}% ${label}`}
              </Text>
              <Text>
                <Text>
                  {bar3}
                </Text>
                {` ${percent}% ${label}`}
              </Text>
            </Box>
            <Box flexGrow={1} />
            <Text>
              {`Context is ${context}% full`}
            </Text>
            <Button label="Compact now" hotkey="0" plain />
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Band above a question
          </Text>
          <Text>
            <Text>
              {`${prompt} `}
            </Text>
            <Text>
              {`${header}`}
            </Text>
            <Text>
              {`${header}`}
            </Text>
            <Text>
              {`${header}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold>
            0  Turn footer (terminal)
          </Text>
          <Text>
            <Text>
              {`${done} `}
            </Text>
            {`${word} in ${formatDuration}`}
            {`  ·  ${facts}`}
            {"  ·  "}
            <Text>
              {`+${added}`}
            </Text>
            <Text>
              {` −${removed}`}
            </Text>
          </Text>
        </Box>
      </Box>
    )
  })

  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const bar = '…'
    const percent = '…'
    const label = '…'
    const bar2 = '…'
    const bar3 = '…'
    const context = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" alignItems="center" columnGap={2} paddingRight={5}>
          <Box flexDirection="row" columnGap={3}>
            <Text>
              <Text>
                {bar}
              </Text>
              {` ${percent}% ${label}`}
            </Text>
            <Text>
              <Text>
                {bar2}
              </Text>
              {` ${percent}% ${label}`}
            </Text>
            <Text>
              <Text>
                {bar3}
              </Text>
              {` ${percent}% ${label}`}
            </Text>
          </Box>
          <Box flexGrow={1} />
          <Text>
            {`Context is ${context}% full`}
          </Text>
          <Button label="Compact now" hotkey="0" plain />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    await $.ui.toast(`Copied`)
    await $.ui.toast(`Copied`)
    return next(e)
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

hooks/register.tsx lines 328–337 · Pane
  on('ui.render', { component: 'Pane', requestId: GALLERY }, async ($, e) => {
    const active = await activeSkin($)
    const ui = $.ui.resolve(e)

    if (active === null) {
      return <ui.Text>The gallery shows a skin. Pick one with /skin first.</ui.Text>
    }

    return galleryPane(lookOf(ui, active, e.surface), e.props.bodyColumns)
  })
hooks/gallery.tsx lines 44–103 · Pane
export function galleryPane(look: Look, columns: number) {
  const { Box, Text } = look.ui
  const { palette } = look.skin
  const svg = look.svg
  let number = 0
  const section = (title: string, ...items: RenderElement[]) => {
    number += 1

    return (
      <Box flexDirection="column" marginBottom={1}>
        <Text color={palette.muted} bold>{`${number}  ${title}`}</Text>
        {items}
      </Box>
    )
  }
  const width = Math.max(40, columns - 4)

  return (
    <Box flexDirection="column">
      {section('Your prompt', promptRow(look, 'add rate limiting to the hub api'))}
      {section(
        'Tool rows: finished, running, failed',
        toolRow(look, { tool: 'Bash', input: {}, ...done }, 'run', 'pnpm test --filter hub', { ms: 2140 }),
        toolRow(look, { tool: 'Read', input: {}, ...done, isRunning: true }, 'read', 'docs/protocols.md', {}),
        toolRow(look, { tool: 'Edit', input: {}, ...done, isErrored: true }, 'write', 'apps/hub/src/server.ts', {}),
      )}
      {section('Folded group of reads and searches', groupRow(look, [{ tool: 'Read', input: {}, ...done }, { tool: 'Read', input: {}, ...done }, { tool: 'Grep', input: {}, ...done }]))}
      {svg === undefined
        ? section('Edit diff card', <Text color={palette.muted}>Desktop only; the terminal keeps Claude Code's diff.</Text>)
        : section('Edit diff card', diffCard(look, svg, DIFF, 'apps/hub/src/server.ts', width))}
      {svg === undefined
        ? section('Shell output card', <Text color={palette.muted}>Desktop only.</Text>)
        : section(
            'Shell output card: ok, failed',
            terminalCard(look, svg, { stdout: 'Test Files  12 passed (12)\n     Tests  148 passed (148)', stderr: '', interrupted: false }, false, width),
            terminalCard(look, svg, { stdout: '', stderr: 'error TS2322: Type string is not assignable to number', interrupted: false }, true, width),
          )}
      {svg === undefined
        ? section('Code block card', <Text color={palette.muted}>Desktop only; the terminal keeps Claude Code's markdown.</Text>)
        : section('Code block card', codeCard(look, 'ts', CODE, svg, width))}
      {section('Table', replyRows(look, [TABLE], width, svg))}
      {svg === undefined
        ? section('Spinner', spinnerRow(look, look.skin.spinner[0] ?? 'Working', 3, 12_000))
        : section(
            'Spinner: thinking, tool running, writing, waiting',
            desktopSpinnerRow(look, svg, 'thinking', 'Thinking'),
            desktopSpinnerRow(look, svg, 'tool-use', 'Running pnpm test'),
            desktopSpinnerRow(look, svg, 'responding', 'Writing the reply'),
            desktopSpinnerRow(look, svg, 'requesting', 'Waiting for the model'),
          )}
      {section(
        'Band above the prompt: normal, then nudging to compact',
        usageBand(look, [{ label: 'context', percent: 42 }, { label: '5h', percent: 18 }], true, () => undefined),
        usageBand(look, [{ label: 'context', percent: 85 }, { label: '5h', percent: 61 }], true, () => undefined),
      )}
      {section('Band above a question', askBand(look, ['Approach', 'Store']))}
      {section('Turn footer (terminal)', footerRow(look, look.skin.done[0] ?? 'Done', 41_000, { tools: 6, added: 18, removed: 3 }))}
    </Box>
  )
}
hooks/rows.tsx lines 251–262 · Pane
export function promptRow(look: Look, text: string, images?: ReturnType<Ui['Text']>) {
  const { Box, Text } = look.ui

  return (
    <Box flexDirection="column" alignItems="flex-start" marginY={1}>
      <Box borderStyle="round" borderColor={look.skin.palette.muted} paddingX={1} flexShrink={1}>
        <Text color={look.skin.palette.fg}>{text}</Text>
      </Box>
      {images ?? ''}
    </Box>
  )
}
hooks/rows.tsx lines 175–201 · Pane
export function toolRow(look: Look, call: Call, kind: Kind, target: string, meta: Meta) {
  const { Text } = look.ui
  const { palette } = look.skin

  if (look.svg !== undefined) {
    const line = (
      <Text wrap="truncate-end">
        <Text color={palette[kind]} bold>
          {toolLabel(call.tool)}
        </Text>
        <Text color={call.isErrored ? palette.err : palette.muted}>{`  ${target}`}</Text>
      </Text>
    )

    return iconRow(look, look.svg, kind, [call], withMeta(look, line, meta))
  }

  const main = (
    <Text wrap="truncate-end">
      {node(look, [call])}
      <Text color={palette[kind]}>{toolLabel(call.tool)}</Text>
      <Text color={call.isErrored ? palette.err : palette.muted}>{`  ${target}`}</Text>
    </Text>
  )

  return stack(look, withMeta(look, main, meta))
}
hooks/rows.tsx lines 162–173 · Pane
function iconRow(look: Look, Svg: SvgElement, kind: Kind, calls: readonly Call[], line: ReturnType<Ui['Text']>) {
  const { Box } = look.ui
  const { color } = status(look, calls)
  const source = toolIcon(kind, color, calls.some(call => call.isRunning))

  return (
    <Box flexDirection="row" columnGap={1} alignItems="center">
      <Svg source={source} alt={kind} width={16} height={16} />
      {line}
    </Box>
  )
}
hooks/rows.tsx lines 117–145 · Pane
function withMeta(look: Look, main: ReturnType<Ui['Text']>, meta: Meta) {
  const { Box, Text } = look.ui
  const spans = metaSpans(look, meta)

  if (spans.length === 0) {
    return main
  }

  if (look.surface !== 'terminal') {
    return (
      <Text wrap="truncate-end">
        {main}
        {'   '}
        {spans}
      </Text>
    )
  }

  return (
    <Box flexDirection="row">
      <Box flexGrow={1} flexShrink={1}>
        {main}
      </Box>
      <Box flexShrink={0} paddingLeft={2}>
        <Text>{spans}</Text>
      </Box>
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 hellosverre

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

What its code calls

tool callsremembers

The design, read from code

Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.

What its code shows

Read from the source at commit 2ee5b6a3e7e7 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.

Decides the listing: code you can check
Entry readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.27 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches no network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT

This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen

Install it

Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add hellosverre/claude-skins
/plugin install skins@hellosverre-mods

This installs the marketplace's latest commit, which may not be the one read here (2ee5b6a3e7e7). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "hellosverre-skins" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs