sc-toolbox
A toolbox pane for Claude Code: run, stop and watch the project's build tasks, scripts, Claude commands and prompts from one list
何をするか
- 欄を描く
- session.end・session.start・ui.close・ui.focus ほか 1 個にフックする
- ターンをまたいで自分の状態を持つ
- プロセスを起こす
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like sc-toolbox by SimpleCORE (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/simplecore-inc-sc-toolbox/
// 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: "Toolbox" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const brand = '…'
const release = '…'
const label = '…'
const printable = '…'
const printable2 = '…'
const printable3 = '…'
const printable4 = '…'
const printable5 = '…'
const printable6 = '…'
const padCells = '…'
const printable7 = '…'
const printable8 = '…'
const printable9 = '…'
const printable10 = '…'
const printable11 = '…'
const printable12 = '…'
const printable13 = '…'
const printable14 = '…'
return (
<Box flexDirection="column">
<Box justifyContent="space-between" marginTop={1}>
<Text bold wrap="truncate-end">
{brand}
</Text>
<Box gap={2} flexShrink={0}>
<Text dimColor>
{release}
</Text>
<Box paddingX={1} flexShrink={0} backgroundColor="#2a2f38">
<Button label={`${label}`} plain role="dismiss" />
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="column">
<Text>
{printable}
</Text>
<Box flexDirection="column" paddingX={2} paddingY={1}>
<Text>
{printable2}
</Text>
<Text>
{printable3}
</Text>
<Text>
{printable4}
</Text>
</Box>
<Text>
{printable5}
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
<Box flexDirection="column" rowGap={1}>
<Box gap={1}>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable6}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable7}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable8}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable9}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable10}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable11}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable12}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable13}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
<Box flexShrink={0} paddingX={1} flexDirection="column">
<Box justifyContent="space-between">
<Box gap={1} flexShrink={1}>
<Text>
{printable14}
</Text>
<Button label={`${padCells}`} plain />
</Box>
<Box gap={1} flexShrink={0}>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
<Box flexShrink={0}>
<Button label={`${printable}`} plain />
</Box>
</Box>
</Box>
<Button label={`${padCells}`} plain />
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1} rowGap={1}>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
<Box gap={1}>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
<Box justifyContent="center" alignItems="center" backgroundColor="#1f4650">
<Button label={`${label}`} plain />
</Box>
</Box>
</Box>
</Box>
</Box>
</Box>
)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
mods/toolbox/hooks/register.tsx 641〜800 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box } = ui
const bodyColumns = e.props.bodyColumns ?? 60
const header = {
brand: paneTitle(MOD_NAME),
release: release.version ? m.release(release.version, release.date) : undefined,
isUnderTabs: isBesideOtherPanes('sc-toolbox', {
'sc-accounts': (await $.state.get({ plugin: 'sc-accounts', key: 'paneOpen' })).value === true,
'sc-workspace': (await $.state.get({ plugin: 'sc-workspace', key: 'paneOpen' })).value === true,
'sc-toolbox': (await $.state.get({ plugin: 'sc-toolbox', key: 'paneOpen' })).value === true,
}),
columns: bodyColumns,
exit: { label: `✕ ${m.closeButton}`, onPress: () => void closePane($).catch((error: unknown) => $.ui.toast(message(error))) },
backLabel: m.backButton,
}
const hasField = e.surface !== 'mobile'
const act = (work: () => Promise<string | void>) => () => {
void work()
.then(text => text && $.ui.toast(text))
.catch((error: unknown) => $.ui.toast(message(error)))
}
const dismiss = async () => {
await update($, dialog, () => null)
await update($, suggest, () => null)
await update($, focused, () => null)
// Back from a dialog, the quick view takes its own height again.
if (quick) await $.ui.open({ id: PANE, title: TAB_LABEL, rows: quickRows((await read($, tools)).length) })
}
const openDialog = async (next: Asked, values: Record<string, string> = {}) => {
await update($, draft, () => values)
await update($, suggest, () => null)
await update($, dialog, () => next)
await $.ui.open({ id: PANE, title: TAB_LABEL, rows: SETTINGS_ROWS, focus: true, closeOnEscape: true })
}
const list = await read($, tools)
const byId = (id: string) => list.find(tool => tool.id === id)
// Running a tool: one that asks for values asks first, one already running asks to restart.
const start = async (tool: Tool) => {
if (tool.kind === 'shell' && running.has(tool.id)) return openDialog({ kind: 'restart', id: tool.id })
const values = startingValues(tool, (await rememberedValues($))[tool.id] ?? {})
// The values dialog is itself the question; a tool with none asks to confirm when set to.
if (askedParams(tool).length > 0) return openDialog({ kind: 'ask', id: tool.id }, values)
if (tool.confirm) return openDialog({ kind: 'confirm', id: tool.id }, values)
return runTool($, tool, values)
}
const asked = await read($, dialog)
const values = await read($, draft)
// Settles once the value is kept, so Enter in a field submits what was typed.
const setDraft = (key: string, value: string): Promise<void> =>
update($, draft, current => ({ ...current, [key]: value }))
.then(() => undefined)
.catch((error: unknown) => debug($, error))
if (asked?.kind === 'ask' && byId(asked.id)) {
const tool = byId(asked.id) as Tool
const offered = await read($, suggest)
const fields: FormField[] = askedParams(tool).map(name => {
const param = tool.params?.[name]
const onInput = (value: string): Promise<void> => {
const kept = setDraft(name, value)
// A path is offered as it is typed: the folder typed into is listed.
if (param?.type !== 'path') return kept
void (async () => {
const { folder } = splitTyped(value)
const path = folder === '' ? root : `${root}/${folder}`
const entries = (await $.fs.exists(path)) ? await $.fs.list(path) : []
await update($, suggest, () => ({ field: name, items: pathSuggestions(value, entries, { pathKind: param.pathKind, glob: param.glob }) }))
})().catch((error: unknown) => debug($, error))
return kept
}
return {
key: name,
label: name,
value: values[name] ?? '',
...(param?.type === 'choice' && param.choices ? { options: param.choices.map(choice => ({ value: choice, label: choice })) } : {}),
...(offered?.field === name ? { suggestions: offered.items } : {}),
onInput,
onPick: onInput,
}
})
return FormDialog(
ui,
bodyColumns,
header,
m.askTitle(tool.name),
// The command as it will run, filled with what is typed so far.
[{ text: m.askPreview(fill(tool, { ...startingValues(tool), ...values })), tone: 'muted' }],
fields,
{
submit: {
label: m.runButton,
onPress: act(async () => {
const current = await read($, draft)
const wrong = valuesProblem(tool, current)
if (wrong) return m.notChoice(wrong)
await dismiss()
return runTool($, tool, current)
}),
},
cancel: { label: m.cancel, onPress: act(dismiss) },
},
{ hasField, noInput: m.noInput },
await read($, focused),
)
}
if (asked?.kind === 'log' && byId(asked.id)) {
const tool = byId(asked.id) as Tool
// Reading the tick redraws the dialog as output arrives.
await read($, logTick)
const run = (await read($, runs))[tool.id]
const isFollowing = await read($, follow)
const buffer = buffers.get(tool.id) ?? new LogBuffer()
const window = buffer.window(LOG_WINDOW_CHARS, isFollowing ? undefined : logLast, LOG_WINDOW_LINES)
const now = await $.clock.now()
const tone = run?.state === 'failed' ? 'danger' : run?.state === 'running' ? 'ok' : undefined
const tile = (key: string, label: string, onPress: () => void): Tile => ({ key, label, onPress })
return LogDialog(
ui,
bodyColumns,
header,
m.logTitle(tool.name),
{ text: run ? m.logStatus(runText(run, now, m), run.command) : buffer.lines.length > 0 ? m.logFromFile : m.logNoRun, ...(tone ? { tone } : {}) },
{ text: window.text, firstLine: window.first + 1, empty: m.logEmpty },
{
...(window.first > 0
? { older: tile('log-older', m.logOlder, () => void (async () => {
logLast = window.first
await update($, follow, () => false)
})()) }
: {}),
...(!isFollowing && window.last < buffer.lines.length
? { newer: tile('log-newer', m.logNewer, () => void (async () => {
logLast = Math.min(buffer.lines.length, window.last + (window.last - window.first))
await update($, logTick, n => n + 1)
})()) }
: {}),
follow: { key: 'log-follow', label: isFollowing ? m.logFollowing : m.logFollow, isMain: isFollowing, onPress: () => void update($, follow, isOn => !isOn) },
...(run?.state === 'running'
? { stop: tile('log-stop', m.stopButton, act(() => stopTool($, tool))) }
: {
again: tile('log-again', m.againButton, act(async () => {
await dismiss()
return start(tool)
})),
}),
close: { key: 'dialog-cancel', label: m.closeButton, isDismiss: true, onPress: act(dismiss) },
},
await read($, focused),
)
}
mods/toolbox/hooks/shared/kit.tsx 839〜910 行 · ペイン
export function FormDialog(
ui: ElementTable,
bodyColumns: number,
header: HeaderInfo,
title: string,
lines: DialogLine[],
fields: FormField[],
actions: { submit: { label: string; onPress: () => void }; cancel: { label: string; onPress: () => void } },
form: { hasField: boolean; noInput: string },
focused: string | null = null,
) {
const { Box, Text } = ui
const Input = form.hasField && 'Input' in ui ? ui.Input : undefined
const Select = form.hasField && 'Select' in ui ? ui.Select : undefined
return DialogFrame(
ui,
dialogHeader(header, actions.cancel.onPress),
theme.accent,
title,
<Box key="form-body" flexDirection="column" marginTop={1} gap={1}>
{lines.map((line, index) => Toned(ui, `form-line-${index}`, line.text, line.tone === 'danger' ? 'danger' : line.tone === 'ok' ? 'ok' : undefined, { isDim: line.tone === 'muted', wrap: 'wrap' }))}
{!Input && Toned(ui, 'form-no-input', form.noInput, undefined, { isDim: true, wrap: 'wrap' })}
{Input &&
fields.map((field, index) => (
<Box key={`form-field-${field.key}`} flexDirection="column">
<Text dimColor>{printable(field.label)}</Text>
{field.options && Select ? (
<Select
key={`field-${field.key}`}
options={field.options.map(option => ({ ...option, label: printable(option.label) }))}
value={field.value}
{...(index === 0 ? { autoFocus: true as const } : {})}
onSelect={value => void field.onInput(value)}
/>
) : (
InputFrame(
ui,
`form-frame-${field.key}`,
true,
<Input
key={`field-${field.key}`}
value={printable(field.value)}
{...(field.placeholder ? { placeholder: printable(field.placeholder) } : {})}
{...(index === 0 ? { autoFocus: true as const } : {})}
onInput={value => void field.onInput(value)}
// Enter submits once the field's value is kept, so the submit reads what was typed.
onSubmit={value => void Promise.resolve(field.onInput(value)).then(actions.submit.onPress, actions.submit.onPress)}
/>,
)
)}
{(field.suggestions ?? []).length > 0 && (
<Box key={`form-suggest-${field.key}`} flexDirection="column" paddingLeft={2}>
{(field.suggestions ?? []).map((suggestion, row) =>
LinkButton(ui, `suggest-${field.key}-${row}`, suggestion, () => void (field.onPick ?? field.onInput)(suggestion)),
)}
</Box>
)}
</Box>
))}
</Box>,
Tiles(
ui,
Math.max(20, bodyColumns - CARD_CHROME),
[
...(Input ? [{ key: 'form-submit', label: actions.submit.label, isMain: true, onPress: actions.submit.onPress }] : []),
{ key: 'dialog-cancel', label: actions.cancel.label, isDismiss: true, onPress: actions.cancel.onPress },
],
{ focused },
),
)
}mods/toolbox/hooks/shared/kit.tsx 646〜666 行 · ペイン
export function DialogFrame(
ui: ElementTable,
header: HeaderInfo,
borderColor: string,
title: string,
body: ReturnType<typeof Header>,
tiles: ReturnType<typeof Tiles>,
) {
const { Box, Text } = ui
return (
<Box key="dialog-pane" flexDirection="column">
{Header(ui, header)}
<Box key="dialog" flexDirection="column" borderStyle="round" borderColor={borderColor} paddingX={1}>
<Text bold>{printable(title)}</Text>
{body}
{tiles}
</Box>
</Box>
)
}mods/toolbox/hooks/shared/kit.tsx 188〜202 行 · ペイン
export function Toned(
ui: ElementTable,
key: string,
text: string,
tone?: Tone,
style: { isDim?: boolean; isBold?: boolean; wrap?: 'wrap' | 'truncate-end' } = {},
) {
const { Text } = ui
return (
<Text key={key} color={tone ? theme[tone] : undefined} dimColor={style.isDim === true} bold={style.isBold === true} {...(style.wrap ? { wrap: style.wrap } : {})}>
{printable(text)}
</Text>
)
}mods/toolbox/hooks/shared/kit.tsx 238〜255 行 · ペイン
export function InputFrame(ui: ElementTable, key: string, isAccent: boolean, input: unknown, glyph?: string) {
const { Box, Text } = ui
return (
<Box
key={key}
borderStyle="round"
borderColor={isAccent ? theme.accent : 'gray'}
borderDimColor={!isAccent}
paddingX={1}
gap={1}
flexGrow={1}
>
{glyph && <Text color={isAccent ? theme.accent : undefined}>{printable(glyph)}</Text>}
{input as never}
</Box>
)
}mods/toolbox/hooks/shared/kit.tsx 258〜262 行 · ペイン
export function LinkButton(ui: ElementTable, key: string, label: string, onPress: () => void, extra: { autoFocus?: boolean } = {}) {
const { Button } = ui
return <Button key={key} label={printable(label)} plain hover={{ color: theme.accent, bold: true }} {...(extra.autoFocus ? { autoFocus: true as const } : {})} onPress={onPress} />
}ライセンスの全文(MIT)
MIT License Copyright (c) 2026 SimpleCORE Inc. 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 に読んだコミット 4d5f9231e689 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。mods/toolbox/hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。14 ファイルを解析 |
| コードが 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/… などは無い)。mods/toolbox/hooks/register.tsx:366 kill(Windows にない) |
| 通信 | fetch の送り先(https のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。mods/toolbox/hooks/register.tsx:236 実行時に決まるプログラム; mods/toolbox/hooks/register.tsx:311 実行時に決まるプログラム |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。通信しない |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add simplecore-inc/claude-mods/plugin install sc-toolbox@simplecore-mods入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(4d5f9231e689)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「simplecore-inc-sc-toolbox」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…PR securityall3 shown · 3 ignoredLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — Editignored (3)⋯src/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Merge
-
slop Edit1 of 3accepteditrejectClaude に頼む…
-
Claude に頼む…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
Claude に頼む…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Claude に頼む…Fanyi settingsOnAPI · OpusenOn this MacAPIHost src/ SaveKey K · paste a new one, Enter SaveOpus↻ RefreshCustom model model id, for an API that lists none UseFanyi settingsHostClose
-
Claude に頼む…Model routerLast reply: Fix login → a1b2c3dKept off Opus to save the cache. Start a prompt with @Opus to force it.OnOffRoutes model and effort for each kind of prompt0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuildYour rules checked firstNo rules yet. Pick a model and effort, type the words, press Add rule.Tasksa1b2c3d✕Tasksa1b2c3d✕Tasksa1b2c3d✕words, for example landing page, redesign Add rulebuildbuildbuildbuildbuildbuildOptions CoolingWhen still broken after xhigh, move tobuildbuildbuildCache saver: skip one-off model switches in long chatsbuildbuildbuildOne prompt only: start it with @opus, @max or @hardReset