modscode EN

modscode / 図鑑 / shiori

shiori

A bookmark for each session, from that session alone: where it stands, whether it is your turn, and what the tickets, PRs and tasks it mentioned point at

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

何をするか

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

良いところ

  • ネットワークに出ない
  • プロセスを起こさない
  • TypeScript で書かれている
  • デスクトップ専用の分岐がある

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like shiori by mitaku (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/mitaku-shiori/
// 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 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 name = '…'
    const working = '…'
    const elapsed = '…'
    const tally = '…'
    const details = '…'
    const what = '…'
    const type = '…'
    const model = '…'
    const tool = '…'
    const what2 = '…'
    const what3 = '…'
    const more = '…'
    const purpose = '…'
    const notYet = '…'
    return (
      <Box flexDirection="column">
        <Box>
          <Box flexShrink={0}>
            <Text color="cyan">
              {`🔖 ${name}  ● ${working} `}
            </Text>
            <Text>
              {elapsed}
            </Text>
            <Text dimColor>
              {`  ${tally}`}
            </Text>
            <Text>
              {"  "}
            </Text>
          </Box>
          <Box flexGrow={1} flexShrink={1}>
            <Text dimColor wrap="truncate-end" />
          </Box>
          <Box flexShrink={0}>
            <Text>
              {" "}
            </Text>
            <Button label={`${details}`} />
          </Box>
        </Box>
        <Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {"  └ "}
            </Text>
          </Box>
          <Box flexGrow={1} flexShrink={1}>
            <Text wrap="truncate-end">
              {what}
            </Text>
          </Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {`  ${type} · ${model}  ${tool}  ${elapsed}`}
            </Text>
          </Box>
        </Box>
        <Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {"  └ "}
            </Text>
          </Box>
          <Box flexGrow={1} flexShrink={1}>
            <Text wrap="truncate-end">
              {what2}
            </Text>
          </Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {`  ${type} · ${model}  ${tool}  ${elapsed}`}
            </Text>
          </Box>
        </Box>
        <Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {"  └ "}
            </Text>
          </Box>
          <Box flexGrow={1} flexShrink={1}>
            <Text wrap="truncate-end">
              {what3}
            </Text>
          </Box>
          <Box flexShrink={0}>
            <Text dimColor>
              {`  ${type} · ${model}  ${tool}  ${elapsed}`}
            </Text>
          </Box>
        </Box>
        <Text dimColor>
          {`  └ +${more}`}
        </Text>
        <Box>
          <Text color="cyan">
            {purpose}
            {" "}
          </Text>
          <Text dimColor wrap="truncate-end">
            {notYet}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "‹title›" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const title = '…'
    const item = '…'
    const title2 = '…'
    const title3 = '…'
    const pending = '…'
    const none = '…'
    const PENDING_MARK = '…'
    const kinds = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const title4 = '…'
    const item2 = '…'
    const item3 = '…'
    const title5 = '…'
    const item4 = '…'
    const item5 = '…'
    const item6 = '…'
    const title6 = '…'
    const item7 = '…'
    const item8 = '…'
    const item9 = '…'
    const refs = '…'
    const none2 = '…'
    const id = '…'
    const tag = '…'
    const what = '…'
    const none3 = '…'
    const filter = '…'
    const byYou = '…'
    const quote = '…'
    const id2 = '…'
    const tag2 = '…'
    const what2 = '…'
    const none4 = '…'
    const filter2 = '…'
    const id3 = '…'
    const tag3 = '…'
    const what3 = '…'
    const none5 = '…'
    const filter3 = '…'
    const title7 = '…'
    const title8 = '…'
    const title9 = '…'
    const calls = '…'
    const close = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title2}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title3}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {pending}
          </Text>
          <Text dimColor>
            {none}
          </Text>
          <Box>
            <Box flexShrink={0}>
              <Text color="yellow" bold>
                {`${PENDING_MARK} `}
              </Text>
              <Text dimColor>
                {`${kinds}  `}
              </Text>
            </Box>
            <Text>
              {text}
            </Text>
          </Box>
          <Box>
            <Box flexShrink={0}>
              <Text color="yellow" bold>
                {`${PENDING_MARK} `}
              </Text>
              <Text dimColor>
                {`${kinds}  `}
              </Text>
            </Box>
            <Text>
              {text2}
            </Text>
          </Box>
          <Box>
            <Box flexShrink={0}>
              <Text color="yellow" bold>
                {`${PENDING_MARK} `}
              </Text>
              <Text dimColor>
                {`${kinds}  `}
              </Text>
            </Box>
            <Text>
              {text3}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title4}
          </Text>
          <Text>
            {item}
          </Text>
          <Text>
            {item2}
          </Text>
          <Text>
            {item3}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title5}
          </Text>
          <Text>
            {item4}
          </Text>
          <Text>
            {item5}
          </Text>
          <Text>
            {item6}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title6}
          </Text>
          <Text>
            {item7}
          </Text>
          <Text>
            {item8}
          </Text>
          <Text>
            {item9}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {refs}
          </Text>
          <Text dimColor>
            {none2}
          </Text>
          <Box flexDirection="column">
            <Box>
              <Box flexShrink={0}>
                <Text bold wrap="truncate-end">
                  {id}
                </Text>
              </Box>
              <Box width={8} flexShrink={0}>
                <Text dimColor>
                  {tag}
                </Text>
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text wrap="truncate-end">
                  {what}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  {" "}
                </Text>
                <Button label="↥" />
                <Text>
                  {" "}
                </Text>
                <Button label="⧉" />
              </Box>
            </Box>
            <Box display="none" flexDirection="column" marginLeft={2} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {none3}
              </Text>
              <Text dimColor wrap="truncate-end">
                {filter}
              </Text>
              <Text italic>
                {`${byYou}: ${quote}`}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box>
              <Box flexShrink={0}>
                <Text bold wrap="truncate-end">
                  {id2}
                </Text>
              </Box>
              <Box width={8} flexShrink={0}>
                <Text dimColor>
                  {tag2}
                </Text>
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text wrap="truncate-end">
                  {what2}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  {" "}
                </Text>
                <Button label="↥" />
                <Text>
                  {" "}
                </Text>
                <Button label="⧉" />
              </Box>
            </Box>
            <Box display="none" flexDirection="column" marginLeft={2} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {none4}
              </Text>
              <Text dimColor wrap="truncate-end">
                {filter2}
              </Text>
              <Text italic>
                {`${byYou}: ${quote}`}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box>
              <Box flexShrink={0}>
                <Text bold wrap="truncate-end">
                  {id3}
                </Text>
              </Box>
              <Box width={8} flexShrink={0}>
                <Text dimColor>
                  {tag3}
                </Text>
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text wrap="truncate-end">
                  {what3}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  {" "}
                </Text>
                <Button label="↥" />
                <Text>
                  {" "}
                </Text>
                <Button label="⧉" />
              </Box>
            </Box>
            <Box display="none" flexDirection="column" marginLeft={2} paddingX={1} borderStyle="round" borderDimColor>
              <Text>
                {none5}
              </Text>
              <Text dimColor wrap="truncate-end">
                {filter3}
              </Text>
              <Text italic>
                {`${byYou}: ${quote}`}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title7}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title8}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="cyan" bold>
            {title9}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
          <Text>
            {`• ${item}`}
          </Text>
        </Box>
        <Box>
          <Text dimColor>
            {`haiku ×${calls}  `}
          </Text>
          <Button label={`${close}`} />
        </Box>
      </Box>
    )
  })

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

Mod 自身のコード

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

hooks/register.tsx 437〜544 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const cur = await read($, live)
    const doing = await read($, work)
    const isLive = e.props.isWorking && doing.startedAt !== null
    if (e.props.hasSurvey || (cur.gist === null && cur.turns.length === 0 && !isLive)) return next(e)
    const isPaneOpen = await read($, paneOpen)
    const { Box, Text, Button } = $.ui.resolve(e)
    const w = locale.words
    const g = cur.gist
    const details = (
      <Box flexShrink={0}>
        <Text> </Text>
        <Button key="details" label={w.details} onPress={() => void openPane($)} />
      </Box>
    )
    const purpose = (
      <Box>
        <Text color={ACCENT}>{w.purpose} </Text>
        <Text dimColor wrap="truncate-end">
          {g?.purpose ?? w.notYet}
        </Text>
      </Box>
    )

    // While Claude works: how long, what the turn has done so far, its latest call, and a row per
    // subagent. The previous turn's status and what waited on you are out of date by then.
    if (isLive) {
      const t = await read($, now)
      const started = doing.startedAt ?? t
      const tally = countsLine(doing, w.counts)
      const shown = doing.helpers.slice(0, HELPERS_SHOWN)
      const more = doing.helpers.length - shown.length
      return (
        <Box flexDirection="column">
          <Box>
            <Box flexShrink={0}>
              <Text color={ACCENT}>{isPaneOpen ? `${BOOKMARK} ${w.name}  ● ${w.states.working} ` : `${BOOKMARK} ● `}</Text>
              <Text>{elapsed(t - started)}</Text>
              {tally ? <Text dimColor>{`  ${tally}`}</Text> : null}
              <Text>{'  '}</Text>
            </Box>
            <Box flexGrow={1} flexShrink={1}>
              <Text dimColor wrap="truncate-end">
                {doing.last ?? ''}
              </Text>
            </Box>
            {isPaneOpen ? null : details}
          </Box>
          {shown.map(h => (
            <Box key={`helper-${h.id}`}>
              <Box flexShrink={0}>
                <Text dimColor>{'  └ '}</Text>
              </Box>
              <Box flexGrow={1} flexShrink={1}>
                <Text wrap="truncate-end">{h.what}</Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor>{`  ${h.type} · ${h.model}${h.tool ? `  ${h.tool}` : ''}  ${elapsed(t - h.startedAt)}`}</Text>
              </Box>
            </Box>
          ))}
          {more > 0 ? <Text dimColor>{`  └ +${more}`}</Text> : null}
          {isPaneOpen ? null : purpose}
        </Box>
      )
    }

    const counts = pendingCounts(g ? normalizeGist(g).pending : [])
    // The state comes first and never shrinks, so a long status cannot push it out of sight:
    // `?2 ◇1 !1` what waits on you, else ● working, ✓ nothing next, ○ idle.
    const [mark, color, said] =
      counts.length > 0
        ? [counts.map(c => `${c.mark}${c.n}`).join(' '), WAITING, counts.map(c => `${c.mark}${c.n} ${w.kinds[c.kind]}`).join(' · ')]
        : e.props.isWorking
          ? ['●', ACCENT, `● ${w.states.working}`]
          : g && !g.next
            ? ['✓', 'green', `✓ ${w.states.done}`]
            : ['○', undefined, `○ ${w.states.idle}`]

    // With the pane up it says the rest; the band names itself and spells the mark out.
    if (isPaneOpen)
      return (
        <Box>
          <Text color={ACCENT}>{`${BOOKMARK} ${w.name}  `}</Text>
          <Text color={color} dimColor={color === undefined} bold={counts.length > 0}>
            {said}
          </Text>
        </Box>
      )

    return (
      <Box flexDirection="column">
        <Box>
          <Box flexShrink={0}>
            <Text color={color} dimColor={color === undefined} bold={counts.length > 0}>
              {`${BOOKMARK} ${mark}`}
            </Text>
          </Box>
          <Text> </Text>
          <Box flexGrow={1} flexShrink={1}>
            <Text wrap="truncate-end">{g?.status ?? w.notYet}</Text>
          </Box>
          {details}
        </Box>
        {purpose}
      </Box>
    )
  })
hooks/register.tsx 546〜685 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button, Link } = $.ui.resolve(e)
    // A plugin may scroll the transcript on the terminal; the desktop app refuses it.
    const canScroll = e.surface === 'terminal'
    const cur = await read($, live)
    const w = locale.words
    const g = cur.gist
    const rows = (items: readonly string[]) => (items.length ? items : [w.none])
    const pending = g ? normalizeGist(g).pending : []
    // The id column fits the longest id, up to two fifths of the pane.
    const idWidth = Math.min(
      Math.max(8, ...(g?.refs ?? []).map(r => r.id.length + 2)),
      Math.max(12, Math.floor(e.props.bodyColumns * 0.4)),
    )
    const sections: [string, readonly string[]][] = g
      ? [
          [w.purpose, [g.purpose]],
          [w.status, [g.status]],
        ]
      : [[w.purpose, [w.notYet]]]
    const after: [string, readonly string[]][] = g ? [[w.next, rows(g.next ? [g.next] : [])]] : []
    const tail: [string, readonly string[]][] = g
      ? [
          [w.done, rows(g.done)],
          [w.decisions, rows(g.decisions)],
        ]
      : []

    return (
      <Box flexDirection="column" gap={1}>
        {sections.map(([title, items]) => (
          <Box key={`s-${title}`} flexDirection="column">
            <Text color={ACCENT} bold>
              {title}
            </Text>
            {items.map((item, i) => (
              <Text key={`${title}-${i}`}>{items.length > 1 ? `• ${item}` : item}</Text>
            ))}
          </Box>
        ))}
        {g ? (
          <Box key="s-pending" flexDirection="column">
            <Text color={ACCENT} bold>
              {w.pending}
            </Text>
            {pending.length === 0 ? <Text dimColor>{w.none}</Text> : null}
            {pending.map((p, i) => (
              <Box key={`p-${i}`}>
                <Box flexShrink={0}>
                  <Text color={WAITING} bold>{`${PENDING_MARK[p.kind]} `}</Text>
                  <Text dimColor>{`${w.kinds[p.kind]}  `}</Text>
                </Box>
                <Text>{p.text}</Text>
              </Box>
            ))}
          </Box>
        ) : null}
        {after.map(([title, items]) => (
          <Box key={`a-${title}`} flexDirection="column">
            <Text color={ACCENT} bold>
              {title}
            </Text>
            {items.map((item, i) => (
              <Text key={`${title}-${i}`}>{item}</Text>
            ))}
          </Box>
        ))}
        {g ? (
          <Box key="s-refs" flexDirection="column">
            <Text color={ACCENT} bold>
              {w.refs}
            </Text>
            {g.refs.length === 0 ? <Text dimColor>{w.none}</Text> : null}
            {g.refs.map(r => {
              const url = refUrl(r, rules)
              const tag = KIND_TAG[r.kind]
              // One line per id, in columns: the id (a link where it has a URL), its kind, what it
              // is, then the buttons at the right end. Hovering the line opens its details beneath
              // it, in the flow, so nothing is drawn over other rows.
              return (
                <Box key={`ref-${r.id}`} flexDirection="column">
                  <Box>
                    <Box width={idWidth} flexShrink={0}>
                      {url ? <Link href={url} label={r.id} /> : <Text bold wrap="truncate-end">{r.id}</Text>}
                    </Box>
                    <Box width={TAG_WIDTH} flexShrink={0}>
                      <Text dimColor>{tag}</Text>
                    </Box>
                    <Box flexGrow={1} flexShrink={1}>
                      <Text wrap="truncate-end">{r.what}</Text>
                    </Box>
                    {/* A link opens on the desktop; a terminal (a container with no browser) copies it instead. */}
                    {canScroll ? (
                      <Box flexShrink={0}>
                        <Text> </Text>
                        <Button key={`go-${r.id}`} label="↥" onPress={() => void jumpTo($, r.id)} />
                        {url ? <Text> </Text> : null}
                        {url ? <Button key={`copy-${r.id}`} label="⧉" onPress={() => void copyUrl($, url, e.surface)} /> : null}
                      </Box>
                    ) : null}
                  </Box>
                  <Box
                    display="none"
                    hover={{ display: 'flex' }}
                    flexDirection="column"
                    marginLeft={2}
                    paddingX={1}
                    borderStyle="round"
                    borderDimColor
                  >
                    <Text>{r.what || w.none}</Text>
                    <Text dimColor wrap="truncate-end">
                      {[tag, url, w.lastSeen(r.turn)].filter(Boolean).join('  ·  ')}
                    </Text>
                    {r.quote ? (
                      <Text italic>{`${r.quoteBy === 'user' ? w.byYou : w.byClaude}: ${r.quote}`}</Text>
                    ) : null}
                  </Box>
                </Box>
              )
            })}
          </Box>
        ) : null}
        {tail.map(([title, items]) => (
          <Box key={`t-${title}`} flexDirection="column">
            <Text color={ACCENT} bold>
              {title}
            </Text>
            {items.map((item, i) => (
              <Text key={`${title}-${i}`}>{items.length > 1 ? `• ${item}` : item}</Text>
            ))}
          </Box>
        ))}
        <Box key="footer">
          <Text dimColor>{`haiku ×${cur.usage.calls}  `}</Text>
          <Button key="close" label={w.close} onPress={() => void closePane($)} />
        </Box>
      </Box>
    )
  })
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 mitaku

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 を動かすツール呼び出し保存

コードから読めること

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

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

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

入れる

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

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

/plugin marketplace add mitaku/cc-shiori
/plugin install shiori@cc-shiori

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

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン