modscode EN

modscode / 図鑑 / gh-pulse

gh-pulse

PR checks and GitHub Actions runs, live in Claude Code. Failing logs one key from Claude, and Space Invaders for your pipelines.

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

何をするか

  • プロンプトの上の帯・欄・トーストを描く
  • /pulse・/pulse-pr・/pulse-release・/pulse-clear を足す
  • Bash の呼び出しを見張る(止めることがある)
  • prompt.submit・session.start・ui.focus・ui.scrollにフックする
  • ターンをまたいで自分の状態を持つ

良いところ

  • TypeScript で書かれている
  • エラーを扱う
  • ファイルを書かない

作り始めるためのコード

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

雛形(register.tsx)

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

// Drawn like gh-pulse by SID Technologies (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/sid-technologies-gh-pulse/
// 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 glyph = '…'
    const shortName = '…'
    const label = '…'
    const cells = '…'
    const cells2 = '…'
    const cells3 = '…'
    const pass = '…'
    const total = '…'
    const sparkle = '…'
    const sparkle2 = '…'
    const glyph2 = '…'
    const shortName2 = '…'
    const label2 = '…'
    const cells4 = '…'
    const cells5 = '…'
    const cells6 = '…'
    const pass2 = '…'
    const total2 = '…'
    const sparkle3 = '…'
    const sparkle4 = '…'
    const glyph3 = '…'
    const shortName3 = '…'
    const label3 = '…'
    const cells7 = '…'
    const cells8 = '…'
    const cells9 = '…'
    const pass3 = '…'
    const total3 = '…'
    const sparkle5 = '…'
    const sparkle6 = '…'
    return (
      <Box flexDirection="column">
        <Box justifyContent="space-between">
          <Box gap={2}>
            <Box gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  {glyph}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor wrap="truncate">
                  {shortName}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text wrap="truncate">
                  {label}
                </Text>
              </Box>
            </Box>
            <Box width={10} flexShrink={0}>
              <Box flexShrink={0}>
                <Text>
                  {cells}
                </Text>
                <Text>
                  {cells2}
                </Text>
                <Text>
                  {cells3}
                </Text>
              </Box>
            </Box>
            <Box flexShrink={0} justifyContent="flex-end">
              <Text>
                {pass}
                /
                {total}
              </Text>
            </Box>
            <Text color="magenta" bold>
              {sparkle}
              {" "}
              merged
              {" "}
              {sparkle2}
            </Text>
          </Box>
          <Box gap={2}>
            <Button plain dimColor hotkey="b" label="open board" />
            <Button plain dimColor hotkey="h" label="hide" />
          </Box>
        </Box>
        <Box justifyContent="space-between">
          <Box gap={2}>
            <Box gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  {glyph2}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor wrap="truncate">
                  {shortName2}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text wrap="truncate">
                  {label2}
                </Text>
              </Box>
            </Box>
            <Box width={10} flexShrink={0}>
              <Box flexShrink={0}>
                <Text>
                  {cells4}
                </Text>
                <Text>
                  {cells5}
                </Text>
                <Text>
                  {cells6}
                </Text>
              </Box>
            </Box>
            <Box flexShrink={0} justifyContent="flex-end">
              <Text>
                {pass2}
                /
                {total2}
              </Text>
            </Box>
            <Text color="magenta" bold>
              {sparkle3}
              {" "}
              merged
              {" "}
              {sparkle4}
            </Text>
          </Box>
          <Box gap={2}>
            <Button plain dimColor hotkey="b" label="open board" />
            <Button plain dimColor hotkey="h" label="hide" />
          </Box>
        </Box>
        <Box justifyContent="space-between">
          <Box gap={2}>
            <Box gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  {glyph3}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor wrap="truncate">
                  {shortName3}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text wrap="truncate">
                  {label3}
                </Text>
              </Box>
            </Box>
            <Box width={10} flexShrink={0}>
              <Box flexShrink={0}>
                <Text>
                  {cells7}
                </Text>
                <Text>
                  {cells8}
                </Text>
                <Text>
                  {cells9}
                </Text>
              </Box>
            </Box>
            <Box flexShrink={0} justifyContent="flex-end">
              <Text>
                {pass3}
                /
                {total3}
              </Text>
            </Box>
            <Text color="magenta" bold>
              {sparkle5}
              {" "}
              merged
              {" "}
              {sparkle6}
            </Text>
          </Box>
          <Box gap={2}>
            <Button plain dimColor hotkey="b" label="open board" />
            <Button plain dimColor hotkey="h" label="hide" />
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "gh-pulse" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const LAYOUT_LABEL = '…'
    const finishedCount = '…'
    const label = '…'
    const doing = '…'
    const keys = '…'
    const does = '…'
    const keys2 = '…'
    const does2 = '…'
    const keys3 = '…'
    const does3 = '…'
    const keys4 = '…'
    const does4 = '…'
    const keys5 = '…'
    const does5 = '…'
    const keys6 = '…'
    const does6 = '…'
    const keys7 = '…'
    const does7 = '…'
    const keys8 = '…'
    const does8 = '…'
    const keys9 = '…'
    const does9 = '…'
    const indexOf = '…'
    return (
      <Box flexDirection="column" paddingX={1} gap={1}>
        <Box flexDirection="column">
          <Box gap={3} flexWrap="wrap">
            <Button plain dimColor hotkey="r" label="Refresh" />
            <Button plain dimColor hotkey="m" label={`${LAYOUT_LABEL}`} />
            <Button plain hotkey="f" label="Fix it" />
            <Button plain dimColor hotkey="e" label="Rerun failed" />
            <Button plain dimColor hotkey="l" label="Next log" />
            <Button plain dimColor hotkey="y" label="Copy log" />
            <Button plain hotkey="a" label="Review with Claude" />
            <Button plain dimColor hotkey="o" label="Open" />
            <Button plain dimColor hotkey="x" label="Remove" />
            <Button plain dimColor hotkey="d" label={`Clear finished (${finishedCount})`} />
            <Button plain dimColor hotkey="c" label="Clear" />
            <Button plain hotkey="z" label={`Undo (${label})`} />
            <Button plain dimColor hotkey="h" label="Hide keys" />
          </Box>
          <Text color="yellow" wrap="truncate-end">
            pending
            {" "}
            {doing}
            …
          </Text>
        </Box>
        <Box borderStyle="round" borderDimColor paddingX={1} gap={4}>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys2}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does2}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys3}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does3}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys4}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does4}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys5}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does5}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys6}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does6}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys7}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does7}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys8}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does8}
              </Text>
            </Box>
            <Box gap={1}>
              <Box width={9} flexShrink={0}>
                <Text color="cyan">
                  {keys9}
                </Text>
              </Box>
              <Text dimColor wrap="truncate">
                {does9}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" minWidth={0} borderStyle="round" paddingX={1}>
          <Button plain hotkey={`${indexOf}`} label={`${label}`} />
          <Box flexDirection="column" />
        </Box>
        <Box gap={1}>
          <Box flexDirection="column" minWidth={0} borderStyle="round" paddingX={1}>
            <Button plain hotkey={`${indexOf}`} label={`${label}`} />
            <Box flexDirection="column" />
          </Box>
          <Box flexDirection="column" minWidth={0} borderStyle="round" paddingX={1}>
            <Button plain hotkey={`${indexOf}`} label={`${label}`} />
            <Box flexDirection="column" />
          </Box>
        </Box>
        <Text dimColor>
          Nothing open. Press m to bring the list back.
        </Text>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const number = '…'
    await $.ui.toast(`gh-pulse is ready: GitHub CLI found and signed in`)
    await $.ui.toast(`PR #${number} has nothing failing`)
    return next(e)
  })
}

Mod 自身のコード

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

hooks/register.tsx 975〜1084 行 · バンド
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const prList = await read($, prs)
    const releaseList = await read($, releases)
    if (e.props.hasSurvey || (await read($, isBandHidden)) || prList.length + releaseList.length === 0) {
      return next(e)
    }

    const { Box, Button, Link, Text } = $.ui.resolve(e)
    const f = await read($, frame)
    const party = await read($, celebration)
    const sparkle = ['✦', '✧', '⋆', '✧'][Math.floor(f / 3) % 4]

    const rows = [
      ...prList.slice(-2).map(pr => ({
        key: pr.url,
        repo: pr.repo,
        isParty: isCelebrating(party, f) && party.kind === 'merged' && party.key === prKey(pr),
        state: prState(pr) as Shown,
        label: `#${pr.number}`,
        url: pr.url,
        t: tally(pr.checks),
      })),
      ...releaseList.slice(-1).map(r => ({
        key: r.key,
        repo: r.repo ?? '',
        isParty: isCelebrating(party, f) && party.kind === 'released' && party.key === releaseKey(r),
        state: releaseState(r) as Shown,
        label: r.label,
        url: r.url ?? r.runs[0]?.url,
        t: tally(releaseItems(r)),
      })),
    ]

    const Bar = ({ t, width }: { t: Tally; width: number }) => {
      return (
        <Box>
          {segments(t, width).map((seg, i) => (
            <Text key={`seg-${i}`} color={tone(seg.state)} dimColor={seg.state === 'skip'}>
              {cells(seg, f)}
            </Text>
          ))}
        </Box>
      )
    }

    // Fixed columns, as on the board, so rows line up and don't shift as counts change.
    const shortName = (repo: string) => repo.split('/')[1] ?? repo
    const repoWidth = Math.min(14, Math.max(0, ...rows.map(row => shortName(row.repo).length)))
    const labelWidth = Math.min(14, Math.max(...rows.map(row => row.label.length)))
    const countWidth = Math.max(...rows.map(row => `${row.t.pass}/${row.t.total}`.length))
    return (
      <Box flexDirection="column">
        {rows.map((row, i) => (
          <Box key={`band-${row.key}`} justifyContent="space-between">
            <Box gap={2}>
              <Box gap={1}>
                <Box width={1} flexShrink={0}>
                  <Text color={tone(row.state)}>{glyph(row.state, f)}</Text>
                </Box>
                {repoWidth > 0 && (
                  <Box width={repoWidth} flexShrink={0}>
                    <Text dimColor wrap="truncate">
                      {clip(shortName(row.repo), repoWidth)}
                    </Text>
                  </Box>
                )}
                <Box width={labelWidth} flexShrink={0}>
                  {row.url ? <Link href={row.url} label={clip(row.label, labelWidth)} /> : <Text wrap="truncate">{clip(row.label, labelWidth)}</Text>}
                </Box>
              </Box>
              <Box width={BAND_BAR} flexShrink={0}>
                {Bar({ t: row.t, width: BAND_BAR })}
              </Box>
              <Box width={countWidth} flexShrink={0} justifyContent="flex-end">
                <Text>
                  {row.t.pass}/{row.t.total}
                </Text>
              </Box>
              {row.isParty ? (
                <Text color="magenta" bold>
                  {sparkle} {row.state === 'merged' ? 'merged' : 'released'} {sparkle}
                </Text>
              ) : (
                <Text color={row.t.fail > 0 ? 'red' : undefined} dimColor={row.t.fail === 0}>
                  {trouble(row.t)}
                </Text>
              )}
            </Box>
            {i === 0 && (
              <Box gap={2}>
                <Button
                  key="open"
                  plain
                  dimColor
                  hotkey="b"
                  label="open board"
                  onPress={async () => {
                    // The band has focus here, so the board can't take it.
                    await openBoard($)
                    $.ui.toast('Board open · esc, then ctrl+x tab to use its keys', { timeoutMs: 5000 })
                  }}
                />
                <Button key="hide" plain dimColor hotkey="h" label="hide" onPress={() => update($, isBandHidden, () => true)} />
              </Box>
            )}
          </Box>
        ))}
      </Box>
    )
  })
hooks/register.tsx 1170〜1180 行 · バンド
    const Bar = ({ t, width }: { t: Tally; width: number }) => {
      return (
        <Box flexShrink={0}>
          {segments(t, width).map((seg, i) => (
            <Text key={`seg-${i}`} color={tone(seg.state)} dimColor={seg.state === 'skip'}>
              {cells(seg, f)}
            </Text>
          ))}
        </Box>
      )
    }
hooks/register.tsx 1121〜1280 行 · ペイン
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const elements = $.ui.resolve(e)
    const { Box, Button, Link, Text } = elements
    // Raster and Image are terminal-only.
    const Raster = 'Raster' in elements ? elements.Raster : undefined
    const Image = 'Image' in elements ? elements.Image : undefined
    const party = await read($, celebration)
    const pastRuns = await read($, history)
    const faces = await read($, avatars)
    const prList = await read($, prs)
    const releaseList = await read($, releases)
    const mine = await read($, openPrs)
    const me = await read($, viewer)
    const allLogs = await read($, logs)
    const chosenLog = await read($, logCheck)
    const f = await read($, frame)
    const shown = await read($, layout)
    const kept = await read($, undo)
    const cursorKey = await read($, cursor)
    const doing = await read($, busy)
    const isShowingKeys = await read($, isKeysShown)
    const props = e.props as { bodyColumns?: number; isFocused?: boolean; scroll?: { bodyRows?: number } }
    const columns = Number(props.bodyColumns ?? 80)
    const inner = Math.max(20, columns - 2)
    const barWidth = Math.max(10, Math.min(64, inner))

    const advice = setupAdvice(await read($, setup))
    if (advice) {
      return (
        <Box flexDirection="column" paddingX={1} gap={1}>
          <Text bold color="yellow">
            {advice.title}
          </Text>
          <Box flexDirection="column">
            {advice.steps.map((step, i) => (
              <Box key={`step-${i}`} gap={2}>
                <Text dimColor>{i + 1}</Text>
                <Text>{step}</Text>
              </Box>
            ))}
          </Box>
          <Box gap={2}>
            <Link href="https://cli.github.com" label="cli.github.com" />
            <Button key="recheck" plain dimColor hotkey="r" label="Check again" onPress={() => checkGh($)} />
          </Box>
        </Box>
      )
    }

    const Bar = ({ t, width }: { t: Tally; width: number }) => {
      return (
        <Box flexShrink={0}>
          {segments(t, width).map((seg, i) => (
            <Text key={`seg-${i}`} color={tone(seg.state)} dimColor={seg.state === 'skip'}>
              {cells(seg, f)}
            </Text>
          ))}
        </Box>
      )
    }

    const Verdict = ({ state, t }: { state: Shown; t: Tally }) => (
      <Box gap={1}>
        <Text color={tone(state)}>{glyph(state, f)}</Text>
        <Box width={10}>
          <Text bold color={tone(state)}>
            {verdict(state)}
          </Text>
        </Box>
        <Text dimColor>{summary(t)}</Text>
      </Box>
    )

    // A detail row: status, group (a check's workflow, a job's run), name, time.
    // Fixed widths, shared by every row in the detail, so the columns line up.
    const groupWidthOf = (groups: readonly string[]) => Math.min(24, Math.max(0, ...groups.map(group => group.length)))
    const Row = ({ key, state, group, groupWidth, name, url, ms, isWaiting = false, isDim = false }: {
      key: string
      state: Shown
      group: string
      groupWidth: number
      name: string
      url?: string
      ms?: number
      isWaiting?: boolean
      isDim?: boolean
    }) => {
      const columns = [1, groupWidth, TIME_COLUMN].filter(w => w > 0)
      const nameWidth = Math.max(8, inner - columns.reduce((sum, w) => sum + w, 0) - 2 * columns.length)
      return (
        <Box key={key} gap={2}>
          <Box width={1} flexShrink={0}>
            <Text color={tone(state)}>{glyph(state, f)}</Text>
          </Box>
          {groupWidth > 0 && (
            <Box width={groupWidth} flexShrink={0}>
              <Text dimColor wrap="truncate">
                {clip(group, groupWidth)}
              </Text>
            </Box>
          )}
          <Box width={nameWidth} flexShrink={0} overflow="hidden">
            {url ? (
              <Link href={url} label={clip(name, nameWidth)} />
            ) : (
              <Text dimColor={isDim} wrap="truncate">
                {clip(name, nameWidth)}
              </Text>
            )}
          </Box>
          <Box width={TIME_COLUMN} flexShrink={0} justifyContent="flex-end">
            <Text dimColor>{isWaiting ? 'waiting' : state === 'pending' ? 'running' : duration(ms)}</Text>
          </Box>
        </Box>
      )
    }

    const items = [
      ...[...prList].reverse().map(pr => ({
        key: prKey(pr),
        label: `#${pr.number}`,
        title: pr.title,
        state: prState(pr) as Shown,
        t: tally(pr.checks),
        pr,
      })),
      ...[...releaseList].reverse().map(r => ({
        key: releaseKey(r),
        label: r.label,
        title: r.runs[0]?.title ?? '',
        state: releaseState(r) as Shown,
        t: tally(releaseItems(r)),
        release: r,
      })),
    ]
    const chosen = await read($, selected)
    const openKey = items.some(item => item.key === chosen) ? chosen : (items[0]?.key ?? '')
    const labelWidth = Math.min(14, Math.max(4, ...items.map(item => item.label.length), ...mine.prs.map(pr => `#${pr.number}`.length)))

    const drawPr = (pr: Pr) => {
      const t = tally(pr.checks)
      const state = prState(pr)
      const workflows = [...new Set(pr.checks.map(c => c.workflow).filter((w): w is string => Boolean(w)))]
      const groupWidth = groupWidthOf(workflows)
      // Failures and their log first, then everything else.
      const failing = pr.checks.filter(c => c.state === 'fail')
      const others = byUrgency(pr.checks.filter(c => c.state !== 'fail'))
      const checkRow = (c: (typeof pr.checks)[number]) =>
        Row({
          key: `${pr.url}#${c.workflow ?? ''}/${c.name}`,
          state: c.state,
          group: c.workflow ?? '',
          groupWidth,
          name: c.name,
          url: c.url,
          ms: c.durationMs,
        })
      const review = reviewLabel(pr.review)
      const merge = mergeLabel(pr)
      return (
ライセンスの全文(MIT)
MIT License

Copyright (c) 2026 SID Technologies

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

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

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

入れる

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

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

/plugin marketplace add SID-Technologies/gh-pulse
/plugin install gh-pulse@gh-pulse

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

Claude に聞く

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

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

Claude から探す: MCP コネクタ

似たデザイン