modscode EN

modscode / 図鑑 / code-buddy

code-buddy

A rubber duck in your Claude Code session: a quiet second opinion on each turn, a guard for risky commands, reminders, and lessons about your codebase

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

何をするか

  • 欄・プロンプトの上の帯・トーストを描く
  • /code-buddy を足す
  • ツールの呼び出しを見張る(止めることがある)
  • classic.PreToolUse・prompt.submit・session.measure・session.start ほか 2 個にフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • ネットワークに出ない
  • TypeScript で書かれている
  • エラーを扱う
  • ファイルを書かない

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like code-buddy by Aether Technical (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/aether-technical-code-buddy/
// 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: "code-buddy" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const name = '…'
    const level = '…'
    const lookName = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    const line = '…'
    const concern = '…'
    const concern2 = '…'
    const concern3 = '…'
    const evidence = '…'
    const fmtWhen = '…'
    const text10 = '…'
    const fmtWhen2 = '…'
    const text11 = '…'
    const fmtWhen3 = '…'
    const text12 = '…'
    const topic = '…'
    const lesson = '…'
    const topic2 = '…'
    const lesson2 = '…'
    const topic3 = '…'
    const lesson3 = '…'
    const STATUS_GLYPH = '…'
    const claim = '…'
    const STATUS_GLYPH2 = '…'
    const claim2 = '…'
    const STATUS_GLYPH3 = '…'
    const claim3 = '…'
    const STATUS_GLYPH4 = '…'
    const ago = '…'
    const claim4 = '…'
    const STATUS_GLYPH5 = '…'
    const ago2 = '…'
    const claim5 = '…'
    const STATUS_GLYPH6 = '…'
    const ago3 = '…'
    const claim6 = '…'
    return (
      <Box flexDirection="column" paddingX={1}>
        <Text bold>
          {name}
        </Text>
        <Text dimColor wrap="truncate-end">
          {"lv "}
          {level}
          {" · "}
          {lookName}
          {" · muted"}
        </Text>
        <Box flexDirection="column">
          <Box flexDirection="row">
            <Text>
              {text}
            </Text>
            <Text>
              {text2}
            </Text>
            <Text>
              {text3}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {text4}
            </Text>
            <Text>
              {text5}
            </Text>
            <Text>
              {text6}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {text7}
            </Text>
            <Text>
              {text8}
            </Text>
            <Text>
              {text9}
            </Text>
          </Box>
        </Box>
        <Text italic>
          "
          {line}
          "
        </Text>
        <Box flexDirection="column" marginTop={1}>
          <Text bold>
            What I looked at
          </Text>
          <Text dimColor>
            Nothing yet.
          </Text>
          <Text>
            {"✓ "}
            {concern}
          </Text>
          <Text>
            {"✓ "}
            {concern2}
          </Text>
          <Text>
            {"✓ "}
            {concern3}
          </Text>
          <Text dimColor>
            {"evidence: "}
            {evidence}
          </Text>
          <Box>
            <Button label="back" hotkey="w" />
          </Box>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text dimColor>
            ── reminders ──
          </Text>
          <Text dimColor wrap="truncate-end">
            {fmtWhen}
            {" ↻"}
            {": "}
            {text10}
          </Text>
          <Text dimColor wrap="truncate-end">
            {fmtWhen2}
            {" ↻"}
            {": "}
            {text11}
          </Text>
          <Text dimColor wrap="truncate-end">
            {fmtWhen3}
            {" ↻"}
            {": "}
            {text12}
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text dimColor>
            ── lessons ──
          </Text>
          <Text wrap="truncate-end">
            {topic}
            {": "}
            {lesson}
          </Text>
          <Text wrap="truncate-end">
            {topic2}
            {": "}
            {lesson2}
          </Text>
          <Text wrap="truncate-end">
            {topic3}
            {": "}
            {lesson3}
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text dimColor>
            ── earlier ──
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH}
            {" "}
            {claim}
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH2}
            {" "}
            {claim2}
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH3}
            {" "}
            {claim3}
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text dimColor>
            ── past sessions ──
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH4}
            {" "}
            {ago}
            {": "}
            {claim4}
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH5}
            {" "}
            {ago2}
            {": "}
            {claim5}
          </Text>
          <Text dimColor wrap="truncate-end">
            {STATUS_GLYPH6}
            {" "}
            {ago3}
            {": "}
            {claim6}
          </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 text = '…'
    const text2 = '…'
    const text3 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    const level = '…'
    const lookName = '…'
    const percent = '…'
    const line = '…'
    const text10 = '…'
    const ago = '…'
    const fmtEvery = '…'
    const waiting = '…'
    return (
      <Box flexDirection="column">
        <Text dimColor wrap="truncate-end">
          ────────
        </Text>
        <Box flexDirection="row" gap={1}>
          <Box flexDirection="column" flexShrink={0} width={15}>
            <Box flexDirection="row">
              <Text color="#f5c518">
                {text}
              </Text>
              <Text color="#f5c518">
                {text2}
              </Text>
              <Text color="#f5c518">
                {text3}
              </Text>
            </Box>
            <Box flexDirection="row">
              <Text color="#f5c518">
                {text4}
              </Text>
              <Text color="#f5c518">
                {text5}
              </Text>
              <Text color="#f5c518">
                {text6}
              </Text>
            </Box>
            <Box flexDirection="row">
              <Text color="#f5c518">
                {text7}
              </Text>
              <Text color="#f5c518">
                {text8}
              </Text>
              <Text color="#f5c518">
                {text9}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column" flexGrow={1} flexShrink={1}>
            <Box flexDirection="row" gap={1}>
              <Box flexGrow={1} flexShrink={1}>
                <Text wrap="truncate-end">
                  <Text bold>
                    an egg
                  </Text>
                  <Text dimColor>
                    {" lv "}
                    {level}
                    {" · "}
                    {lookName}
                  </Text>
                  <Text dimColor>
                    {" · ctx "}
                    {percent}
                    %
                  </Text>
                  <Text italic>
                    {" \""}
                    {line}
                    "
                  </Text>
                </Text>
              </Box>
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button label="relay" hotkey="r" variant="primary" />
                <Button label="dismiss" hotkey="d" />
                <Button label="why?" hotkey="w" />
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box height={2} overflow="hidden">
                <Text>
                  <Text color="#d4a72c">
                    {"reminder · "}
                  </Text>
                  <Text bold>
                    {text10}
                  </Text>
                </Text>
              </Box>
              <Text dimColor wrap="truncate-end">
                {"due "}
                12am
                {" ("}
                {ago}
                )
                {` · ${fmtEvery}`}
                {` · +${waiting} more`}
              </Text>
            </Box>
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const name = '…'
    const text = '…'
    await $.ui.toast(`${name}: ${text}`)
    return next(e)
  })
}

Mod 自身のコード

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

hooks/register.tsx 1008〜1148 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const d = await read($, duckA)
    const mood = await read($, moodA)
    const frame = await read($, frameA)
    const line = await read($, quipA)

    if (!d) {
      const egg = sprite(rollDuck(0), 'hatching', frame % 3)
      return (
        <Box flexDirection="column" paddingX={1}>
          {egg.map(row => <Text color={EGG_COLOR}>{row.map(s => s.text).join('')}</Text>)}
          <Text dimColor italic>{line || 'something is hatching…'}</Text>
        </Box>
      )
    }

    const objections = await read($, objectionsA)
    const current = objections.find(o => o.status === 'open') ?? null
    const lastCheck = await read($, lastCheckA)
    const isChecking = await read($, isCheckingA)
    const isMuted = await read($, isMutedA)
    const isWhy = await read($, isWhyA)
    const now = await $.clock.now()
    const history = objections.filter(o => o.status !== 'open' && !o.isPast).slice(0, 5)
    const past = objections.filter(o => o.isPast).slice(0, 8)
    const zone = await read($, zoneA)
    const upcoming = [...(await read($, remindersA))].sort((a, b) => a.dueAt - b.dueAt).slice(0, 5)
    const lessons = (await read($, lessonsA)).slice(0, 4)
    const considered = current?.considered ?? lastCheck?.considered ?? []

    return (
      <Box flexDirection="column" paddingX={1}>
        <Text bold>{d.name}</Text>
        <Text dimColor wrap="truncate-end">
          lv {level(d)} · {lookName(d)}{isMuted ? ' · muted' : ''}
        </Text>
        <Box flexDirection="column">
          {sprite(d, mood, frame).map(row => (
            <Box flexDirection="row">
              {row.map(s => <Text color={colorOf(d, mood, s.part)}>{s.text}</Text>)}
            </Box>
          ))}
        </Box>
        {line !== '' && <Text italic>"{line}"</Text>}

        {isWhy ? (
          <Box flexDirection="column" marginTop={1}>
            <Text bold>What I looked at</Text>
            {considered.length === 0 && <Text dimColor>Nothing yet.</Text>}
            {considered.map(c => (
              <Text dimColor={c.already_addressed}>
                {c.already_addressed ? '✓ ' : '• '}{c.concern}
              </Text>
            ))}
            {current && <Text dimColor>evidence: {current.evidence}</Text>}
            <Box>
              <Button key="back" label="back" hotkey="w" onPress={noop} />
            </Box>
          </Box>
        ) : current ? (
          <Box flexDirection="column" marginTop={1}>
            <Text>
              <Text color={SEV_COLOR[current.severity]}>● </Text>
              {current.claim}
            </Text>
            <Text dimColor>evidence: {current.evidence}</Text>
            <Box flexDirection="row" gap={1} flexWrap="wrap">
              <Button key="relay" label="relay" hotkey="r" variant="primary" onPress={noop} />
              <Button key="dismiss" label="dismiss" hotkey="d" onPress={noop} />
              <Button key="why" label="why?" hotkey="w" onPress={noop} />
            </Box>
          </Box>
        ) : (
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor>
              {isMuted
                ? 'Muted. /code-buddy loud to wake me.'
                : isChecking
                  ? 'Reading the last turn…'
                  : lastCheck
                    ? lastCheck.note || `Checked ${ago(now - lastCheck.at)}: nothing worth raising.`
                    : 'Watching.'}
            </Text>
            {!isMuted && !isChecking && (
              <Box flexDirection="row" gap={1} flexWrap="wrap">
                <Button key="check" label="check" hotkey="c" onPress={noop} />
                {lastCheck && lastCheck.considered.length > 0 && (
                  <Button key="why" label="why quiet?" hotkey="w" onPress={noop} />
                )}
              </Box>
            )}
          </Box>
        )}

        {upcoming.length > 0 && (
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor>── reminders ──</Text>
            {upcoming.map(r => (
              <Text dimColor wrap="truncate-end">
                {fmtWhen(r.dueAt, now, zone)}{r.everyMs ? ' ↻' : ''}: {r.text}
              </Text>
            ))}
          </Box>
        )}

        {lessons.length > 0 && (
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor>── lessons ──</Text>
            {lessons.map(l => (
              <Text dimColor={l.status !== 'new'} wrap="truncate-end">
                {l.topic}: {l.lesson}
              </Text>
            ))}
          </Box>
        )}

        {history.length > 0 && (
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor>── earlier ──</Text>
            {history.map(o => (
              <Text dimColor wrap="truncate-end">
                {STATUS_GLYPH[o.status]} {o.claim}
              </Text>
            ))}
          </Box>
        )}

        {past.length > 0 && (
          <Box flexDirection="column" marginTop={1}>
            <Text dimColor>── past sessions ──</Text>
            {past.map(o => (
              <Text dimColor wrap="truncate-end">
                {STATUS_GLYPH[o.status]} {ago(now - o.at)}: {o.claim}
              </Text>
            ))}
          </Box>
        )}
      </Box>
    )
  })
hooks/register.tsx 1151〜1310 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey) return next(e)
    const reminders = await read($, remindersA)
    const reminder = showingReminder(reminders)
    // muting silences the critic, not reminders you set yourself
    const nudge = await read($, compactNudgeA)
    // muting quiets the critic and educator, not reminders or the compact nudge
    if ((await read($, isMutedA)) && !reminder && !nudge) return next(e)
    const d = await read($, duckA)
    const mood = await read($, moodA)
    const frame = await read($, frameA)
    const line = await read($, quipA)
    const current = (await read($, objectionsA)).find(o => o.status === 'open') ?? null
    const lastCheck = await read($, lastCheckA)
    const isChecking = await read($, isCheckingA)
    const isWhy = await read($, isWhyA)
    const lessons = await read($, lessonsA)
    const lesson = lessons.find(l => l.status === 'new') ?? null
    const ctx = await read($, contextA)
    const quiz = await read($, quizA)
    const quizLesson = quiz ? (lessons.find(l => l.id === quiz.lessonId) ?? null) : null
    const guarded = await read($, guardedA)
    const now = await $.clock.now()
    const zone = await read($, zoneA)
    const { Box, Text, Button } = $.ui.resolve(e)
    const waiting = reminders.filter(r => r.firedAt !== undefined).length - 1

    const rows = d ? spriteCompact(d, mood, frame) : spriteCompact(rollDuck(0), 'hatching', frame % 3)
    const considered = current?.considered ?? lastCheck?.considered ?? []
    const status = isChecking
      ? 'Reading the last turn…'
      : lastCheck
        ? lastCheck.note || `Checked ${ago(now - lastCheck.at)}: nothing worth raising.`
        : 'Watching.'

    return (
      <Box flexDirection="column">
      {/* a rule to set the strip apart from the spinner and tip lines above it */}
      <Text dimColor wrap="truncate-end">{'─'.repeat(Math.max(1, e.props.bodyColumns))}</Text>
      <Box flexDirection="row" gap={1}>
        <Box flexDirection="column" flexShrink={0} width={15}>
          {rows.map(row => (
            <Box flexDirection="row">
              {row.map(seg => <Text color={d ? colorOf(d, mood, seg.part) : EGG_COLOR}>{seg.text}</Text>)}
            </Box>
          ))}
        </Box>
        <Box flexDirection="column" flexGrow={1} flexShrink={1}>
          <Box flexDirection="row" gap={1}>
            <Box flexGrow={1} flexShrink={1}>
              <Text wrap="truncate-end">
                <Text bold>{d?.name ?? 'an egg'}</Text>
                {d && <Text dimColor> lv {level(d)} · {lookName(d)}</Text>}
                {ctx && ctx.percent >= 50 && <Text dimColor> · ctx {ctx.percent}%</Text>}
                {line !== '' && <Text italic>  "{line}"</Text>}
              </Text>
            </Box>
            {guarded && !reminder ? (
              <Button key="runanyway" label="run anyway" hotkey="y" onPress={noop} />
            ) : reminder ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button key="ok" label="ok" hotkey="o" variant="primary" onPress={noop} />
                <Button key="snooze" label="snooze 10m" hotkey="s" onPress={noop} />
              </Box>
            ) : isWhy ? (
              <Button key="back" label="back" hotkey="w" onPress={noop} />
            ) : current ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button key="relay" label="relay" hotkey="r" variant="primary" onPress={noop} />
                <Button key="dismiss" label="dismiss" hotkey="d" onPress={noop} />
                <Button key="why" label="why?" hotkey="w" onPress={noop} />
              </Box>
            ) : nudge ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button key="compact" label="compact" hotkey="p" variant="primary" onPress={noop} />
                <Button key="later" label="later" hotkey="l" onPress={noop} />
              </Box>
            ) : lesson ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button key="gotit" label="got it" hotkey="g" variant="primary" onPress={noop} />
                <Button key="ask" label="ask" hotkey="a" onPress={noop} />
              </Box>
            ) : quiz && quizLesson ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                {quiz.isRevealed ? (
                  <>
                    <Button key="knew" label="knew it" hotkey="k" variant="primary" onPress={noop} />
                    <Button key="didnt" label="didn't" hotkey="n" onPress={noop} />
                  </>
                ) : (
                  <>
                    <Button key="show" label="show" hotkey="s" variant="primary" onPress={noop} />
                    <Button key="skip" label="skip" hotkey="x" onPress={noop} />
                  </>
                )}
              </Box>
            ) : d && !isChecking ? (
              <Box flexDirection="row" gap={1} flexShrink={0}>
                <Button key="check" label="check" hotkey="c" onPress={noop} />
                {considered.length > 0 && <Button key="why" label="why quiet?" hotkey="w" onPress={noop} />}
              </Box>
            ) : null}
          </Box>
          {guarded && !reminder ? (
            <Box flexDirection="column">
              <Text wrap="truncate-end">
                <Text color="#e5534b">guard · </Text>
                held: this {guarded.reason}. The agent was told to wait for you.
              </Text>
              <Box height={2} overflow="hidden">
                <Text dimColor>{guarded.command}</Text>
              </Box>
            </Box>
          ) : reminder ? (
            <Box flexDirection="column">
              <Box height={2} overflow="hidden">
                <Text>
                  <Text color="#d4a72c">reminder · </Text>
                  <Text bold>{reminder.text}</Text>
                </Text>
              </Box>
              <Text dimColor wrap="truncate-end">
                due {fmtClock(reminder.dueAt, zone)} ({ago(now - reminder.dueAt)})
                {reminder.everyMs ? ` · ${fmtEvery(reminder.everyMs)}` : ''}
                {waiting > 0 ? ` · +${waiting} more` : ''}
              </Text>
            </Box>
          ) : isWhy ? (
            considered.slice(0, 3).map(c => (
              <Text dimColor={c.already_addressed} wrap="truncate-end">
                {c.already_addressed ? '✓ ' : '• '}{c.concern}
              </Text>
            ))
          ) : current ? (
            <Box flexDirection="column">
              {/* two lines for the claim, then cut off */}
              <Box height={2} overflow="hidden">
                <Text>
                  <Text color={SEV_COLOR[current.severity]}>● </Text>
                  {current.claim}
                </Text>
              </Box>
              <Text dimColor wrap="truncate-end">evidence: {current.evidence}</Text>
            </Box>
          ) : nudge ? (
            <Box flexDirection="column">
              <Text wrap="truncate-end">
                <Text color={nudge.level === 2 ? '#e5534b' : '#d4a72c'}>context · </Text>
                {ctx?.isAuto === false
                  ? `${nudge.percent}% of the context limit`
                  : `${nudge.percent}% of the way to auto-compact`}
                {ctx ? ` (${Math.round(ctx.tokens / 1000)}k of ${Math.round(ctx.limit / 1000)}k)` : ''}.{' '}
                {nudge.level === 2
                  ? ctx?.isAuto === false
                    ? 'The context is nearly full; compacting now lets you say what to keep.'
                    : 'Auto-compact is close; compacting now lets you say what to keep.'
                  : 'A /compact now, with a note on what to keep, beats an automatic one later.'}
              </Text>
              <Text dimColor wrap="truncate-end">compact fills the prompt with /compact; add what matters, then press enter.</Text>
            </Box>
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 Aether Technical, LLC

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 に読んだコミット a960d0dba421 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。

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

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

入れる

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

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

/plugin marketplace add Aether-Technical/code-buddy
/plugin install code-buddy@code-buddy

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

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン