modscode EN

modscode / 図鑑 / usage-hud

usage-hud

A pixel Clawd above your prompt whose mood follows your context, session and weekly usage

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

何をするか

  • 欄・プロンプトの上の帯・トーストを描く
  • /usage-hud を足す
  • ツールの呼び出しを見張る(止めることがある)
  • session.measure・session.start・turn.complete・turn.stepにフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • TypeScript で書かれている
  • デスクトップ専用の分岐がある
  • エラーを扱う
  • ファイルを書かない

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like usage-hud by lucassimzq (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/lucassimzq-usage-hud/
// 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: "Clawd's shop" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Svg, Text, Button } = $.ui.resolve(e)
    const wardrobeSvg = '…'
    const wearing = '…'
    const level = '…'
    const titleOf = '…'
    const coins = '…'
    const perTokens = '…'
    const SLOT_NAMES = '…'
    const called = '…'
    const name = '…'
    const name2 = '…'
    const name3 = '…'
    const SLOT_NAMES2 = '…'
    const name4 = '…'
    const name5 = '…'
    const name6 = '…'
    const SLOT_NAMES3 = '…'
    const name7 = '…'
    const name8 = '…'
    const name9 = '…'
    return (
      <Box flexDirection="column" gap={1} padding={1}>
        <Box flexDirection="row" alignItems="center" gap={2}>
          <Svg source={`${wardrobeSvg}`} alt={`Clawd wearing ${wearing}`} width={132} height={84} />
          <Box flexDirection="column" alignItems="flex-start" flexGrow={1} flexShrink={1} gap={1}>
            <Box flexDirection="column">
              <Text bold>
                {`Level ${level} · ${titleOf}`}
              </Text>
              <Text color="#d9b25a">
                {coins}
              </Text>
              <Text dimColor>
                {`1 coin per ${perTokens} tokens Claude writes, 100 per level, 25 per badge`}
              </Text>
            </Box>
            <Button label="Take everything off" />
          </Box>
        </Box>
        <Box flexDirection="column" gap={1}>
          <Text bold>
            {SLOT_NAMES}
          </Text>
          <Box flexDirection="row" flexWrap="wrap" gap={1}>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name2}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name3}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" gap={1}>
          <Text bold>
            {SLOT_NAMES2}
          </Text>
          <Box flexDirection="row" flexWrap="wrap" gap={1}>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name4}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name5}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name6}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" gap={1}>
          <Text bold>
            {SLOT_NAMES3}
          </Text>
          <Box flexDirection="row" flexWrap="wrap" gap={1}>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name7}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name8}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
            <Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
              <Svg source={`${wardrobeSvg}`} alt={`Clawd in the ${called}`} width={110} height={70} />
              <Text>
                {name9}
              </Text>
              <Text dimColor>
                {`Level ${level}`}
              </Text>
            </Box>
          </Box>
        </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, Svg, Text, Button } = $.ui.resolve(e)
    const pixelSvg = '…'
    const alt = '…'
    const updateLabel = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" alignItems="center" gap={1}>
          <Svg source={`${pixelSvg}`} alt={`${alt}`} height={24} />
          <Text dimColor>
            {updateLabel}
          </Text>
          <Button label="↻" plain dimColor />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const is = '…'
    const titleOf = '…'
    const nameOf = '…'
    const level = '…'
    const name = '…'
    const crossed = '…'
    await $.ui.toast(`Clawd reached level ${is}: ${titleOf}, ${nameOf} unlocked (+${level} coins)`)
    await $.ui.toast(`Clawd is sweating: ${name} limit passed ${crossed}%`)
    return next(e)
  })
}

Mod 自身のコード

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

hooks/register.tsx 1739〜1856 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: SHOP }, async ($, e) => {
    const p = (await read($, game)).progress ?? progressOf(await $.store.get(PROGRESS))
    const level = levelOf(p.xp)
    const worn = outfitOf(p, level)
    const shelf = shelfOf(p)
    // The focus starts on the first thing Clawd has, reading the slots top to bottom.
    const first = SLOTS.flatMap(slot => shelf.filter(s => s.slot === slot)).find(s => s.state === 'wearing' || s.state === 'owned')?.id
    const coins = `${p.coins.toLocaleString('en-US')} coins`
    const wearing = SLOTS.flatMap(slot => (worn[slot] ? [called(worn[slot])] : []))

    if (e.surface === 'terminal') {
      const { Box, Button, Text } = $.ui.resolve(e)
      const label = (s: Shelf) =>
        s.state === 'wearing' ? `● ${s.name}` : s.state === 'buy' || s.state === 'short' ? `${s.name} ${s.price}c` : s.state === 'locked' ? `${s.name} Lv${s.level}` : s.name
      return (
        <Box flexDirection="column">
          <Text>
            <Text color={CLAWD}>{FACES.happy}</Text>
            <Text bold>{`  Level ${level} ${titleOf(level)}`}</Text>
            <Text dimColor> · </Text>
            <Text color="yellow">{coins}</Text>
            <Text dimColor>{` · wearing ${wearing.join(', ') || 'nothing'}`}</Text>
          </Text>
          {SLOTS.map(slot => (
            <Box key={slot} flexDirection="row" gap={1}>
              <Box width={8} flexShrink={0}>
                <Text dimColor>{SLOT_NAMES[slot]}</Text>
              </Box>
              <Box flexDirection="row" flexWrap="wrap" columnGap={1} flexShrink={1}>
                {shelf
                  .filter(s => s.slot === slot)
                  .map(s => {
                    const change = pressOf(s)
                    return change ? (
                      <Button
                        key={`item:${s.id}`}
                        label={label(s)}
                        variant={s.state === 'wearing' ? 'primary' : undefined}
                        autoFocus={s.id === first || undefined}
                        onPress={() => shopPress($, change, s.id)}
                      />
                    ) : (
                      <Text key={`item:${s.id}`} dimColor>{` ${label(s)} `}</Text>
                    )
                  })}
                {slot === 'scene' ? (
                  <Text key="scene-note" dimColor>
                    (drawn on the desktop app's band, not here)
                  </Text>
                ) : null}
              </Box>
            </Box>
          ))}
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            <Button key="none" label="take all off" plain dimColor onPress={() => shopPress($, dressed, 'none')} />
            <Text dimColor>Tab or arrows move · Enter wears, buys or takes off · Esc closes</Text>
          </Box>
        </Box>
      )
    }

    const { Box, Button, Svg, Text } = $.ui.resolve(e)
    // A narrow sidebar stacks the header under Clawd, so the text keeps its width and the button stays in view.
    const wide = (e.props.bodyColumns || 100) * PX_PER_COLUMN >= SHOP_WIDE
    return (
      <Box flexDirection="column" gap={1} padding={1}>
        <Box flexDirection={wide ? 'row' : 'column'} alignItems={wide ? 'center' : 'flex-start'} gap={wide ? 2 : 1}>
          <Svg source={wardrobeSvg(worn, 3)} alt={`Clawd wearing ${wearing.join(', ') || 'nothing'}`} width={132} height={84} />
          <Box flexDirection="column" alignItems="flex-start" flexGrow={1} flexShrink={1} gap={1}>
            <Box flexDirection="column">
              <Text bold>{`Level ${level} · ${titleOf(level)}`}</Text>
              <Text color={COLORS.golden}>{coins}</Text>
              <Text dimColor>{`1 coin per ${COINS.perTokens.toLocaleString('en-US')} tokens Claude writes, ${COINS.level} per level, ${COINS.badge} per badge`}</Text>
            </Box>
            <Button key="none" label="Take everything off" onPress={() => shopPress($, dressed, 'none')} />
          </Box>
        </Box>
        {SLOTS.map(slot => (
          <Box key={slot} flexDirection="column" gap={1}>
            <Text bold>{SLOT_NAMES[slot]}</Text>
            <Box flexDirection="row" flexWrap="wrap" gap={1}>
              {shelf
                .filter(s => s.slot === slot)
                .map(s => {
                  const change = pressOf(s)
                  // Each card shows Clawd trying the item on with the rest of his outfit.
                  return (
                    <Box
                      key={`card:${s.id}`}
                      flexDirection="column"
                      alignItems="center"
                      gap={1}
                      padding={1}
                      borderStyle="round"
                      borderColor={s.state === 'wearing' ? CLAWD : undefined}
                      borderDimColor={s.state !== 'wearing'}
                    >
                      <Svg source={wardrobeSvg({ ...worn, [slot]: s.id }, 2.5)} alt={`Clawd in the ${called(s.id)}`} width={110} height={70} />
                      <Text dimColor={!change}>{s.name}</Text>
                      {change ? (
                        <Button
                          key={`item:${s.id}`}
                          label={s.state === 'wearing' ? 'Take off' : s.state === 'owned' ? 'Wear' : `Buy · ${s.price?.toLocaleString('en-US')}`}
                          variant={s.state === 'buy' ? 'primary' : 'secondary'}
                          onPress={() => shopPress($, change, s.id)}
                        />
                      ) : (
                        <Text dimColor>{s.state === 'locked' ? `Level ${s.level}` : `${s.price?.toLocaleString('en-US')} coins`}</Text>
                      )}
                    </Box>
                  )
                })}
            </Box>
          </Box>
        ))}
      </Box>
    )
  })
hooks/register.tsx 1858〜1989 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey || (await read($, isHidden))) return next(e)
    const { cur, prev } = await read($, gauges)
    if (!cur) return next(e)

    const now = await $.clock.now()
    const list = tanksOf(cur, prev, now)
    const { progress, burst, gain } = await read($, game)
    const view = progress ? gameViewOf(progress, now, burst, gain) : undefined
    const { latest, phase } = await read($, updates)
    const updateLabel = !latest ? undefined : phase === 'installing' ? 'updating…' : phase === 'restart' ? `restart for ${latest}` : undefined
    const onUpdate = async () => $.ui.toast(await installUpdate($))

    // Every surface but the terminal (desktop, VS Code, the Claude mobile app) draws Svg.
    if (e.surface !== 'terminal') {
      const { Box, Button, Svg, Text } = $.ui.resolve(e)
      const columns = e.props.bodyColumns || e.viewport?.columns || 100
      // The image can't take a press, so the refresh control is a real Button beside it.
      const offer = latest && phase === 'idle' ? `Update to ${latest}` : updateLabel
      const width = Math.max(160, Math.round(columns * PX_PER_COLUMN) - REFRESH_W - (offer ? offer.length * 7 + 28 : 0))
      const doing = e.props.isWorking ? await read($, activity) : 'idle'
      const alt = (view ? [`Level ${view.level}`].concat(view.coins !== undefined ? [`${view.coins} coins`] : []) : []).concat(list.map(t => `${t.tag} ${Math.round(t.pct)}%`)).join(', ')
      // A backdrop runs on to the right edge, under the refresh Button laid over its end;
      // the figures still keep clear of it. With an update offer in the row, the usual layout.
      if (view?.outfit?.scene && !offer) {
        const full = width + REFRESH_W
        return (
          <Box flexDirection="row" alignItems="center" position="relative">
            <Svg source={pixelSvg(list, cur.usd, doing, width, view, full)} alt={alt} width={full} height={HEIGHT} />
            <Box position="absolute" right={0} top={0}>
              <Button key="refresh" label="↻" plain dimColor onPress={() => refresh($)} />
            </Box>
          </Box>
        )
      }
      // Drawn as an image, not an interactive frame: it stays transparent, and SMIL still plays.
      return (
        <Box flexDirection="row" alignItems="center" gap={1}>
          <Svg
            source={pixelSvg(list, cur.usd, doing, width, view)}
            alt={alt}
            width={width}
            height={HEIGHT}
          />
          {latest && phase === 'idle' ? (
            <Button key="update" label={`Update to ${latest}`} variant="primary" onPress={onUpdate} />
          ) : updateLabel ? (
            <Text dimColor>{updateLabel}</Text>
          ) : null}
          <Button key="refresh" label="↻" plain dimColor onPress={() => refresh($)} />
        </Box>
      )
    }

    if (e.surface === 'terminal') {
      const { Box, Button, Text } = $.ui.resolve(e)
      const color = (pct: number) => ({ ok: 'cyan', warn: 'yellow', hot: 'red' })[tone(pct)]
      const worst = list.reduce((a, b) => (b.pct > a.pct ? b : a))
      const face = FACES[moodOf(worst.pct)]
      const usd = cur.usd === undefined ? '' : `$${cur.usd.toFixed(2)}`
      // The level as `Lv7 ▰▰▱ ●1.2k 🔥5`; the flame counts as two columns.
      const level = view ? `Lv${view.level}` : ''
      const xpBar = view ? bar(view.frac * 100, 3) : ''
      const coins = view?.coins !== undefined ? `●${coinsLabel(view.coins)}` : ''
      const flame = view && view.streak >= 3 ? `🔥${view.streak}` : ''
      // While a gain plays: what it earned, beside the bar and the balance it went to.
      const xpGain = view?.gain?.xp ? `+${coinsLabel(view.gain.xp)}xp` : ''
      const coinGain = view?.gain?.coins && coins ? `+${coinsLabel(view.gain.coins)}` : ''
      const gameWidth = (g: GameFit) =>
        !view || g === 'none'
          ? 0
          : level.length + 1 + xpBar.length + (xpGain ? xpGain.length + 1 : 0) + (coins ? coins.length + 1 : 0) +
            (coinGain ? coinGain.length + 1 : 0) + 2 + (g === 'full' && flame ? flame.length + 2 : 0)
      // Fit the row to the terminal: give up the streak, the level, the long note, the cost,
      // the short note, then the bars.
      // The update offer is never given up: it sits at the right, and the rest fits around it.
      const offer = latest && phase === 'idle' ? `u: update ${latest}` : updateLabel
      const cols = (e.props.bodyColumns || e.viewport?.columns || 80) - (offer ? offer.length + 2 : 0)
      const figures = (bars: boolean) => list.reduce((w, t) => w + t.tag.length + (bars ? 6 : 0) + 5 + 2, 0)
      // With no room for the level, a gain still shows beside the face.
      const pop = [xpGain, view?.gain?.coins ? `●+${coinsLabel(view.gain.coins)}` : ''].filter(Boolean).join(' ')
      const widthOf = (bars: boolean, note: string | undefined, cost: string | undefined, g: GameFit) =>
        face.length + 2 + (g === 'none' && pop ? pop.length + 2 : 0) + gameWidth(g) + figures(bars) + (cost ? cost.length + 2 : 0) + (note ? note.length + 2 : 0) + 3
      const options: [boolean, string | undefined, string | undefined, GameFit][] = [
        [true, noteOf(worst), usd, 'full'],
        [true, noteOf(worst), undefined, 'full'],
        [true, noteOf(worst), undefined, 'short'],
        [true, noteOf(worst), usd, 'none'],
        [true, noteOf(worst), undefined, 'none'],
        [true, shortNoteOf(worst), usd, 'none'],
        [true, shortNoteOf(worst), undefined, 'none'],
        [true, undefined, usd, 'none'],
        [true, undefined, undefined, 'none'],
        [false, undefined, undefined, 'none'],
      ]
      const fitting = options.filter(([, , , g]) => view || g === 'none')
      const [bars, note, cost, g] = fitting.find(([b, n, c, f]) => widthOf(b, n, c, f) <= cols) ?? fitting[fitting.length - 1]!
      return (
        <Box flexDirection="row" gap={2}>
          <Text color="#D97757">{face}</Text>
          {g === 'none' && pop ? <Text color="yellow" bold>{pop}</Text> : null}
          {g !== 'none' ? (
            <Text>
              <Text color="magenta">{level} </Text>
              <Text color="magenta" dimColor>{xpBar}</Text>
              {xpGain ? <Text color="magenta" bold>{` ${xpGain}`}</Text> : null}
              {coins ? <Text color="yellow" dimColor>{` ${coins}`}</Text> : null}
              {coinGain ? <Text color="yellow" bold>{` ${coinGain}`}</Text> : null}
              {g === 'full' && flame ? <Text dimColor>{`  ${flame}`}</Text> : null}
            </Text>
          ) : null}
          {list.map(t => (
            <Text key={t.tag}>
              <Text dimColor>{t.tag} </Text>
              {bars ? <Text color={color(t.pct)}>{bar(t.pct)} </Text> : null}
              <Text bold color={bars ? undefined : color(t.pct)} dimColor={t.isSaved}>{Math.round(t.pct)}%</Text>
            </Text>
          ))}
          {cost ? <Text dimColor>{cost}</Text> : null}
          {note ? <Text color={color(worst.pct)}>{note}</Text> : null}
          {latest && phase === 'idle' ? (
            <Button key="update" label={`update ${latest}`} plain hotkey="u" onPress={onUpdate} />
          ) : updateLabel ? (
            <Text dimColor>{updateLabel}</Text>
          ) : null}
          <Button key="refresh" label="↻" plain dimColor hotkey="r" onPress={() => refresh($)} />
        </Box>
      )
    }

    return next(e)
  })
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Lucas Sim

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.

コードが呼ぶもの

通信プログラム起動ファイル読み取り環境変数ツール呼び出し保存

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

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

コードから読めること

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

載せる条件: 確かめやすいコード
入口を読んだhooks/hooks.json が名指すモジュールをすべて読んだ。hooks/register.tsx
解析できるすべてのファイルが TypeScript か JavaScript として解析できる。1 ファイルを解析
コードが 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/… などは無い)。Windows にないプログラムを使わない
通信fetch の送り先(https のホスト)がコードに書いてあるか。https://api.github.com
プログラム起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。git(通信する)
読んで送るファイルや環境変数を読み、かつ通信するか。reads environment variables and files and reaches the network
ソースの鍵ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし
ライセンスオープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT

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

入れる

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

リポジトリの .claude-plugin/marketplace.json にこの Mod が載っていないため、入れる手順は出せません。コードとして読むか、作者の README に従ってください。

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン