modscode / 図鑑 / speclink-skills
speclink-skills
Speclink for Claude Code: clickable speclink skills above the prompt, and a side panel with tabs for the active changes, discussions and open quality tickets
何をするか
- プロンプトの上の帯・欄を描く
- Bash の呼び出しを見張る
- classic.SessionStart・session.start・turn.completeにフックする
- プロセスを起こす
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
- ファイルを書かない
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like speclink-skills by MomoChen (pane, band), as modscode read it from the mod's code:
// https://modscode.com/gallery/momochenisme-speclink-skills/
// 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 groups = '…'
const skill = '…'
const about = '…'
const about2 = '…'
const about3 = '…'
return (
<Box flexDirection="column">
<Box marginTop={1}>
<Box flexShrink={0} marginRight={2}>
<Text dimColor>
speclink
</Text>
</Box>
<Box flexDirection="column" flexGrow={1}>
<Box flexWrap="wrap" columnGap={1}>
<Box flexWrap="wrap" columnGap={1}>
<Box>
<Text>
●
</Text>
<Text color="inverseText" bold>
{` ${groups} `}
</Text>
</Box>
<Box>
<Text>
●
</Text>
<Text color="inverseText" bold>
{` ${groups} `}
</Text>
</Box>
<Box>
<Text>
●
</Text>
<Text color="inverseText" bold>
{` ${groups} `}
</Text>
</Box>
</Box>
<Text dimColor>
{" │ "}
</Text>
<Button label="◧ Panel" plain dimColor />
</Box>
<Box paddingLeft={2}>
<Box flexWrap="wrap" columnGap={2} flexShrink={1}>
<Button label={`${skill}`} plain />
<Button label={`${skill}`} plain />
<Button label={`${skill}`} plain />
</Box>
<Box width={0} flexGrow={1} marginLeft={3} flexDirection="column" overflow="hidden">
<Box display="none">
<Text dimColor wrap="truncate-end">
{about}
</Text>
</Box>
<Box display="none">
<Text dimColor wrap="truncate-end">
{about2}
</Text>
</Box>
<Box display="none">
<Text dimColor wrap="truncate-end">
{about3}
</Text>
</Box>
</Box>
</Box>
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "speclink" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const tabs = '…'
const error = '…'
const value = '…'
const title = '…'
const length = '…'
const length2 = '…'
const length3 = '…'
const skipped = '…'
const length4 = '…'
const length5 = '…'
const error2 = '…'
const change = '…'
const round = '…'
const n = '…'
const severity = '…'
const findings = '…'
const path = '…'
const text = '…'
const severity2 = '…'
const text2 = '…'
const severity3 = '…'
const text3 = '…'
const severity4 = '…'
const text4 = '…'
const severity5 = '…'
const text5 = '…'
const severity6 = '…'
const text6 = '…'
const severity7 = '…'
const text7 = '…'
const severity8 = '…'
const text8 = '…'
const severity9 = '…'
const text9 = '…'
const severity10 = '…'
const text10 = '…'
const severity11 = '…'
const text11 = '…'
const severity12 = '…'
const text12 = '…'
const severity13 = '…'
const text13 = '…'
const severity14 = '…'
const text14 = '…'
const severity15 = '…'
const text15 = '…'
const severity16 = '…'
const text16 = '…'
const severity17 = '…'
const text17 = '…'
const severity18 = '…'
const text18 = '…'
return (
<Box flexDirection="column">
<Box>
<Text backgroundColor="suggestion" color="inverseText" bold>
{` ${tabs} `}
</Text>
<Text backgroundColor="suggestion" color="inverseText" bold>
{` ${tabs} `}
</Text>
<Text backgroundColor="suggestion" color="inverseText" bold>
{` ${tabs} `}
</Text>
<Box flexGrow={1} />
<Button label="↻ Refresh" plain dimColor />
</Box>
<Text dimColor>
Loading…
</Text>
<Text color="error">
{error}
</Text>
<Text dimColor>
The panel needs the speclink CLI on PATH.
</Text>
<Box flexDirection="column">
<Box marginTop={1}>
<Text bold>
{"Next ▸ "}
</Text>
<Button label={`${value}`} plain />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▸" plain dimColor />
<Text bold>
{` ${title} `}
<Text dimColor>
{length}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▸" plain dimColor />
<Text bold>
{` ${title} `}
<Text dimColor>
{length2}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▸" plain dimColor />
<Text bold>
{` ${title} `}
<Text dimColor>
{length3}
</Text>
</Text>
</Box>
</Box>
<Box marginTop={1}>
<Text dimColor>
No active changes
</Text>
</Box>
<Text dimColor wrap="wrap">
{`${skipped}`}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▸" plain dimColor />
<Text bold>
{" Open "}
<Text dimColor>
{length4}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▸" plain dimColor />
<Text bold>
{" Concluded "}
<Text dimColor>
{length5}
</Text>
</Text>
</Box>
</Box>
<Box marginTop={1}>
<Text dimColor>
No discussions
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
A stamp deletes its ticket, so only open tickets show.
</Text>
<Text dimColor>
Loading…
</Text>
<Text color="error">
{error2}
</Text>
<Text dimColor>
No open review or verify tickets.
</Text>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▾" plain dimColor />
<Text>
{" "}
</Text>
<Button label={`${change}`} plain />
</Box>
<Text wrap="truncate-end">
<Text dimColor>
{" Review "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{" Verify "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Box flexDirection="column" paddingLeft={3}>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Review · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity2}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text2}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity3}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text3}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Verify · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity4}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text4}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity5}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text5}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity6}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text6}
</Text>
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▾" plain dimColor />
<Text>
{" "}
</Text>
<Button label={`${change}`} plain />
</Box>
<Text wrap="truncate-end">
<Text dimColor>
{" Review "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{" Verify "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Box flexDirection="column" paddingLeft={3}>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Review · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity7}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text7}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity8}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text8}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity9}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text9}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Verify · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity10}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text10}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity11}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text11}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity12}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text12}
</Text>
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box>
<Button label="▾" plain dimColor />
<Text>
{" "}
</Text>
<Button label={`${change}`} plain />
</Box>
<Text wrap="truncate-end">
<Text dimColor>
{" Review "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{" Verify "}
</Text>
<Text dimColor>
No ticket
</Text>
{`${round} · `}
<Text color="success">
No findings this round
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
<Text>
{`${n} ${severity} `}
</Text>
</Text>
<Box flexDirection="column" paddingLeft={3}>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Review · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity13}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text13}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity14}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text14}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity15}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text15}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
{`Verify · ${findings}`}
</Text>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity16}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text16}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity17}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text17}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
{severity18}
</Text>
<Text dimColor>
{` ${path}`}
</Text>
</Text>
<Text wrap="wrap">
{text18}
</Text>
</Box>
</Box>
</Box>
</Box>
</Box>
</Box>
)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
integrations/claude-code/speclink-skills/hooks/register.tsx 275〜382 行 · バンド
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const below = await next(e)
const installed = await read($, skills)
const groups = groupSkills(installed.map(s => s.name))
if (e.props.hasSurvey || groups.length === 0) {
return below
}
const { Box, Button, Text } = $.ui.resolve(e)
const t = TEXT[await read($, lang)]
const chosen = await read($, tab)
const current = groups.find(g => g.id === chosen) ?? groups[0]!
const color = GROUP_COLOR[current.id]
// 合併鈕沒有自己的 description,只列指令,不分語言。
const about = (skill: string) =>
skill.includes('+')
? skill.split('+').map(commandHead).join(' → ')
: (installed.find(s => s.name === PREFIX + skill)?.description ?? '')
const tabs = (
<Box flexWrap="wrap" columnGap={1}>
{groups.map(g => (
<Box>
<Text color={GROUP_COLOR[g.id]}>●</Text>
{g.id === current.id ? (
<Text backgroundColor={color} color="inverseText" bold>{` ${t.groups[g.id]} `}</Text>
) : (
<Box paddingX={1}>
<Button
key={`tab:${g.id}`}
label={t.groups[g.id]}
plain
dimColor
onPress={() => update($, tab, () => g.id)}
/>
</Box>
)}
</Box>
))}
</Box>
)
const panelButton = <Button key="panel" label={`◧ ${t.panel}`} plain dimColor onPress={() => togglePanel($)} />
const skillButtons = (
<Box flexWrap="wrap" columnGap={2} flexShrink={1}>
{current.skills.map(skill => (
<Button
key={skill}
label={skill}
plain
hover={{ scope: `skill:${skill}`, color }}
onPress={() => putCommand($, skill)}
/>
))}
</Box>
)
// 寬版的第一列是「speclink ● 規劃 … ● 其他 │ ◧ 面板」,技能列的寬度(終端機扣掉引擎
// 右邊放 [-] 的五格)放不下這一列就改窄版:
// 「speclink」與面板鈕一列、分頁一列、技能一列,分頁不會從中間拆開。窄版右邊沒有
// 地方放技能說明,所以不顯示。
const tabsWidth = groups.reduce((n, g) => n + cells(t.groups[g.id]) + 3, groups.length - 1)
const wideWidth = cells('speclink') + 2 + tabsWidth + 5 + cells(`◧ ${t.panel}`)
if (e.props.bodyColumns < wideWidth) {
return (
<Box flexDirection="column">
<Box marginTop={1} flexDirection="column" alignSelf="flex-start">
<Box justifyContent="space-between" columnGap={2}>
<Text dimColor>speclink</Text>
{panelButton}
</Box>
{tabs}
<Box paddingLeft={2}>{skillButtons}</Box>
</Box>
{below}
</Box>
)
}
return (
<Box flexDirection="column">
<Box marginTop={1}>
<Box flexShrink={0} marginRight={2}>
<Text dimColor>speclink</Text>
</Box>
<Box flexDirection="column" flexGrow={1}>
<Box flexWrap="wrap" columnGap={1}>
{tabs}
<Text dimColor> │ </Text>
{panelButton}
</Box>
<Box paddingLeft={2}>
{skillButtons}
<Box width={0} flexGrow={1} marginLeft={3} flexDirection="column" overflow="hidden">
{current.skills.map(skill => (
<Box display="none" hover={{ scope: `skill:${skill}`, display: 'flex' }}>
<Text dimColor wrap="truncate-end">
{about(skill)}
</Text>
</Box>
))}
</Box>
</Box>
</Box>
</Box>
{below}
</Box>
)
})integrations/claude-code/speclink-skills/hooks/register.tsx 384〜543 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Button, Markdown, Text } = $.ui.resolve(e)
const t = TEXT[await read($, lang)]
const b = await read($, board)
const v = await read($, view)
const shown = await read($, details)
const q = await read($, quality)
const width = e.props.bodyColumns
const isOpen = (id: string) => v.open.includes(id)
const toggle = (id: string) => (
<Button key={`open:${id}`} label={isOpen(id) ? '▾' : '▸'} plain dimColor onPress={() => void toggleRow($, id)} />
)
// 可收合的區塊:`▾ 提案中 8`,點 ▾ 收起、點 ▸ 打開。
const section = (id: string, title: string, color: string | undefined, rows: RenderChildren[]) => {
const closed = v.closed.includes(id)
return (
<Box key={`section:${id}`} flexDirection="column" marginTop={1}>
<Box>
<Button key={`section:${id}`} label={closed ? '▸' : '▾'} plain dimColor onPress={() => void toggleSection($, id)} />
<Text bold color={color}>
{` ${title} `}
<Text dimColor>{rows.length}</Text>
</Text>
</Box>
{!closed && rows}
</Box>
)
}
const pending = (detail: Detail | undefined) =>
detail === undefined || detail.kind === 'loading' ? (
<Text dimColor>{t.loading}</Text>
) : detail.kind === 'error' ? (
<Text color="error" wrap="truncate-end">
{detail.message}
</Text>
) : null
// 展開的 change:文件打勾,再列任務(已勾的畫暗,手動任務標出來)。
const changeDetail = (c: PanelChange) => {
const detail = shown[`change:${c.name}`]
return (
<Box flexDirection="column" paddingLeft={5}>
{pending(detail)}
{detail?.kind === 'change' && (
<Text wrap="truncate-end">
{detail.artifacts.map(a => (
<Text color={a.done ? 'success' : undefined} dimColor={!a.done}>
{`${a.done ? '✓' : '○'} ${t.artifacts[a.id] ?? a.id} `}
</Text>
))}
</Text>
)}
{detail?.kind === 'change' && detail.groups.length === 0 && <Text dimColor>{t.noTasks}</Text>}
{detail?.kind === 'change' &&
detail.groups.map(g => (
<Box flexDirection="column">
{g.title !== '' && (
<Box>
<Box flexShrink={1}>
<Text dimColor wrap="truncate-end">
{g.title}
</Text>
</Box>
<Box flexShrink={0} marginLeft={2}>
<Text dimColor>{`${g.tasks.filter(task => task.done).length}/${g.tasks.length}`}</Text>
</Box>
</Box>
)}
{g.tasks.map(task => (
<Text wrap="truncate-end" dimColor={task.done}>
{task.done ? '☑ ' : '☐ '}
{task.manual && <Text color="warning">{`[${t.manual}] `}</Text>}
{task.label}
</Text>
))}
</Box>
))}
</Box>
)
}
const changeRow = (c: PanelChange) => {
const isBlocked = c.blockedBy.length > 0
const tasks = c.total > 0 ? `${mini(c.done, c.total)} ${c.done}/${c.total}` : ''
const mark = c.branch === null ? '' : ' ⎇'
const room = width - 5 - mark.length - tasks.length - 1
return (
<Box key={`row:${c.name}`} flexDirection="column">
<Box>
{toggle(`change:${c.name}`)}
<Text dimColor>{`${c.wave}`.padStart(3)} </Text>
<Button
key={`change:${c.name}`}
label={cut(c.name, room)}
plain
dimColor={isBlocked}
onPress={() => putArgument($, c.name)}
/>
{mark !== '' && <Text color="suggestion">{mark}</Text>}
<Box flexGrow={1} />
<Text dimColor={isBlocked}>{tasks}</Text>
</Box>
{isBlocked && <Text dimColor wrap="truncate-end">{` ${t.waitsFor(c.blockedBy.join(', '))}`}</Text>}
{isOpen(`change:${c.name}`) && changeDetail(c)}
</Box>
)
}
const talkRow = (d: PanelDiscussion) => {
const detail = shown[`talk:${d.slug}`]
return (
<Box key={`talk-row:${d.slug}`} flexDirection="column">
<Box>
{toggle(`talk:${d.slug}`)}
<Text> </Text>
<Button key={`talk:${d.slug}`} label={cut(d.slug, width - 12)} plain onPress={() => putArgument($, d.slug)} />
<Box flexGrow={1} />
<Text dimColor>
{d.status === 'open' ? t.rounds(d.rounds) : d.status === 'concluded' ? t.concluded : d.status}
</Text>
</Box>
<Text dimColor wrap="truncate-end">{` ${d.topic}`}</Text>
{isOpen(`talk:${d.slug}`) && (
<Box flexDirection="column" paddingLeft={2} marginBottom={1}>
{pending(detail)}
{detail?.kind === 'talk' && <Markdown text={detail.body} />}
</Box>
)}
</Box>
)
}
// `審查 第 2 輪 · 1 CRITICAL 2 WARNING`
const ticketLine = (label: string, ticket: Ticket | null) => (
<Text wrap="truncate-end">
<Text dimColor>{` ${label} `}</Text>
{ticket === null && <Text dimColor>{t.noTicket}</Text>}
{ticket !== null && `${t.round(ticket.round)} · `}
{ticket !== null && ticket.findings.length === 0 && <Text color="success">{t.noFindings}</Text>}
{ticket !== null &&
SEVERITIES.map(severity => {
const n = ticket.findings.filter(f => f.severity === severity).length
return n > 0 && <Text color={SEVERITY_COLOR[severity]}>{`${n} ${severity} `}</Text>
})}
</Text>
)
const findings = (label: string, ticket: Ticket | null) =>
ticket !== null &&
ticket.findings.length > 0 && (
<Box flexDirection="column" marginTop={1}>
<Text bold>{`${label} · ${t.findings(ticket.findings.length)}`}</Text>
{ticket.findings.map(f => (
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color={SEVERITY_COLOR[f.severity]}>{f.severity}</Text>
<Text dimColor>{` ${f.path}`}</Text>ライセンスの全文(MIT)
MIT License Copyright (c) 2026 MomoChen 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 に読んだコミット e186b06764ec のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。integrations/claude-code/speclink-skills/hooks/register.tsx |
| 解析できる | すべてのファイルが TypeScript か JavaScript として解析できる。5 ファイルを解析 |
| コードが 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 のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。integrations/claude-code/speclink-skills/hooks/register.tsx:52 実行時に決まるプログラム |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。通信しない |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add MomoChenisMe/speclink/plugin install speclink-skills@speclink入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(e186b06764ec)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「momochenisme-speclink-skills」をコードごと読んで、同じようなペインを作って似たデザイン
-
Claude に頼む…Blast RadiusBlast Radius: npm testWould Cancel. Proceed Proceed ProceedProceed 1Cancel 2
-
Claude に頼む…Replay TheaterReplay Theater 31 31 31src/app.ts (step 01 of 3)● Write● Write● WritePrev pNext nClose q
-
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
-
何をするか
- プロンプトの上の帯を描く
- /seo-spend・/seo-doctor・/seo-cockpit を足す
- Agent の呼び出しを見張る(止めることがある)
- agent.spawn・classic.SessionStart・prompt.submit・session.compact ほか 3 個にフックする
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Claude に頼む…
-
Claude に頼む…TodayOct 63 left · Mar overdueRemCTL: Sep✓ All done for today.● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓Updated 14:32UndoRefresh