modscode JA

modscode / Gallery / 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

Code you can checkTerminal + desktopPaneBandBoxButtonText

What it does

  • Draws a band above the prompt, a pane
  • Watches Bash calls
  • Hooks classic.SessionStart, session.start, turn.complete
  • Starts processes

Good points

  • No network calls
  • Written in TypeScript
  • Handles errors
  • Writes no files

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

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>
    )
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

integrations/claude-code/speclink-skills/hooks/register.tsx lines 275–382 · Band
  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 lines 384–543 · Pane
  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>
Licence 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.

What its code calls

runs programsenv varstool calls

The design, read from code

Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.

What its code shows

Read from the source at commit e186b06764ec on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.

Decides the listing: code you can check
Entry readEvery module hooks/hooks.json names was read.integrations/claude-code/speclink-skills/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.5 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.integrations/claude-code/speclink-skills/hooks/register.tsx:52 a program named at run time
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches no network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT

This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen

Install it

Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add MomoChenisMe/speclink
/plugin install speclink-skills@speclink

This installs the marketplace's latest commit, which may not be the one read here (e186b06764ec). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "momochenisme-speclink-skills" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs