pr-pulse
PR Pulse: live status, merge readiness, checks, comments, review queue and change alerts for your GitHub PRs, with a collapsible band
何をするか
- プロンプトの上の帯・欄・ステータス行・トーストを描く
- /pulse を足す
- classic.CwdChanged・session.start・ui.closeにフックする
- プロセスを起こす
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
- ファイルを書かない
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like pr-pulse by Gerric Chaplin (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/gerricchaplin-pr-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 g = '…'
const number = '…'
const b = '…'
const g2 = '…'
const b2 = '…'
const g3 = '…'
const b3 = '…'
const length = '…'
const text = '…'
const toLocaleTimeString = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text backgroundColor="#6000F0" color="#F4F0FF">
{" ◆ PR "}
</Text>
<Text color="#A7B1C2">
no open PRs
</Text>
<Box flexDirection="row">
<Text>
{g}
{" "}
</Text>
<Button plain label={`#${number}`} />
<Text color="#86D9A8">
{" "}
{b}
</Text>
</Box>
<Box flexDirection="row">
<Text>
{g2}
{" "}
</Text>
<Button plain label={`#${number}`} />
<Text color="#86D9A8">
{" "}
{b2}
</Text>
</Box>
<Box flexDirection="row">
<Text>
{g3}
{" "}
</Text>
<Button plain label={`#${number}`} />
<Text color="#86D9A8">
{" "}
{b3}
</Text>
</Box>
<Text color="#C9B8FB">
{"👀 "}
{length}
{" to review"}
</Text>
<Button label="⤢ Expand" hotkey="e" />
</Box>
<Text color="#F2A0A0">
{" "}
{text}
{" · "}
{toLocaleTimeString}
</Text>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "PR Pulse" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Markdown } = $.ui.resolve(e)
const title = '…'
const number = '…'
const review = '…'
const mergeable = '…'
const text = '…'
const label = '…'
const label2 = '…'
const label3 = '…'
const toLocaleTimeString = '…'
const POLL_MS = '…'
const error = '…'
const where = '…'
const state = '…'
const when = '…'
const state2 = '…'
const when2 = '…'
const state3 = '…'
const when3 = '…'
const where2 = '…'
const state4 = '…'
const when4 = '…'
const state5 = '…'
const when5 = '…'
const state6 = '…'
const when6 = '…'
const where3 = '…'
const state7 = '…'
const when7 = '…'
const state8 = '…'
const when8 = '…'
const state9 = '…'
const when9 = '…'
const state10 = '…'
const when10 = '…'
const body = '…'
const state11 = '…'
const when11 = '…'
const state12 = '…'
const when12 = '…'
const author = '…'
const split = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text backgroundColor="#6000F0" color="#F4F0FF">
{" ◆ PR PULSE "}
</Text>
<Text color="#A7B1C2">
{" "}
…
</Text>
</Text>
<Box flexDirection="row" gap={1}>
<Button label="↻ Refresh" hotkey="r" />
<Button label="▁ Minimise" hotkey="m" />
<Button label="✕ Close" hotkey="q" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#A37BFF" paddingX={1} marginTop={1}>
<Box flexDirection="row" gap={1}>
<Button variant="primary" label="↗ Open PR" hotkey="o" />
<Text>
{title}
</Text>
</Box>
<Text>
<Text color="#C9B8FB">
#
{number}
</Text>
<Text color="#A7B1C2">
{" · "}
</Text>
<Text color="#A7B1C2">
○ draft
</Text>
<Text color="#A7B1C2">
{" · "}
</Text>
<Text>
{"● "}
{review}
</Text>
<Text color="#A7B1C2">
{" · "}
</Text>
<Text color="#F2A0A0">
{mergeable}
</Text>
</Text>
<Box flexDirection="row">
<Text color="#E9CB7C">
{"💬 "}
</Text>
<Button plain label="0 unresolved · 0 thread · conversation ›" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#0F1729">
{text}
</Text>
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text color="#86D9A8">
✓
{" "}
{label}
</Text>
<Text color="#86D9A8">
✓
{" "}
{label2}
</Text>
<Text color="#86D9A8">
✓
{" "}
{label3}
</Text>
</Box>
</Box>
<Text color="#A7B1C2">
{"updated "}
{toLocaleTimeString}
{" · auto-refresh "}
{POLL_MS}
s
</Text>
<Text color="#F2A0A0">
{"⚠ "}
{error}
</Text>
</Box>
<Box marginTop={1}>
<Button plain label="← checks" />
</Box>
<Text color="#A7B1C2">
Loading comments…
</Text>
<Box flexDirection="column">
<Box marginTop={1}>
<Text color="#E9CB7C">
UNRESOLVED THREADS
</Text>
</Box>
<Text color="#86D9A8">
✓ Nothing waiting on you.
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#C9B8FB">
{where}
</Text>
<Box flexDirection="row" columnGap={1}>
<Button label="✦ Address with Claude" />
<Button label="↗ Open" />
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state}
</Text>
<Text color="#A7B1C2">
{" · "}
{when}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state2}
</Text>
<Text color="#A7B1C2">
{" · "}
{when2}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state3}
</Text>
<Text color="#A7B1C2">
{" · "}
{when3}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#C9B8FB">
{where2}
</Text>
<Box flexDirection="row" columnGap={1}>
<Button label="✦ Address with Claude" />
<Button label="↗ Open" />
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state4}
</Text>
<Text color="#A7B1C2">
{" · "}
{when4}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state5}
</Text>
<Text color="#A7B1C2">
{" · "}
{when5}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state6}
</Text>
<Text color="#A7B1C2">
{" · "}
{when6}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#E9CB7C" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#C9B8FB">
{where3}
</Text>
<Box flexDirection="row" columnGap={1}>
<Button label="✦ Address with Claude" />
<Button label="↗ Open" />
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state7}
</Text>
<Text color="#A7B1C2">
{" · "}
{when7}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state8}
</Text>
<Text color="#A7B1C2">
{" · "}
{when8}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state9}
</Text>
<Text color="#A7B1C2">
{" · "}
{when9}
</Text>
</Text>
<Markdown text="_(no text)_" />
</Box>
</Box>
<Box marginTop={1}>
<Text>
CONVERSATION
</Text>
</Box>
<Text color="#A7B1C2">
No general comments.
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state10}
</Text>
<Text color="#A7B1C2">
{" · "}
{when10}
</Text>
</Text>
<Button plain label="↗" />
</Box>
<Markdown text={`${body}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state11}
</Text>
<Text color="#A7B1C2">
{" · "}
{when11}
</Text>
</Text>
<Button plain label="↗" />
</Box>
<Markdown text={`${body}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#48566A" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="#C9B8FB">
you
</Text>
<Text color="#86D9A8">
{" · "}
{state12}
</Text>
<Text color="#A7B1C2">
{" · "}
{when12}
</Text>
</Text>
<Button plain label="↗" />
</Box>
<Markdown text={`${body}`} />
</Box>
<Box marginTop={1}>
<Text color="#A7B1C2">
RESOLVED THREADS
</Text>
</Box>
<Box flexDirection="row">
<Text color="#86D9A8">
{"✓ "}
</Text>
<Button plain dimColor label={`${where} · ${author}: ${split}`} />
</Box>
<Box flexDirection="row">
<Text color="#86D9A8">
{"✓ "}
</Text>
<Button plain dimColor label={`${where} · ${author}: ${split}`} />
</Box>
<Box flexDirection="row">
<Text color="#86D9A8">
{"✓ "}
</Text>
<Button plain dimColor label={`${where} · ${author}: ${split}`} />
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const number = '…'
const state = '…'
const failed = '…'
const url = '…'
await $.ui.status(`PR #${number} ${state} · 0 unresolved · ${failed} failed`)
await $.ui.toast(`Couldn't open ${url}`)
await $.ui.toast(`Draft added to your prompt: review it, then press Enter`)
return next(e)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
hooks/register.tsx 631〜639 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey || !(await read($, watchingAtom)) || !(await read($, collapsedAtom))) return next(e)
const open: PrRow[] = await read($, openAtom)
const selected: number = await read($, selectedAtom)
const queue: ReviewRow[] = await read($, reviewsAtom)
const alerts: Alert[] = await read($, alertsAtom)
const latest = alerts[0] && Date.now() - alerts[0].at < BAND_ALERT_MS ? alerts[0] : undefined
return band($.ui.resolve(e), $, open, selected, queue.length, latest)
})hooks/register.tsx 547〜578 行 · バンド
function band(ui: any, $: any, open: PrRow[], selected: number, queue: number, latest: Alert | undefined) {
const { Box, Text, Button } = ui
const t = theme
const glyph = (p: PrRow) =>
p.checks === 'failed' ? { g: '✗', c: t.fail } : p.checks === 'running' ? { g: '◐', c: t.run } : p.checks === 'passed' ? { g: '✓', c: t.ok } : { g: '○', c: t.muted }
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text backgroundColor={t.brandBg} color={t.onBrand}> ◆ PR </Text>
{open.length === 0 && <Text color={t.muted}>no open PRs</Text>}
{open.map(p => {
const gl = glyph(p)
const b = blocker(p)
return (
<Box key={`chip-${p.number}`} flexDirection="row">
<Text color={gl.c}>{gl.g} </Text>
<Button plain key={`chip-open-${p.number}`} dimColor={p.number !== selected} label={`#${p.number}`} onPress={() => void expand($, p.number)} />
<Text color={b === 'ready' ? t.ok : t.muted}> {b}</Text>
</Box>
)
})}
{queue > 0 && <Text color={t.accent}>👀 {queue} to review</Text>}
<Button key="expand" label="⤢ Expand" hotkey="e" onPress={() => void expand($)} />
</Box>
{latest && (
<Text color={latest.tone === 'fail' ? t.fail : latest.tone === 'ok' ? t.ok : t.muted}>
{' '}{latest.text} · {new Date(latest.at).toLocaleTimeString().slice(0, 5)}
</Text>
)}
</Box>
)
}hooks/register.tsx 641〜800 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const t = theme
const pr = await read($, prAtom)
const repo: string = await read($, repoAtom)
const openPrs: PrRow[] = await read($, openAtom)
const selected: number = await read($, selectedAtom)
const error = await read($, errorAtom)
const loaded: number = await read($, loadedAtom)
const view: View = await read($, viewAtom)
const steps: Step[] = await read($, stepsAtom)
const failedLog: string[] = await read($, logAtom)
const alerts: Alert[] = await read($, alertsAtom)
const pick = (n: number) => async () => {
await update($, selectedAtom, () => n)
await update($, viewAtom, () => ({}))
await update($, stepsAtom, () => [])
void refresh($)
}
const go = (v: View) => async () => {
await update($, viewAtom, () => v)
await update($, stepsAtom, () => [])
await update($, logAtom, () => [])
if (v.comments) await update($, commentsLoadedAtom, () => false)
if (v.job && pr) await loadSteps($, pr, v.job)
if (v.comments && pr) await loadComments($, pr)
}
const topBar = (
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text backgroundColor={t.brandBg} color={t.onBrand}> ◆ PR PULSE </Text>
<Text color={t.muted}> {repo || '…'}</Text>
</Text>
<Box flexDirection="row" gap={1}>
<Button key="refresh" label="↻ Refresh" hotkey="r" onPress={() => void refresh($, true)} />
<Button key="minimise" label="▁ Minimise" hotkey="m" onPress={() => void minimise($)} />
<Button key="close" label="✕ Close" hotkey="q" onPress={() => void stop($)} />
</Box>
</Box>
)
const section = (label: string, count?: number, color = t.accent) => (
<Box marginTop={1}>
<Text color={color}>{count === undefined ? label.toUpperCase() : `${label.toUpperCase()} · ${count}`}</Text>
</Box>
)
const errorLine = error ? <Text color={t.fail}>⚠ {error}</Text> : null
const openSection = (
<Box flexDirection="column">
{section('Open PRs', openPrs.length)}
{openPrs.length === 0 && <Text color={t.muted}>None open.</Text>}
{openPrs.map(p => {
const isSel = p.number === selected
return (
<Box key={`pr-row-${p.number}`} flexDirection="row">
<Text color={t.brand}>{isSel ? '▸ ' : ' '}</Text>
<Button plain key={`pr-${p.number}`} dimColor={!isSel} label={`#${p.number} ${p.title}`} onPress={pick(p.number)} />
{p.isDraft && <Text color={t.muted}> · draft</Text>}
</Box>
)
})}
</Box>
)
if (!pr) {
return (
<Box flexDirection="column">
{topBar}
{openSection}
{errorLine ?? <Text color={t.muted}>Loading PR…</Text>}
</Box>
)
}
const groups = new Map<string, Check[]>()
for (const c of pr.checks) groups.set(c.workflow, [...(groups.get(c.workflow) ?? []), c])
const total = pr.checks.length
const done = pr.checks.filter(c => !isPending(c)).length
const count = (cs: Check[]) => {
const n: Record<Outcome, number> = { failed: 0, running: 0, passed: 0, skipped: 0 }
for (const c of cs) n[outcome(c)]++
return n
}
const counts = count(pr.checks)
const bar = (n: Record<Outcome, number>, of: number) => {
const cells = (k: number) => (of ? Math.round((k / of) * BAR_WIDTH) : 0)
const order: Outcome[] = ['failed', 'passed', 'skipped', 'running']
const widths = order.map(o => cells(n[o]))
const rest = Math.max(0, BAR_WIDTH - widths.reduce((a, b) => a + b, 0))
return (
<Text>
{order.map((o, i) => <Text color={tone(o)}>{'█'.repeat(widths[i]!)}</Text>)}
<Text color={t.rule}>{'░'.repeat(rest)}</Text>
</Text>
)
}
const tally = (n: Record<Outcome, number>) => (
<Text>
{OUTCOMES.filter(o => n[o]).map(o => (
<Text color={tone(o)}>{GLYPH[o]} {n[o]} {o} </Text>
))}
</Text>
)
const checkRow = (c: Check, key: string, label: string) => {
const i = icon(c.status, c.conclusion)
return (
<Box key={key} flexDirection="row">
<Text color={tone(i.tone)}>{i.glyph} </Text>
<Button plain label={label} onPress={go({ workflow: c.workflow, job: c })} />
</Box>
)
}
const review = pr.review.toUpperCase()
const reviewColor = review === 'APPROVED' ? t.ok : review === 'CHANGES_REQUESTED' ? t.fail : t.run
const reqChecks = pr.required.length ? pr.checks.filter(c => pr.required.includes(c.name)) : pr.checks
const reqFailed = reqChecks.filter(isFailed).length
const reqPending = reqChecks.filter(isPending).length
const plural = (n: number, w: string) => `${n} ${w}${n === 1 ? '' : 's'}`
const checkWord = pr.required.length ? 'required check' : 'check'
// ok: true passes, false blocks, null is waiting or advisory
const readiness: { ok: boolean | null; label: string }[] = [
{ ok: !pr.isDraft, label: pr.isDraft ? 'draft' : 'ready for review' },
{
ok: reqFailed ? false : reqPending ? null : true,
label: reqFailed ? `${plural(reqFailed, checkWord)} failing` : reqPending ? `${plural(reqPending, checkWord)} running` : `${checkWord}s passed`,
},
{
ok: review === 'APPROVED' || review === 'NONE',
label: review === 'APPROVED' ? 'approved' : review === 'CHANGES_REQUESTED' ? 'changes requested' : review === 'NONE' ? 'no review required' : 'needs approval',
},
{ ok: pr.unresolved <= 0, label: pr.unresolved > 0 ? plural(pr.unresolved, 'unresolved thread') : 'threads resolved' },
{ ok: pr.mergeable !== 'CONFLICTING', label: pr.mergeable === 'CONFLICTING' ? 'merge conflicts' : 'no conflicts' },
// behind is only a blocker when a branch rule demands up-to-date branches, which github reports as BEHIND
{
ok: !pr.behind ? true : pr.mergeState === 'BEHIND' ? false : null,
label: pr.behind ? `${plural(pr.behind, 'commit')} behind ${pr.base}` : `up to date with ${pr.base}`,
},
]
const waiting = readiness.some(r => r.ok === null && r.label.includes('running'))
// github can block on rules the checklist cannot see (signed commits, codeowners, deployments)
if (pr.mergeState === 'BLOCKED' && !waiting && readiness.every(r => r.ok !== false)) {
readiness.push({ ok: false, label: 'blocked by a branch rule' })
}
const blockers = readiness.filter(r => r.ok === false).length
const isReady = pr.state === 'OPEN' && !blockers && !waiting
const verdict =
pr.state === 'MERGED' ? { text: ' ⑂ MERGED ', bg: t.brandBg }
: pr.state === 'CLOSED' ? { text: ' ⊘ CLOSED ', bg: t.rule }
: isReady ? { text: ' ✓ READY TO MERGE ', bg: t.ok }
: blockers ? { text: ` ✗ BLOCKED · ${blockers} `, bg: t.fail }
: { text: ' ◐ WAITING ON CHECKS ', bg: t.run }
const readinessLine = (
<Box flexDirection="column" marginTop={1}>
<Text>
<Text backgroundColor={verdict.bg} color="#0F1729">{verdict.text}</Text>
</Text>ライセンスの全文(MIT)
MIT License Copyright (c) 2026 Gerric Chaplin 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 に読んだコミット 8bf587aaa9cb のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | 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/… などは無い)。hooks/register.tsx:117 uname(Windows にない) |
| 通信 | fetch の送り先(https のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。hooks/register.tsx:118 実行時に決まるプログラム |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。通信するが、ファイルも環境変数も読まない |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add gerricchaplin/pr-pulse/plugin install pr-pulse@pr-pulse入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(8bf587aaa9cb)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「gerricchaplin-pr-pulse」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
ENGRAM Engramver detalleocultarClaude に頼む…
-
Claude に頼む…ForemanNo program3 ETA 2h 10mswitchbuildbuildbuildNeeds youOther agentsOther agentsOther agentsNo lanes yet. Agents send them with the report tool.Clear denials Fix login2h 10mok for 2h 10m, updated 2h 10m ago########........ 3/3 doneClear denialsFix login Needs you2h 10mFix login Needs you2h 10mFix login Needs you2h 10mbuild Open lanes seenbuild Open lanes seenbuild Open lanes seenOpen lanes⋯Clear denials Fix login2h 10mok for 2h 10m, updated 2h 10m ago########........ 3/3 doneClear denialsFix login Needs you2h 10mFix login Needs you2h 10mFix login Needs you2h 10mbuild Open lanes seenbuild Open lanes seenbuild Open lanes seenOpen lanes
-
Claude に頼む…HandoffHandoffsrc/app.tsFresh start fClose xClassicShowing the first 9800 characters; the file has it all.
-
Claude に頼む…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Claude に頼む…✨ đang viết lại câu lệnh…Phiên làm việcWrite build Write build Write buildTIMELINE ────────▆▆▆■ build ■ build ■ buildHOẠT ĐỘNG ────────GrepGrepGrepbuildbây giờTOOL ────────Chưa có tool call nào.Read buildGrepSpinner3Read buildGrepSpinner3Read buildGrepSpinner3CHANGES ────────Không có thay đổi.ok src/app.ts−3+3ok src/app.ts−3+3ok src/app.ts−3+3… 3 file nữa▐ReadReadRead▌ main