modscode EN

modscode / 図鑑 / dev-dash

dev-dash

Developer dashboard pane: what needs you, every Claude session and subagent, usage limits, git and PRs

確かめやすいコードターミナル+デスクトップペインバンドトーストBoxButtonText

何をするか

  • 欄・プロンプトの上の帯・トーストを描く
  • /dash-summaries・/dash-refresh・/dash-band・/dash-alerts を足す
  • ツールの呼び出しを見張る
  • prompt.submit・session.compact・session.end・session.start ほか 4 個にフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • ネットワークに出ない
  • TypeScript で書かれている
  • デスクトップ専用の分岐がある
  • エラーを扱う

作り始めるためのコード

2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。

雛形(register.tsx)

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

// Drawn like dev-dash by Rahul Chauhan (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/ranarauff-dev-dash/
// 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: "Dev dashboard" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const label = '…'
    const total = '…'
    const plural = '…'
    const live = '…'
    const plural2 = '…'
    const money = '…'
    const kind = '…'
    const pct = '…'
    const kind2 = '…'
    const pct2 = '…'
    const kind3 = '…'
    const pct3 = '…'
    const name = '…'
    const buddyMood = '…'
    const ago = '…'
    const t = '…'
    const t2 = '…'
    const t3 = '…'
    const row = '…'
    const row2 = '…'
    const row3 = '…'
    const key = '…'
    const what = '…'
    const key2 = '…'
    const what2 = '…'
    const key3 = '…'
    const what3 = '…'
    const hotkey = '…'
    const title = '…'
    const summary = '…'
    const title2 = '…'
    const title3 = '…'
    const title4 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
          <Button label={`● ${label}`} variant="primary" autoFocus />
          <Button label={`● ${label}`} variant="primary" autoFocus />
          <Button label={`● ${label}`} variant="primary" autoFocus />
        </Box>
        <Box borderStyle="round" paddingX={1} flexDirection="column">
          <Box flexDirection="row" justifyContent="center">
            <Text bold>
              DEV-DASH
            </Text>
          </Box>
          <Box flexDirection="row" justifyContent="center" columnGap={1}>
            <Text color="yellow">
              ■ you
            </Text>
            <Text color="cyan">
              ■ sessions
            </Text>
            <Text color="magenta">
              ■ agents
            </Text>
            <Text color="green">
              ■ limits
            </Text>
            <Text color="yellow">
              ■ PRs
            </Text>
          </Box>
          <Box flexDirection="row" flexWrap="wrap">
            <Text bold>
              {`◆ ${total} needs you`}
            </Text>
            <Text dimColor>
              {" · "}
              {plural}
            </Text>
            <Text color="green">
              {" · "}
              {live}
              {" live"}
            </Text>
            <Text color="magenta">
              {" · "}
              {plural2}
            </Text>
            <Text dimColor>
              {" · "}
              {money}
            </Text>
          </Box>
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            <Text>
              {kind}
              {" "}
              ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
              {" "}
              {pct}
              %
            </Text>
            <Text>
              {kind2}
              {" "}
              ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
              {" "}
              {pct2}
              %
            </Text>
            <Text>
              {kind3}
              {" "}
              ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
              {" "}
              {pct3}
              %
            </Text>
          </Box>
          <Box flexDirection="row" columnGap={1}>
            <Box flexDirection="column">
              <Text bold color="red">
                {`♥ ${name}`}
              </Text>
              <Text dimColor wrap="truncate-end">
                {`${buddyMood} · `}
                {"synced "}
                {ago}
                {" ago"}
              </Text>
            </Box>
            <Box flexDirection="column">
              <Text>
                <Text>
                  {t}
                </Text>
                <Text>
                  {t2}
                </Text>
                <Text>
                  {t3}
                </Text>
                {" "}
              </Text>
              <Text bold color="red">
                {row}
                <Text color="red">
                  ●
                </Text>
              </Text>
              <Text bold color="red">
                {row2}
                <Text color="red">
                  ●
                </Text>
              </Text>
              <Text bold color="red">
                {row3}
                <Text color="red">
                  ●
                </Text>
              </Text>
            </Box>
          </Box>
        </Box>
        <Box borderStyle="round" borderColor="cyan" paddingX={1} flexDirection="column" marginTop={1}>
          <Text bold>
            Keys
          </Text>
          <Text wrap="truncate-end">
            <Text bold color="magenta">
              {key}
            </Text>
            {what}
          </Text>
          <Text wrap="truncate-end">
            <Text bold color="magenta">
              {key2}
            </Text>
            {what2}
          </Text>
          <Text wrap="truncate-end">
            <Text bold color="magenta">
              {key3}
            </Text>
            {what3}
          </Text>
          <Text dimColor wrap="truncate-end">
            A › marks a row; press it to see what you can do with that row.
          </Text>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row">
            <Button plain hotkey={`${hotkey}`} label="▾" />
            <Text bold>
              {" "}
              {title}
              {" "}
            </Text>
            <Box flexGrow={1} />
            <Text dimColor wrap="truncate-end">
              {summary}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" flexWrap="wrap" columnGap={1} />
            <Text dimColor wrap="truncate-end">
              /dash-watch pr|issue|run … · clear &lt;n|all&gt;
            </Text>
          </Box>
        </Box>
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box borderStyle="round" borderColor="gray" paddingX={1} flexDirection="column" />
        <Box flexDirection="column" marginTop={1} rowGap={1}>
          <Box paddingX={1} flexDirection="column">
            <Text bold>
              {title2}
            </Text>
          </Box>
          <Box paddingX={1} flexDirection="column">
            <Text bold>
              {title3}
            </Text>
          </Box>
          <Text dimColor>
            More widgets will land here. Spotify, when on, is read only while this tab is showing.
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Box paddingX={1} flexDirection="column">
            <Text bold>
              {title4}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            <Button label="refresh" />
            <Button label="alerts: on" />
            <Button label={`theme: ${label}`} />
            <Button label="hide help" />
            <Button label="close" />
          </Box>
          <Text dimColor wrap="truncate-end">
            ↑ ↓ move · Enter press · Esc back to the prompt
          </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 } = $.ui.resolve(e)
    const text = '…'
    const detail = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row">
          <Text>
            {text}
          </Text>
          <Text wrap="truncate-end">
            {" · "}
            {detail}
          </Text>
          <Text>
            {" "}
            {text2}
          </Text>
          <Text>
            {" "}
            {text3}
          </Text>
          <Text>
            {" "}
            {text4}
          </Text>
          <Text dimColor>
            {" /dash"}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const what = '…'
    await $.ui.toast(`Brought back what you snoozed or dismissed`)
    await $.ui.toast(`Copied the ${what}`)
    return next(e)
  })
}

Mod 自身のコード

Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。

plugins/dev-dash/hooks/render.tsx 200〜359 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const s = await read($, snap)
    applyTheme(TONE, s?.theme)
    applyLook(LOOK, s?.theme)
    const folded = (await read($, collapsed)) ?? []
    const opened2 = (await read($, expanded)) ?? []
    const tickN = (await read($, blink)) ?? 0
    const isPulse = Math.floor(tickN / 2) % 2 === 0 // one second on, one second off
    const samples = (await read($, activity)) ?? []
    const L = layoutFor(e.props.bodyColumns ?? (e.viewport ? e.viewport.columns - 2 : undefined))
    const { W, isNarrow } = L
    const now = Date.now()
    const muting: Muting = {
      snoozed: (await read($, snoozed)) ?? {},
      dismissed: (await read($, dismissed)) ?? [],
      now,
    }
    const opened = (await read($, openRow)) || ''
    const isHelpOn = (await read($, showHelp)) === true
    const storedTab = await read($, tabState)
    const tab = isTab(storedTab) ? storedTab : 'dashboard'

    // A card: the Flight Deck look. A rounded border in the section's colour; the heading is its first line.
    const Frame = (p: { tone?: string; children?: unknown }) => (
      <Box borderStyle={LOOK.border} borderColor={p.tone ?? TONE.mute} paddingX={1} flexDirection="column" width={W}>
        {p.children}
      </Box>
    )

    // A section heading: `▾ Title            meta`, and folded `▸ Title            summary`.
    // The plain Button with a hotkey is the fold control (pressable while the pane holds the keys).
    const Heading = (p: { id: DashSection; hotkey: string; title: string; tone?: string; summary: string }) => {
      const isOpen = !shut.includes(p.id)
      return (
        <Box flexDirection="row">
          <Button
            key={`fold-${p.id}`}
            plain
            hotkey={p.hotkey}
            label={isOpen ? '▾' : '▸'}
            onPress={() => (isFocus && FOCUS_FOLD.includes(p.id) ? update($, expanded, list => toggle(list, p.id)) : update($, collapsed, list => toggle(list, p.id)))}
          />
          <Text bold color={p.tone}> {LOOK.caps ? p.title.toUpperCase() : p.title} </Text>
          <Box flexGrow={1} />
          <Text dimColor wrap="truncate-end">{cut(p.summary, Math.max(8, W - p.title.length - 12))}</Text>
        </Box>
      )
    }

    // What the buttons under an opened row do. (The row's own press only opens or closes them.)
    const undo = async () => {
      await update($, snoozed, () => ({}))
      await update($, dismissed, () => [])
      return $.ui.toast('Brought back what you snoozed or dismissed')
    }
    const runAction = async (action: RowAction['id'], it: Item) => {
      await update($, openRow, () => '')
      if (action === 'copy') {
        const r = await $.ui.copy({ text: it.copy, surface: e.surface })
        return $.ui.toast(r.isCopied ? `Copied the ${it.what}` : 'Could not copy to the clipboard')
      }
      if (action === 'snooze') {
        await update($, snoozed, m => snoozeAdd(m ?? {}, it.id, Date.now()))
        return $.ui.toast('Snoozed for 15 minutes')
      }
      await update($, dismissed, d => dismissAdd(d ?? [], it.id))
      return $.ui.toast('Dismissed until it changes')
    }

    // A selectable row. Its marker is a stop for Tab and the arrow keys; Enter on it opens or closes the row's
    // actions, which are buttons right under it. The first marker takes the focus ring when the pane gets the keyboard.
    const Row = (p: { id: string; children?: unknown }) => {
      const it = itemById(items, p.id)
      const isOpen = p.id === opened
      return (
        <Box key={`row-${p.id}`} flexDirection="column">
          <Box flexDirection="row">
            <Button
              key={`pick-${p.id}`}
              plain
              dimColor
              autoFocus={p.id === items[0]?.id ? true : undefined}
              label={isOpen ? '▾' : '›'}
              onPress={() => update($, openRow, v => (v === p.id ? '' : p.id))}
            />
            <Text> </Text>
            <Box flexDirection="column" flexGrow={1}>{p.children}</Box>
          </Box>
          {isOpen && it && (
            <Box paddingLeft={2} flexDirection="row" flexWrap="wrap" columnGap={1}>
              {actionsFor(it).map(a => (
                <Button key={`act-${a.id}-${p.id}`} label={a.label} onPress={() => runAction(a.id, it)} />
              ))}
            </Box>
          )}
        </Box>
      )
    }

    if (!s) {
      return (
        <Box flexDirection="column">
          <Box borderStyle="round" borderColor={TONE.mute} paddingX={1} width={W}>
            <Text dimColor>Collecting… first sync takes a few seconds</Text>
          </Box>
        </Box>
      )
    }

    const att = attentionOf(s, muting)
    // Flight Deck focus: while something urgent needs you, the five big cards fold to one line each (open one with its
    // arrow). `shut` is what is folded right now: the focus fold for those five, the person's own folds for the rest.
    const isFocus = s.focusOn !== false && att.urgent > 0
    const shut: DashSection[] = [
      ...folded.filter(id => !(isFocus && FOCUS_FOLD.includes(id))),
      ...(isFocus ? FOCUS_FOLD.filter(id => !opened2.includes(id)) : []),
    ]
    const caps = { reviews: isNarrow ? 3 : 5, sessions: L.sessionRows, agents: isNarrow ? 4 : 8 }
    const items = itemsOf(s, att, shut, caps)
    const g = s.git
    const costs = s.sessions.map(r => r.costUsd).filter((c): c is number => c !== null)
    const cost = costs.length ? costs.reduce((a, b) => a + b, 0) : null
    const live = s.sessions.filter(r => r.state === 'running').length
    const headTone = att.urgent > 0 ? TONE.you : att.total > 0 ? TONE.info : TONE.ok
    const agents = s.agents ?? []
    const busyAgents = agents.filter(a => a.state === 'working' || a.state === 'quiet')
    const limits = s.limits ?? []
    // "claude beat": a line graph of how much effort Claude put in at each sync, flat along the bottom when idle.
    const beat = claudeBeat(samples, L.sparkCells, isNarrow ? 4 : 5)
    const tipAt = tipRow(samples, L.sparkCells, isNarrow ? 4 : 5)
    // A buddy (an animated character from a pack) can stand in for the claude beat: /dash-beat buddy <name>.
    // A sprite pack is drawn at the slot's size and the current time; on the terminal it is one Raster that a timer
    // repaints in place (smooth motion without redrawing the pane), elsewhere text runs that step with the pane.
    const buddy = s.beatStyle === 'buddy' ? getBuddy() : null
    const buddyMood = moodOf(att.urgent, live)
    const slot = { cols: L.sparkCells, rows: isNarrow ? 4 : 5 }
    const els = $.ui.resolve(e)
    const Raster = e.surface === 'terminal' && 'Raster' in els ? els.Raster : undefined
    const isRaster = buddy?.kind === 'sprite' && Raster !== undefined
    setStage(isRaster ? { mood: buddyMood, ...slot } : null)
    const buddyRows = buddy && !isRaster ? buddyRuns(buddy, buddyMood, now, tickN, slot.cols, slot.rows) : []
    const buddyHeight = buddy?.kind === 'cells' ? buddy.rows : slot.rows

    // ---- header card ------------------------------------------------------
    const header = (
      <Box borderStyle={LOOK.border} borderColor={headTone} paddingX={1} flexDirection="column" width={W}>
        <Box flexDirection="row" justifyContent="center">
          <Text bold>DEV-DASH</Text>
        </Box>
        <Box flexDirection="row" justifyContent="center" columnGap={1}>
          <Text color={TONE.you}>■ you</Text>
          <Text color={TONE.info}>■ sessions</Text>
          <Text color={TONE.accent}>■ agents</Text>
          <Text color={TONE.ok}>■ limits</Text>
          <Text color={TONE.warn}>■ PRs</Text>
        </Box>
        <Box flexDirection="row" flexWrap="wrap">
          <Text bold color={headTone}>{att.total > 0 ? `◆ ${att.total} need${att.total === 1 ? 's' : ''} you` : '✓ all clear'}</Text>
          <Text dimColor> · {plural(s.sessions.length, isNarrow ? 'sess' : 'session', isNarrow ? 'sess' : 'sessions')}</Text>
plugins/dev-dash/hooks/watch-view.tsx 37〜95 行 · ペイン
export function watchingSection(v: WatchView) {
  const { Box, Text, Heading, folded, watches, iconStyle, W, now, tone, fmt } = v
  if (watches.length === 0) return null
  const fired = watches.filter(w => w.firedAt > 0)
  // What has changed comes first, then the rest in the order they were added.
  const shown = [...watches].sort((a, b) => Number(b.firedAt > 0) - Number(a.firedAt > 0))
  const bw = boxWidth(W)
  const inner = Math.max(10, bw - 4)

  const card = (w: WatchRow) => {
    const isFired = w.firedAt > 0
    const border = isFired ? tone.warn : toneColor(w.tone, tone)
    const chips: WatchChip[] = w.chips ?? []
    return (
      <Box flexDirection="column" borderStyle={(v.border ?? 'round') as 'round'} borderColor={border} paddingX={1} width={bw}>
        <Box flexDirection="row">
          <Text bold>{iconFor(sourceOf(w.kind), iconStyle)} </Text>
          <Text bold>{watchName(w)}</Text>
          {isFired && <Text bold color={tone.warn}> ◆</Text>}
          <Text dimColor wrap="truncate-end"> · {short(w.repo)} · {w.checkedAt ? fmt.ago(now - w.checkedAt) : 'new'}</Text>
        </Box>
        <Text wrap="truncate-end">{fmt.cut(w.title || w.repo, inner)}</Text>
        {chips.length === 0 ? (
          <Text dimColor>waiting for the first look</Text>
        ) : (
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            {chips.map(c => (
              <Text color={toneColor(c.tone, tone)}>
                {c.icon}
                {c.text ? ` ${fmt.cut(c.text, 16)}` : ''}
              </Text>
            ))}
          </Box>
        )}
        {isFired && <Text color={tone.warn} wrap="truncate-end">◆ {fmt.cut(w.fired, inner - 8)} {fmt.ago(now - w.firedAt)}</Text>}
      </Box>
    )
  }

  return (
    <Box flexDirection="column">
      <Heading
        id="watching"
        hotkey="0"
        title={fired.length ? `Watching (${watches.length} · ${fired.length} fired)` : `Watching (${watches.length})`}
        tone={fired.length ? tone.warn : undefined}
        summary={fired.length ? fired.map(w => `${watchName(w)} ${w.fired}`).join(' · ') : `${watches.length} quiet`}
      />
      {!folded.includes('watching') && (
        <Box flexDirection="column">
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            {shown.map(card)}
          </Box>
          <Text dimColor wrap="truncate-end">/dash-watch pr|issue|run … · clear &lt;n|all&gt;</Text>
        </Box>
      )}
    </Box>
  )
}
plugins/dev-dash/hooks/tabs-view.tsx 97〜107 行 · ペイン
export function entertainmentView(v: TabView, np: NowPlaying | null, isSpotifyOn: boolean) {
  const { Box, Text } = v

  return (
    <Box flexDirection="column" marginTop={1} rowGap={1}>
      {nowPlayingCard(v, np, isSpotifyOn)}
      {stocksCard(v)}
      <Text dimColor>More widgets will land here. Spotify, when on, is read only while this tab is showing.</Text>
    </Box>
  )
}
plugins/dev-dash/hooks/tabs-view.tsx 34〜80 行 · ペイン
function nowPlayingCard(v: TabView, np: NowPlaying | null, isOn: boolean) {
  const { Box, Text, Button, tone, fmt, W, now } = v
  // Off by default: nothing is read until the person turns it on, with this button or /dash-spotify on.
  if (!isOn) {
    return Card(v, {
      title: '♪ Now playing · Spotify',
      children: (
        <Box flexDirection="column">
          <Text dimColor wrap="wrap">Off. Nothing is read until you turn it on. When on, this shows the track the Spotify app on this machine is playing: no login, no network.</Text>
          <Box flexDirection="row" marginTop={1}>
            <Button key="spotify-toggle" variant="primary" label="turn on" onPress={() => undefined} />
          </Box>
        </Box>
      ),
    })
  }
  const body =
    np === null ? (
      <Text dimColor>Looking for Spotify…</Text>
    ) : np.state === 'playing' ? (
      <Text color={tone.ok} bold wrap="truncate-end">▶ {fmt.cut(np.track, W - 8)}</Text>
    ) : np.state === 'paused' ? (
      <Text wrap="truncate-end">⏸ {fmt.cut(np.track, W - 16)} <Text dimColor>(paused)</Text></Text>
    ) : np.state === 'idle' ? (
      <Text dimColor wrap="wrap">Spotify is open, but no song has been started. Play one and it appears here.</Text>
    ) : np.state === 'closed' ? (
      <Text dimColor>Spotify is not running.</Text>
    ) : (
      <Text color={tone.warn} wrap="wrap">Could not read Spotify here. On Linux this needs `playerctl`.</Text>
    )

  return Card(v, {
    title: '♪ Now playing · Spotify',
    tone: np?.state === 'playing' ? tone.ok : undefined,
    children: (
      <Box flexDirection="column">
        {body}
        {np && (np.state === 'playing' || np.state === 'paused') && (
          <Text dimColor>read {fmt.ago(now - np.at)} ago from the Spotify app on this machine</Text>
        )}
        <Box flexDirection="row" marginTop={1}>
          <Button key="spotify-toggle" label="turn off" dimColor onPress={() => undefined} />
        </Box>
      </Box>
    ),
  })
}
plugins/dev-dash/hooks/tabs-view.tsx 23〜32 行 · ペイン
function Card(v: TabView, p: { title: string; tone?: string; children?: unknown }) {
  const { Box, Text, W, tone } = v

  return (
    <Box borderStyle={(v.border ?? 'round') as 'round'} borderColor={p.tone ?? tone.mute} paddingX={1} flexDirection="column" width={W}>
      <Text bold color={p.tone}>{p.title}</Text>
      {p.children}
    </Box>
  )
}
plugins/dev-dash/hooks/tabs-view.tsx 82〜94 行 · ペイン
function stocksCard(v: TabView) {
  const { Box, Text } = v

  return Card(v, {
    title: '▲ Stocks',
    children: (
      <Box flexDirection="column">
        <Text dimColor wrap="wrap">Not set up. Prices need a data source, and dev-dash makes no network calls beyond git and gh (CONTRIBUTING.md), so nothing is fetched.</Text>
        <Text dimColor wrap="wrap">The project owner has to approve a source before a watchlist can go here.</Text>
      </Box>
    ),
  })
}
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Rahul Chauhan

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.

コードが呼ぶもの

プログラム起動ファイル書き込み環境変数Claude を動かすツール呼び出し保存

コードから読み取ったデザイン

読み取ったコミットのソースから描いたもので、動かした結果ではありません。一覧は 3 回描き、条件はデスクトップアプリで描く最初の分岐を取り、動かしたときにだけ決まる値は仮の例(点線の下線)にするか省きます。色と書体はこのサイトのものです。

コードから読めること

2026-10-06 に読んだコミット 9acf7b56a4ed のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。

載せる条件: 確かめやすいコード
入口を読んだhooks/hooks.json が名指すモジュールをすべて読んだ。plugins/dev-dash/hooks/register.tsx
解析できるすべてのファイルが TypeScript か JavaScript として解析できる。18 ファイルを解析
コードが Mod の中で完結import は Mod 自身のファイルかエンジンのモジュールだけ。パッケージも require もない。コードはすべて Mod の中
読める圧縮した行・eval・new Function・計算した道の import()・符号化した塊がない。圧縮・eval・符号化した塊なし
呼び出しが見える通信とプログラム起動はその場で $.http.fetch・$.process.run と書き、他へ渡さない。外への呼び出しはすべてその場の $ で
入れる前に自分で判断する材料
描く場所コードから読んだ、描く先。ターミナル・デスクトップアプリ・両方・何も描かない(フックだけ: 見張りやプロンプトの書き換え)のどれか。出すだけで、外す理由にはしない。ターミナルとデスクトップアプリに同じように描く
入れる手順リポジトリ自身の .claude-plugin/marketplace.json にこの Mod が載っていて、ページに書いた手順でそのマーケットプレイスから入れられるか。リポジトリの .claude-plugin/marketplace.json に載っており、そこから入れられる
Windows のプログラム$.process で起動するプログラムが Windows にあるか(tail・date・open・osascript・/usr/… などは無い)。plugins/dev-dash/hooks/register.tsx:399 ps(Windows にない); plugins/dev-dash/hooks/register.tsx:534 df(Windows にない); plugins/dev-dash/hooks/register.tsx:1098 uname(Windows にない)
通信fetch の送り先(https のホスト)がコードに書いてあるか。通信なし
プログラム起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。plugins/dev-dash/hooks/register.tsx:259 実行時に決まるプログラム; plugins/dev-dash/hooks/register.tsx:377 実行時に決まるプログラム; plugins/dev-dash/hooks/register.tsx:525 powershell(シェル・インタプリタ); plugins/dev-dash/hooks/register.tsx:890 実行時に決まるプログラム
読んで送るファイルや環境変数を読み、かつ通信するか。通信しない
ソースの鍵ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし
ライセンスオープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT

コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件

入れる

入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。

リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。

/plugin marketplace add RanaRauff/claude-dev-dashboard
/plugin install dev-dash@claude-dev-dashboard

入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(9acf7b56a4ed)と違うことがあります。入れる前に見比べてください。

Claude に聞く

modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:

modscode のデザイン「ranarauff-dev-dash」をコードごと読んで、同じようなペインを作って

Claude から探す: MCP コネクタ

似たデザイン