issue-board
The repository's open GitHub issues and pull requests in a pane and under the prompt, with acceptance progress and CI, and a button that hands an issue to Claude.
何をするか
- 欄・トーストを描く
- /issues を足す
- Bash・TaskUpdate の呼び出しを見張る(止めることがある)
- agent.spawn・classic.SessionStart・prompt.compose・prompt.submit ほか 7 個にフックする
- ターンをまたいで自分の状態を持つ
良いところ
- ネットワークに出ない
- TypeScript で書かれている
- エラーを扱う
- ファイルを書かない
作り始めるためのコード
2 種類あります。上のデザインから modscode が書いた雛形と、その Mod 自身のコードのうち描いている部分です。
雛形(register.tsx)
import type { Register } from 'claude-code'
// Drawn like issue-board by astrosteveo (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/astrosteveo-issue-board/
// 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: "issue-board" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Link, Input } = $.ui.resolve(e)
const repo = '…'
const value = '…'
const label = '…'
const filled = '…'
const empty = '…'
const done = '…'
const updateLine = '…'
const name = '…'
const message = '…'
const title = '…'
const number = '…'
const href = '…'
const mark = '…'
const title2 = '…'
const title3 = '…'
const areas = '…'
const own = '…'
const manual = '…'
const unwanted = '…'
const url = '…'
const spark = '…'
const reduce = '…'
const spark2 = '…'
const title4 = '…'
const detail = '…'
const fix = '…'
const title5 = '…'
const detail2 = '…'
const fix2 = '…'
const title6 = '…'
const detail3 = '…'
const fix3 = '…'
const length = '…'
const title7 = '…'
const title8 = '…'
const line = '…'
const line2 = '…'
const line3 = '…'
const index = '…'
const title9 = '…'
const boxes = '…'
const title10 = '…'
const title11 = '…'
const failure = '…'
const workflow = '…'
const branch = '…'
const filled2 = '…'
const empty2 = '…'
const total = '…'
const failed = '…'
const running = '…'
const step = '…'
const workflow2 = '…'
const filled3 = '…'
const empty3 = '…'
const workflow3 = '…'
const filled4 = '…'
const empty4 = '…'
const title12 = '…'
const filled5 = '…'
const empty5 = '…'
const closed = '…'
const due = '…'
const title13 = '…'
const filled6 = '…'
const empty6 = '…'
const title14 = '…'
const filled7 = '…'
const empty7 = '…'
const hotkey = '…'
const typed = '…'
const title15 = '…'
const standing = '…'
const title16 = '…'
const standing2 = '…'
const title17 = '…'
const standing3 = '…'
const filterName = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" gap={2}>
<Text>
<Text color="claude">
{"◆ "}
</Text>
<Text bold>
{repo}
</Text>
</Text>
<Text>
<Text color="claude">
●
</Text>
<Text bold>
{` ${value}`}
</Text>
<Text dimColor>
{` ${label}`}
</Text>
</Text>
<Text>
<Text color="error">
▲
</Text>
<Text bold>
{` ${value}`}
</Text>
<Text dimColor>
{` ${label}`}
</Text>
</Text>
<Text>
<Text color="suggestion">
⇄
</Text>
<Text bold>
{` ${value}`}
</Text>
<Text dimColor>
{` ${label}`}
</Text>
</Text>
<Text>
<Text color="error">
✗
</Text>
<Text bold>
{` ${value}`}
</Text>
<Text dimColor>
{` ${label}`}
</Text>
</Text>
<Text>
<Text>
<Text>
{filled}
</Text>
<Text color="inactive" dimColor>
{empty}
</Text>
</Text>
<Text dimColor>
{` ${done}%`}
</Text>
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="warning">
◌ syncing…
</Text>
<Button hotkey="r" dimColor>
Refresh
</Button>
</Box>
</Box>
<Text wrap="truncate-end">
<Text>
{"◉ "}
</Text>
{updateLine}
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="suggestion" paddingX={1} marginTop={1}>
<Text color="suggestion" bold>
{`⚙ Set up ${name} for the board`}
</Text>
<Text dimColor>
◌ Reading the repo, its project and its issues…
</Text>
<Box flexDirection="column">
<Text color="error" wrap="wrap">
{`Couldn't read what setup needs: ${message}`}
</Text>
<Text dimColor>
/issues check says what is missing and how to fix it.
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1} flexWrap="wrap" marginTop={1}>
<Text dimColor>
Project
</Text>
<Text>
{`none is linked to ${name}`}
</Text>
<Text bold>
{`${title} (#${number})`}
</Text>
<Button variant="primary">
{`${title} #${number}`}
</Button>
<Button variant="primary">
{`${title} #${number}`}
</Button>
<Button variant="primary">
{`${title} #${number}`}
</Button>
<Text wrap="truncate-end">
<Link href={`${href}`} label={`${label}`} />
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
Apply will:
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
<Text>
{`${mark} `}
</Text>
<Text>
{title}
</Text>
</Text>
<Text dimColor wrap="wrap">
{` ${message}`}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
<Text>
{`${mark} `}
</Text>
<Text>
{title2}
</Text>
</Text>
<Text dimColor wrap="wrap">
{` ${message}`}
</Text>
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
<Text>
{`${mark} `}
</Text>
<Text>
{title3}
</Text>
</Text>
<Text dimColor wrap="wrap">
{` ${message}`}
</Text>
</Box>
</Box>
<Box flexDirection="row" marginTop={1}>
<Input label="area labels to create: " placeholder="such as simulation, interface" value={`${areas}`} submitLabel="update" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
Which Status is which
</Text>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text dimColor>
{`${own} (folds)`}
</Text>
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary">
{`+ ${own}`}
</Button>
<Button variant="primary">
none
</Button>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text dimColor>
{`${own} (folds)`}
</Text>
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary">
{`+ ${own}`}
</Button>
<Button variant="primary">
none
</Button>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text dimColor>
{`${own} (folds)`}
</Text>
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary">
{`+ ${own}`}
</Button>
<Button variant="primary">
none
</Button>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="warning">
In the project's Workflows settings, by hand:
</Text>
<Text color="warning" wrap="wrap">
{` · turn on ${manual}`}
</Text>
<Text color="warning" wrap="wrap">
{` · turn off ${unwanted}: it marks every closed issue Done, even an abandoned one; the board moves issues closed as comp…`}
</Text>
<Text color="warning" wrap="wrap">
{" · new issues arrive with Status Todo, GitHub's default, so they skip the Inbox: open Item added to project and set it…"}
</Text>
<Link href={`${url}/workflows`} label="↗ Workflows" />
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap" marginTop={1}>
<Text dimColor>
No issue template has an Acceptance list.
</Text>
<Button dimColor>
Have Claude add one
</Button>
</Box>
<Box flexDirection="row" gap={1} marginTop={1}>
<Button variant="primary">
Apply
</Button>
<Text color="warning">
◌ Applying…
</Text>
<Button dimColor>
Cancel
</Button>
</Box>
</Box>
<Box flexDirection="row" marginTop={1}>
<Button dimColor>
Close
</Button>
</Box>
</Box>
<Box flexDirection="row" gap={3} flexWrap="wrap">
<Text>
<Text dimColor>
{`${label} `}
</Text>
<Text color="success">
{spark}
</Text>
<Text bold>
{` ${reduce}`}
</Text>
</Text>
<Text>
<Text dimColor>
{`${label} `}
</Text>
<Text color="suggestion">
{spark2}
</Text>
<Text bold>
{` ${reduce}`}
</Text>
</Text>
<Text dimColor>
last 12 weeks
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1} marginTop={1}>
<Text color="error" bold>
✗ Setup needed
</Text>
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="wrap">
{title4}
</Text>
<Text dimColor wrap="wrap">
{detail}
</Text>
<Text wrap="wrap">
{fix}
</Text>
<Box flexDirection="row">
<Button>
Copy command
</Button>
</Box>
<Link href={`${url}`} label={`↗ ${url}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="wrap">
{title5}
</Text>
<Text dimColor wrap="wrap">
{detail2}
</Text>
<Text wrap="wrap">
{fix2}
</Text>
<Box flexDirection="row">
<Button>
Copy command
</Button>
</Box>
<Link href={`${url}`} label={`↗ ${url}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="wrap">
{title6}
</Text>
<Text dimColor wrap="wrap">
{detail3}
</Text>
<Text wrap="wrap">
{fix3}
</Text>
<Box flexDirection="row">
<Button>
Copy command
</Button>
</Box>
<Link href={`${url}`} label={`↗ ${url}`} />
</Box>
<Box flexDirection="row" marginTop={1}>
<Button variant="primary">
Check again
</Button>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="suggestion" paddingX={1} marginTop={1}>
<Text color="suggestion" bold>
{`New epic · draft · ${length} sub-issues · editing`}
</Text>
<Box flexDirection="column" marginTop={1}>
<Text bold wrap="wrap">
{title7}
</Text>
<Text dimColor wrap="wrap">
{title8}
</Text>
<Text color="warning">
The title can't be empty. Write one to save.
</Text>
<Box flexDirection="row" gap={1} flexWrap="wrap" marginTop={1}>
<Text dimColor>
{"Labels "}
</Text>
<Text dimColor>
none in this repo
</Text>
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
Body · Enter adds a line below. A line you empty is left out when you save.
</Text>
<Input placeholder="empty: left out when you save" value={`${line}`} submitLabel="new line" />
<Text dimColor wrap="wrap">
{line}
</Text>
<Input placeholder="empty: left out when you save" value={`${line}`} submitLabel="new line" />
<Text dimColor wrap="wrap">
{line2}
</Text>
<Input placeholder="empty: left out when you save" value={`${line}`} submitLabel="new line" />
<Text dimColor wrap="wrap">
{line3}
</Text>
</Box>
<Box flexDirection="row" gap={1} marginTop={1}>
<Button variant="primary">
✓ Save
</Button>
<Button dimColor>
Cancel
</Button>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text bold>
Sub-issues
</Text>
<Text wrap="wrap">
<Text dimColor>
{`${index}1. `}
</Text>
<Text>
{title9}
</Text>
<Text dimColor>
{` · ${boxes} box`}
</Text>
</Text>
<Text wrap="wrap">
<Text dimColor>
{`${index}1. `}
</Text>
<Text>
{title10}
</Text>
<Text dimColor>
{` · ${boxes} box`}
</Text>
</Text>
<Text wrap="wrap">
<Text dimColor>
{`${index}1. `}
</Text>
<Text>
{title11}
</Text>
<Text dimColor>
{` · ${boxes} box`}
</Text>
</Text>
</Box>
<Box flexDirection="row" gap={1} marginTop={1} flexWrap="wrap">
<Button variant="primary" hotkey="c">
{`✚ Create the epic and ${length} sub-issues`}
</Button>
<Button hotkey={`${value}`}>
✎ Edit
</Button>
<Button dimColor>
Discard
</Button>
</Box>
</Box>
<Text color="error">
{`✗ Last refresh failed: ${failure}`}
</Text>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" gap={1}>
<Box>
<Button plain>
{`▾ ${title}`}
</Button>
</Box>
<Text dimColor>
{`${length} open`}
</Text>
</Box>
<Button dimColor hotkey="m">
{`⇶ Merge all ${length}…`}
</Button>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text color="warning">
{`Finish and merge all ${length} open PR?`}
</Text>
<Button variant="primary" hotkey="y">
Yes, merge them
</Button>
<Button dimColor hotkey="n">
Cancel
</Button>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="error">
◷
</Text>
<Text>
<Text bold>
{workflow}
</Text>
<Text dimColor>
{` on ${branch}`}
</Text>
</Text>
<Text>
<Text>
<Text>
{filled2}
</Text>
<Text color="inactive" dimColor>
{empty2}
</Text>
</Text>
<Text dimColor>
{` ${done}/${total} jobs, ${failed} failed`}
</Text>
</Text>
<Text dimColor>
{`${running} › ${step}`}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="error">
◷
</Text>
<Text>
<Text bold>
{workflow2}
</Text>
<Text dimColor>
{` on ${branch}`}
</Text>
</Text>
<Text>
<Text>
<Text>
{filled3}
</Text>
<Text color="inactive" dimColor>
{empty3}
</Text>
</Text>
<Text dimColor>
{` ${done}/${total} jobs, ${failed} failed`}
</Text>
</Text>
<Text dimColor>
{`${running} › ${step}`}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="error">
◷
</Text>
<Text>
<Text bold>
{workflow3}
</Text>
<Text dimColor>
{` on ${branch}`}
</Text>
</Text>
<Text>
<Text>
<Text>
{filled4}
</Text>
<Text color="inactive" dimColor>
{empty4}
</Text>
</Text>
<Text dimColor>
{` ${done}/${total} jobs, ${failed} failed`}
</Text>
</Text>
<Text dimColor>
{`${running} › ${step}`}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box>
<Button plain>
{`▾ ${title}`}
</Button>
</Box>
<Text dimColor>
{`${length} open`}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text>
{title12}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
<Text>
{filled5}
</Text>
<Text color="inactive" dimColor>
{empty5}
</Text>
</Text>
<Text dimColor>
{`${closed}/${total}`}
</Text>
<Text color="error">
{`was due ${due}`}
</Text>
</Box>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text>
{title13}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
<Text>
{filled6}
</Text>
<Text color="inactive" dimColor>
{empty6}
</Text>
</Text>
<Text dimColor>
{`${closed}/${total}`}
</Text>
<Text color="error">
{`was due ${due}`}
</Text>
</Box>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text>
{title14}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
<Text>
{filled7}
</Text>
<Text color="inactive" dimColor>
{empty7}
</Text>
</Text>
<Text dimColor>
{`${closed}/${total}`}
</Text>
<Text color="error">
{`was due ${due}`}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text bold color="claude">
Issues
</Text>
<Button hotkey={`${hotkey}`} variant="primary" />
<Button hotkey={`${hotkey}`} variant="primary" />
<Button hotkey={`${hotkey}`} variant="primary" />
<Input label="⌕ " placeholder="search titles, #numbers, labels" value={`${typed}`} submitLabel="search" />
<Text dimColor>
by
</Text>
<Button variant="primary" />
<Button variant="primary" />
<Button variant="primary" />
</Box>
<Box flexDirection="column">
<Text dimColor>
◌ Reading the issues closed lately…
</Text>
<Text color="error" wrap="wrap">
{`Couldn't read closed issues: ${failed}`}
</Text>
<Text dimColor>
Nothing closed yet.
</Text>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="inactive">
{"⊘ "}
</Text>
<Text dimColor>
{`#${number} `}
</Text>
{title15}
</Text>
<Text dimColor>
{standing}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="inactive">
{"⊘ "}
</Text>
<Text dimColor>
{`#${number} `}
</Text>
{title16}
</Text>
<Text dimColor>
{standing2}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="inactive">
{"⊘ "}
</Text>
<Text dimColor>
{`#${number} `}
</Text>
{title17}
</Text>
<Text dimColor>
{standing3}
</Text>
</Box>
</Box>
<Box flexDirection="column" alignItems="center">
<Text color="success">
✓
</Text>
<Text dimColor>
{`Nothing under ${filterName} matches “${typed}”.`}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Text color="warning">
◌ Claude is suggesting a Priority, area and Status for each…
</Text>
<Button dimColor>
Suggest again
</Button>
</Box>
<Text color="error" wrap="wrap">
{`Couldn't get suggestions: ${failed}`}
</Text>
<Box flexDirection="column">
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" gap={1}>
<Text color="claude" />
</Box>
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const number = '…'
const name = '…'
const at = '…'
await $.ui.toast(`Working on #${number} now: the branch ${name} is for it`)
await $.ui.toast(`GitHub's rate limit ran out; the issue board waits until ${at}`)
return next(e)
})
}
Mod 自身のコード
Mod のライセンス(MIT)に従って載せています。全文は下にあります。写すときは著作権表示を残してください。
plugins/issue-board/hooks/register.tsx 3019〜3178 行 · ペイン
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Link } = $.ui.resolve(e)
const problems = (await read($, access))?.problems ?? []
const width = Math.max(40, e.props.bodyColumns)
const roomy = width >= 72
// Room for the sparklines and the ticked meter.
const wide = width >= 100
const now = await read($, board)
const failure = await read($, error)
const busy = await read($, loading)
const chosen = await read($, filter)
const open = await read($, expanded)
const arming = await read($, confirming)
const who = await read($, viewer)
const typed = await read($, query)
const here = await read($, branch)
const doing = await read($, working)
const made = await read($, draft)
const thinking = await read($, drafting)
const revised = await read($, revising)
const focusKey = await read($, ring)
const making = await read($, creating)
const changing = await read($, editing)
const offered = await read($, palette)
const armedClose = await read($, closing)
const fields = await read($, typing)
const said = await read($, talk)
const shownPr = await read($, openPr)
const planned = await read($, setup)
const picked = await read($, groupBy)
const opened = await read($, unfolded)
const triaged = await read($, triage)
const watched = await read($, runs)
const working$ = await read($, workers)
const launches = await read($, launching)
// The issue Start sent Claude in this session: its Start says so rather than starting it again.
const startedHere = doing?.started && doing.sessionId !== undefined && doing.sessionId === (await $.session.id().catch(() => undefined)) ? doing.number : null
const clock = Date.now()
const elements = $.ui.resolve(e)
// The mobile app draws no text field: its table hands out one that draws nothing.
const Input = 'Input' in elements && e.surface !== 'mobile' ? elements.Input : undefined
const Markdown = elements.Markdown
// A link in a row stays on one line: squeezed, it ends in an ellipsis rather than breaking down the pane a letter a
// line. A click still opens the whole address.
const link = (href: string, label = '↗ GitHub') => (
<Text wrap="truncate-end">
<Link href={href} label={label} />
</Text>
)
// Start: the issue is the one Claude is on, and Claude gets it. Its button says so from the press on.
const start = (issue: Issue) =>
launch($, issue, 'start', async () => {
await track($, issue, true)
const listed = await makeTasks($, issue)
await $.prompt.submit({ text: startPrompt(issue, listed > 0), asUser: true })
$.ui.toast(`Sent #${issue.number} to Claude`)
await claim($, issue)
return true
})
const flip = async (issue: Issue, box: number, done: boolean) => {
try {
await tick($, issue.number, [box], done)
$.ui.toast(`${done ? 'Ticked' : 'Unticked'} box ${box} on #${issue.number}`)
} catch (cause) {
const message = messageOf(cause)
$.ui.toast(`Couldn't change box ${box} on #${issue.number}: ${message}`)
if (ACCESS_ERROR.test(message)) void checkAccess($, message)
}
}
const closeOut = async (pr: PullRequest) => {
await $.prompt.submit({ text: closeOutPrompt(pr), asUser: true })
$.ui.toast(`Sent PR #${pr.number} to Claude to finish and merge`)
}
// Merge all merges every open pull request, so it asks once more before it goes.
const closeOutAll = async (prs: PullRequest[]) => {
await update($, confirming, () => false)
// The pull requests it was asked for may have merged while it waited on its confirm.
if (prs.length === 0) {
$.ui.toast('No pull requests are open now, so there is nothing to merge.')
return
}
await $.prompt.submit({ text: closeOutAllPrompt(prs), asUser: true })
$.ui.toast(`Sent ${prs.length} ${prs.length === 1 ? 'PR' : 'PRs'} to Claude to finish and merge`)
}
const arm = (to: boolean) => () => void update($, confirming, () => to)
// One card at a time, so its letter keys always work; an opened card is scrolled into view.
const toggle = (number: number) => async () => {
const opening = !open.includes(number)
await update($, expanded, () => (opening ? [number] : []))
await update($, editing, () => null)
if (opening) await $.ui.scroll({ to: { key: `card-${number}` }, in: PANE }).catch(() => undefined)
if (opening) await loadComments($, number)
const issue = opening ? now?.issues.find(one => one.number === number) : undefined
if (issue && (project?.fields ?? []).some(field => !/^(status|priority)$/i.test(field.name))) await readValues($, issue)
}
const togglePr = (number: number) => () => void update($, openPr, was => (was === number ? null : number))
const meter = (done: number, total: number, cells: number) => {
const [filled, empty] = bar({ done, total }, cells)
return (
<Text>
<Text color={tone({ done, total })}>{filled}</Text>
<Text color="inactive" dimColor>
{empty}
</Text>
</Text>
)
}
// The header's right: when the board last synced, and Refresh.
const sync = (
<Box flexDirection="row" gap={1}>
<Text color={busy ? 'warning' : undefined} dimColor={!busy}>
{busy ? '◌ syncing…' : now ? `⟳ ${ago(new Date(now.fetchedAt).toISOString(), clock)}` : ''}
</Text>
<Button key="refresh" hotkey="r" dimColor onPress={() => void refresh($)}>
Refresh
</Button>
</Box>
)
const repoName = (
<Text>
<Text color="claude">◆ </Text>
<Text bold>{now ? now.repo : 'GitHub'}</Text>
</Text>
)
// Before there is a board: the repo and the sync, nothing to total yet.
const header = (
<Box flexDirection="row" justifyContent="space-between">
{repoName}
{sync}
</Box>
)
// What the last permission check found missing, each with its fix.
const blocked = problems.some(problem => problem.blocks)
const setupCard = problems.length > 0 && (
<Box flexDirection="column" borderStyle="round" borderColor={blocked ? 'error' : 'warning'} paddingX={1} marginTop={1}>
<Text color={blocked ? 'error' : 'warning'} bold>
{blocked ? '✗ Setup needed' : '⚠ The board is limited'}
</Text>
{problems.map(problem => (
<Box key={`problem-${problem.id}`} flexDirection="column" marginTop={1}>
<Text bold wrap="wrap">
{problem.title}
</Text>
<Text dimColor wrap="wrap">
{problem.detail}
</Text>
<Text wrap="wrap">{problem.fix}</Text>
{problem.command && (
<Box flexDirection="row">
<Button key={`copy-fix-${problem.id}`} onPress={press => void copyFix($, problem, press.surface)}>
Copy command
</Button>plugins/issue-board/hooks/register.tsx 4700〜4704 行 · ペイン
const link = (href: string, label = '↗ GitHub') => (
<Text wrap="truncate-end">
<Link href={href} label={label} />
</Text>
)ライセンスの全文(MIT)
MIT License Copyright (c) 2026 Steven Mosley 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 を動かすツール呼び出し保存
コードから読み取ったデザイン
読み取ったコミットのソースから描いたもので、動かした結果ではありません。一覧は 3 回描き、条件はデスクトップアプリで描く最初の分岐を取り、動かしたときにだけ決まる値は仮の例(点線の下線)にするか省きます。色と書体はこのサイトのものです。
コードから読めること
2026-10-06 に読んだコミット 777a2e8edf6b のソースから。最初のまとまりが載せる条件で、残りは自分で判断するための材料です。後のコミットは、次に読むまで見ていません。
| 載せる条件: 確かめやすいコード | |
|---|---|
| 入口を読んだ | hooks/hooks.json が名指すモジュールをすべて読んだ。plugins/issue-board/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 のホスト)がコードに書いてあるか。通信なし |
| プログラム | 起動するプログラムの名前がコードに書いてあり、シェル・インタプリタ・通信用の道具でないか。gh(通信する), git(通信する) |
| 読んで送る | ファイルや環境変数を読み、かつ通信するか。読んだうえで通信する |
| ソースの鍵 | ソースに API キーや秘密鍵らしきものがあるか。ソースに鍵なし |
| ライセンス | オープンなライセンス(MIT・Apache-2.0・BSD・ISC・Unlicense・0BSD・CC0)で全文があれば、modscode にコードを載せる。違えばリンクだけ。MIT |
コードの文面を読んだだけで、安全の審査ではありません。動かしてはおらず、起動するプログラムの中で何が起きるかも見えません。入れる前の確認はあなたの役目です。 載せる条件
入れる
入れる前に、必ず自分で確かめてください。Mod はサンドボックスなしで、あなたの権限で動きます。modscode はこのコードの安全を保証しません。下のコードを読み(またはフォルダーで claude plugin validate .)、触るものを見て、読んだコミットを入れてください。
リポジトリがそのままマーケットプレイスです。このマーケットプレイスを足し(ターミナルでは次のコマンド、デスクトップアプリではプラグインの設定)、そこから Mod を入れます。
/plugin marketplace add astrosteveo/claude-plugins/plugin install issue-board@astrosteveo-plugins入るのはマーケットプレイスの最新のコミットで、ここで読んだもの(777a2e8edf6b)と違うことがあります。入れる前に見比べてください。
Claude に聞く
modscode のコネクタを入れると、Claude がこのデザイン・コードが触るもの・コードを読んで、それをもとに作れます。たとえば:
modscode のデザイン「astrosteveo-issue-board」をコードごと読んで、同じようなペインを作って似たデザイン
-
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 に頼む…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
Claude に頼む…Fix logingoal Fix loginedit session goalpaste /goal linecopy pathattach to promptback to hubcloseOwling────────outcome on the recordPondering mail session goal (what the Stop hook holds the agent to)none yetGoal Pondering mail savecanceledit in the prompt box█████░░░
-
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
-
Claude に頼む…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel