pixipet
A pixel pet that lives in Claude Code: it watches what Claude is doing, grows with Claude's work and keeps you company
何をするか
- 欄・プロンプトの上の帯・ステータス行を描く
- /pet を足す
- ツールの呼び出しを見張る(止めることがある)
- prompt.submit・session.end・session.start・turn.complete ほか 2 個にフックする
- ターンをまたいで自分の状態を持つ
良いところ
- ネットワークに出ない
- プロセスを起こさない
- TypeScript で書かれている
- デスクトップ専用の分岐がある
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like pixipet by VibeMage (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/vibemage-pixipet/
// 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: "‹paneTitle›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const title = '…'
const back = '…'
const species = '…'
const name = '…'
const place = '…'
const band = '…'
const buttons = '…'
const keys = '…'
const skin = '…'
const lang = '…'
const namePlaceholder = '…'
const reset = '…'
const resetSure = '…'
const resetYes = '…'
const cancel = '…'
const hint = '…'
return (
<Box flexDirection="column" gap={0}>
<Box justifyContent="space-between" marginBottom={1}>
<Text bold>
{title}
</Text>
<Box>
<Button plain hotkey="b" label={`${back}`} />
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{species}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{place}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{band}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{buttons}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{keys}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{skin}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{lang}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`● ${name}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Box width={9} flexShrink={0}>
<Text>
{name}
</Text>
</Box>
<Input value={`${name}`} placeholder={`${namePlaceholder}`} />
</Box>
<Box flexDirection="row" marginTop={1}>
<Box width={9} flexShrink={0}>
<Text>
{reset}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text>
{resetSure}
{" "}
</Text>
<Box paddingX={1}>
<Button plain label={`${resetYes}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`${cancel}`} />
</Box>
</Box>
</Box>
<Text dimColor wrap="wrap">
{hint}
</Text>
</Box>
)
})
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
const name = '…'
const fullness = '…'
const happiness = '…'
const energy = '…'
const describe = '…'
const label = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row">
<Box flexShrink={0} flexDirection="row">
<Text bold>
( . )
{" "}
</Text>
<Text>
{name}
{" "}
</Text>
<Text>
{fullness}
</Text>
<Text>
████████░░░░░░░░
{" "}
</Text>
<Text>
{happiness}
</Text>
<Text>
████████░░░░░░░░
{" "}
</Text>
<Text>
{energy}
</Text>
<Text>
████████░░░░░░░░
{" "}
</Text>
<Text>
@@@@@@@@
{" "}
</Text>
</Box>
<Text wrap="truncate">
{`│ Claude ${describe}`}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Box paddingX={1}>
<Button plain label={`${label}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`${label}`} />
</Box>
<Box paddingX={1}>
<Button plain label={`${label}`} />
</Box>
</Box>
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const face = '…'
const name = '…'
const stats = '…'
const describe = '…'
await $.ui.status(`${face} ${name} ${stats} · Claude ${describe}`)
return next(e)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
hooks/register.tsx 861〜991 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const pet = await read($, petAtom)
const activity = await read($, activityAtom)
const speech = await read($, speechAtom)
const logs = await read($, logAtom)
snap.skin = await read($, skinAtom)
snap.species = await read($, speciesAtom)
snap.lang = await read($, langAtom)
const t = TEXT[snap.lang]
snap.pet = pet
snap.activity = activity
const now = await $.clock.now()
const c = await palette($)
const stage = stageOf(pet.xp)
const mood = moodOf(pet, activity.kind)
const toNext = nextStageIn(pet.xp)
const busy = isBusy(activity.kind)
const cols = Math.min(e.props.bodyColumns, 48)
const spoken = speech !== null && speech.until > now ? speech.text : ''
const room = Math.max(0, (e.viewport?.rows ?? 30) - 28)
const { Box, Text, Button } = $.ui.resolve(e)
if ((await read($, viewAtom)) === 'settings') {
pane = null
return await drawSettings($, e, cols, c)
}
let picture
if (e.surface === 'terminal') {
const { Raster } = $.ui.resolve(e)
const rows = 12
pane = { columns: cols, rows }
const cells = cellsFor(cols, rows, true)
sent.set(PANE, cells)
picture = <Raster key={RASTER} columns={cols} rows={rows} cells={cells} />
} else {
pane = null
const [stink, piles] = ground(pet.poop, 0)
picture = (
<Box flexDirection="row">
<Box flexDirection="column">
{sprite(stage, mood, 0).map((l, i) => (
<Text key={`s${i}`} color={mood === 'sick' ? c.green : c.text}>
{l}
</Text>
))}
</Box>
<Box flexDirection="column" justifyContent="flex-end">
<Text color={c.sub}>{stink}</Text>
<Text color={c.yellow}>{piles}</Text>
</Box>
</Box>
)
}
return (
<Box flexDirection="column" width={cols}>
<Box justifyContent="space-between">
<Text bold color={c.pet}>
{pet.name}
<Text dimColor>
{' '}
· {t.stage[stage]} · {ageText(pet, now, snap.lang)}
</Text>
</Text>
<Box key="open-settings">
<Button
key="settings"
plain
hotkey="o"
hover={{ color: c.pet }}
label={t.settings.open}
onPress={() => update($, viewAtom, () => 'settings')}
/>
</Box>
</Box>
<Text color={c.yellow} wrap="truncate">
{spoken ? `「${short(spoken, cols - 4)}」` : ' '}
</Text>
{picture}
<Box flexDirection="column" marginTop={1}>
<Text>
{t.fullness} <Text color={pet.fullness < 25 ? c.red : c.green}>{bar(pet.fullness, 10)}</Text> {Math.round(pet.fullness)}
</Text>
<Text>
{t.happiness} <Text color={pet.happiness < 30 ? c.red : c.pet}>{bar(pet.happiness, 10)}</Text>{' '}
{Math.round(pet.happiness)}
</Text>
<Text>
{t.energy} <Text color={pet.energy < 15 ? c.red : c.teal}>{bar(pet.energy, 10)}</Text> {Math.round(pet.energy)}
</Text>
<Text dimColor>
{t.xp} {pet.xp}
{toNext === null ? t.grown : t.toGrow(toNext)}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>{t.doing}</Text>
<Text color={activity.kind === 'asking' || activity.kind === 'approving' ? c.red : busy ? c.teal : activity.kind === 'error' ? c.red : c.sub} wrap="wrap">
{busy ? '● ' : '○ '}
{describe(activity, snap.lang)}
{busy ? t.turnTools(activity.turnTools) : ''}
</Text>
</Box>
{logs.length > 0 && room > 0 && (
<Box flexDirection="column" marginTop={1}>
<Text bold>{t.log}</Text>
{logs.slice(-Math.min(room, 5)).map((l, i) => (
<Text key={`l${i}`} dimColor wrap="truncate">
{clock(l.at)} {l.text}
</Text>
))}
</Box>
)}
<Box marginTop={1}>
{careButtons(Box, Button, c, t, pet, what => ({ hotkey: what[0]! }), what => doCare($, what))}
</Box>
{e.surface === 'terminal' && (
<Text dimColor wrap="truncate">
{e.props.isFocused
? t.focused
: t.unfocused}
</Text>
)}
</Box>
)
})hooks/register.tsx 351〜497 行 · ペイン
async function drawSettings($: Engine, e: PaneSite, cols: number, c: Palette) {
const t = tx()
const o = t.settings
const els = $.ui.resolve(e)
const { Box, Text, Button } = els
const [band, place, hasButtons, hasKeys, skin, species, langWanted, isConfirming] = await Promise.all([
read($, bandModeAtom),
read($, placeAtom),
read($, hasButtonsAtom),
read($, hasKeysAtom),
read($, skinAtom),
read($, speciesAtom),
read($, langWantedAtom),
read($, isConfirmingResetAtom),
])
// One row: the label, then a chip per choice
const row = <T extends string | boolean>(
key: string,
label: string,
choices: readonly (readonly [T, string])[],
current: T,
pick: (value: T) => unknown,
) => (
<Box key={`row-${key}`} flexDirection="row">
<Box width={9} flexShrink={0}>
<Text color={c.sub}>{label}</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
{choices.map(([value, name]) => {
const isOn = value === current
return (
<Box key={`${key}-${String(value)}`} backgroundColor={isOn ? c.chip.sleep : undefined} paddingX={1}>
<Button
key={`set-${key}-${String(value)}`}
plain
dimColor={!isOn}
hover={{ color: c.pet }}
label={`${isOn ? '●' : '○'} ${name}`}
onPress={() => pick(value)}
/>
</Box>
)
})}
</Box>
</Box>
)
const speciesRow =
'Select' in els ? (
<Box key="row-species" flexDirection="row">
<Box width={9} flexShrink={0}>
<Text color={c.sub}>{o.species}</Text>
</Box>
<els.Select
key="set-species"
value={species}
options={speciesIds().map(id => ({ value: id, label: speciesName(id) }))}
onSelect={id => setSpecies($, id)}
/>
</Box>
) : (
row('species', o.species, speciesIds().map(id => [id, speciesName(id)] as const), species, id => setSpecies($, id))
)
const nameRow =
'Input' in els ? (
<Box key="row-name" flexDirection="row">
<Box width={9} flexShrink={0}>
<Text color={c.sub}>{o.name}</Text>
</Box>
<els.Input
key="set-name"
value={snap.pet.name}
placeholder={o.namePlaceholder}
onSubmit={value => {
const name = short(value, 12)
if (name !== '') return rename($, name)
}}
/>
</Box>
) : null
return (
<Box flexDirection="column" width={cols} gap={0}>
<Box justifyContent="space-between" marginBottom={1}>
<Text bold color={c.pet}>
{o.title}
</Text>
<Box key="back-to-pet">
<Button
key="back"
plain
hotkey="b"
hover={{ color: c.pet }}
label={o.back}
onPress={async () => {
await update($, isConfirmingResetAtom, () => false)
await update($, viewAtom, () => 'pet')
}}
/>
</Box>
</Box>
{speciesRow}
{row('place', o.place, [['above', o.above], ['below', o.below]] as const, place, v => setPlace($, v))}
{row('band', o.band, [['full', o.full], ['mini', o.mini], ['hidden', o.hidden]] as const, band, v => setBand($, v))}
{row('buttons', o.buttons, [[true, o.show], [false, o.hide]] as const, hasButtons, v => setButtons($, v))}
{row('keys', o.keys, [[true, o.enabled], [false, o.disabled]] as const, hasKeys, v => setKeys($, v))}
{row('skin', o.skin, [['color', o.color], ['lcd', o.lcd]] as const, skin, v => setSkin($, v))}
{row('lang', o.lang, [['zh', '中文'], ['en', 'English'], ['auto', o.auto]] as const, langWanted, v => setLang($, v))}
{nameRow}
<Box key="row-reset" flexDirection="row" marginTop={1}>
<Box width={9} flexShrink={0}>
<Text color={c.sub}>{o.reset}</Text>
</Box>
{isConfirming ? (
<Box flexDirection="row" gap={1}>
<Text color={c.red}>{o.resetSure} </Text>
<Box key="reset-yes" backgroundColor={c.chip.feed} paddingX={1}>
<Button
key="reset-confirm"
plain
hover={{ color: c.red }}
label={o.resetYes}
onPress={async () => {
await resetPet($)
await update($, isConfirmingResetAtom, () => false)
await update($, viewAtom, () => 'pet')
}}
/>
</Box>
<Box key="reset-no" paddingX={1}>
<Button key="reset-cancel" plain label={o.cancel} onPress={() => update($, isConfirmingResetAtom, () => false)} />
</Box>
</Box>
) : (
<Box key="reset-ask" paddingX={1}>
<Button key="reset" plain dimColor hover={{ color: c.red }} label={o.resetAsk} onPress={() => update($, isConfirmingResetAtom, () => true)} />
</Box>
)}
</Box>
<Text dimColor wrap="wrap">
{o.hint}
</Text>
</Box>
)
}hooks/register.tsx 316〜342 行 · ペイン
function careButtons(
Box: Elements['Box'],
Button: Elements['Button'],
c: Palette,
t: (typeof TEXT)[Lang],
pet: Pet,
hotkey: (what: Care) => { hotkey?: string },
onPress: (what: Care) => void,
) {
const chips: [Care, string][] = [
['feed', t.feed],
['play', t.play],
['clean', t.clean],
['sleep', pet.isAsleep ? t.wake : t.sleep],
]
// Medicine only while it is sick
if (pet.isSick) chips.push(['heal', t.heal])
return (
<Box flexDirection="row" gap={1} flexWrap="wrap">
{chips.map(([what, label]) => (
<Box key={`care-${what}`} backgroundColor={c.chip[what]} paddingX={1}>
<Button key={what} plain hover={{ color: c.pet }} {...hotkey(what)} label={label} onPress={() => onPress(what)} />
</Box>
))}
</Box>
)
}hooks/register.tsx 993〜1007 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey || (await read($, placeAtom)) !== 'above') return next(e)
const theirs = await next(e)
const ours = await drawBand($, e, e.props.bodyColumns, e.props.maxRows, true)
if (ours === undefined) return theirs
// Share the band with any other mod drawing there
if (!theirs) return ours
const { Box } = $.ui.resolve(e)
return (
<Box flexDirection="column">
{theirs}
{ours}
</Box>
)
})hooks/register.tsx 1032〜1133 行 · バンド
async function drawBand($: Engine, e: BandSite, width: number, maxRows: number, takesDigits: boolean) {
const mode = await read($, bandModeAtom)
if (mode === 'hidden') {
band = null
return undefined
}
const pet = await read($, petAtom)
const activity = await read($, activityAtom)
const speech = await read($, speechAtom)
snap.skin = await read($, skinAtom)
snap.species = await read($, speciesAtom)
snap.lang = await read($, langAtom)
const t = TEXT[snap.lang]
snap.pet = pet
snap.activity = activity
const now = await $.clock.now()
const c = await palette($)
const mood = moodOf(pet, activity.kind)
const busy = isBusy(activity.kind)
const spoken = speech !== null && speech.until > now ? `「${speech.text}」` : ''
const toNext = nextStageIn(pet.xp)
const rows = 8
const isFull = mode === 'full' && e.surface === 'terminal' && maxRows >= rows && width >= 64
const hasKeys = takesDigits && (await read($, hasKeysAtom))
const hasButtons = await read($, hasButtonsAtom)
const { Box, Text, Button } = $.ui.resolve(e)
const actColor = activity.kind === 'asking' || activity.kind === 'approving' ? c.red : busy ? c.teal : c.sub
// A bare digit in an empty prompt presses a band Button: care without leaving the prompt
const digits: Record<Care, string> = { feed: '1', play: '2', clean: '3', sleep: '4', heal: '5' }
const buttons = careButtons(Box, Button, c, t, pet, what => (hasKeys ? { hotkey: digits[what] } : {}), what =>
doCare($, what),
)
if (isFull && e.surface === 'terminal') {
const { Raster } = $.ui.resolve(e)
const columns = width >= 90 ? 44 : Math.max(26, width - 46)
band = { id: e.requestId, columns, rows }
const cells = cellsFor(columns, rows, false)
sent.set(e.requestId, cells)
return (
<Box flexDirection="row">
<Raster key={RASTER} columns={columns} rows={rows} cells={cells} />
<Box flexDirection="column" justifyContent="flex-end" paddingLeft={1} width={Math.min(52, width - columns - 1)}>
<Text wrap="truncate">
<Text bold color={c.pet}>
{pet.name}
</Text>
<Text color={c.sub}>
{' '}
· {t.stage[stageOf(pet.xp)]} · {t.xp} {pet.xp}
{toNext === null ? '' : `/${pet.xp + toNext}`}
</Text>
</Text>
<Text wrap="truncate">
<Text color={c.sub}>{t.short.fullness} </Text>
<Text color={pet.fullness < 25 ? c.red : c.green}>{bar(pet.fullness)}</Text>
<Text color={c.sub}> {t.short.happiness} </Text>
<Text color={pet.happiness < 30 ? c.red : c.pet}>{bar(pet.happiness)}</Text>
<Text color={c.sub}> {t.short.energy} </Text>
<Text color={pet.energy < 15 ? c.red : c.teal}>{bar(pet.energy)}</Text>
</Text>
<Text color={actColor} wrap="wrap">
{busy ? '● ' : '○ '}Claude {describe(activity, snap.lang)}
{busy && activity.turnTools > 0 ? t.tools(activity.turnTools) : ''}
</Text>
<Text color={c.yellow} wrap="wrap">
{spoken || ' '}
</Text>
{hasButtons && buttons}
</Box>
</Box>
)
}
// One line of stats that never gives way, Claude's activity after it, the buttons under it
band = null
return (
<Box flexDirection="column" width={width}>
<Box flexDirection="row">
<Box flexShrink={0} flexDirection="row">
<Text color={c.pet} bold>
{stageOf(pet.xp) === 'egg' ? '( . )' : face(mood, 0)}{' '}
</Text>
<Text>{pet.name} </Text>
<Text color={c.sub}>{t.short.fullness}</Text>
<Text color={pet.fullness < 25 ? c.red : c.green}>{bar(pet.fullness, 5)} </Text>
<Text color={c.sub}>{t.short.happiness}</Text>
<Text color={pet.happiness < 30 ? c.red : c.pet}>{bar(pet.happiness, 5)} </Text>
<Text color={c.sub}>{t.short.energy}</Text>
<Text color={pet.energy < 15 ? c.red : c.teal}>{bar(pet.energy, 5)} </Text>
{pet.poop > 0 && <Text color={c.yellow}>{'@'.repeat(pet.poop)} </Text>}
</Box>
<Text color={spoken ? c.yellow : actColor} wrap="truncate">
{spoken || `│ Claude ${describe(activity, snap.lang)}`}
</Text>
</Box>
{hasButtons && buttons}
</Box>
)
}ライセンスの全文(MIT)
MIT License Copyright (c) 2026 VibeMage 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.
コードが呼ぶもの
ツール呼び出し保存
コードから読めること
2026-10-06 に読んだコミット fde0b0c59ce0 のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。16 ファイルを解析 |
| コードが 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 VibeMage/claude-mod-pet/plugin install pixipet@claude-mod-pet入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(fde0b0c59ce0)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「vibemage-pixipet」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Claude に頼む…clawdifybuild 3build 3build 3Presets layer on top of what you have. Reset first for a clean slate.Empty = Claude Code default · lists are comma-separated · tokens {model} {cwd} {time} {date}buildbuildbuildYours bring back exactly the look you saved. /clawdify delete <name> removes one.buildbuildbuildSave current as my-look savecopy JSONreset allWhile thinking
-
Claude に頼む…QuestList 1 Kanban 2Fleet f This repo l Refs g Refresh r Normal size z Collapse cOpen FilterokAll reposDoneClosedClose itList* marks a task whose refs disagree about its status; origin/dev is drawn where it has one. Resolving it is that reposit…New task in acme/app CreateClosed tracker change in acme/app not committed yet. Until they land, this repository's other checkouts cannot see the ids in them and can mint the same… Ask Claude to land them⋯
-
Claude に頼む…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
● pace Write · Park to1 park 12 dismiss 2pace: resume point 2h 10m · Fix login · 33 resume 34 discard 45 all 3 5pace: Park to resume point older than 7 days6 clear 6Claude に頼む…
-
Claude に頼む…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel