Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / 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, and a # menu of proposed changes in the prompt box

Code you can checkTerminal + desktopPaneBandBoxButtonText
runs programs, draws

What it does

  • Draws a band above the prompt, a pane
  • Watches Bash, Skill calls
  • Hooks classic.SessionStart, classic.UserPromptSubmit, prompt.autocomplete, session.start and 1 more
  • Starts processes

Good points

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

Code to start from

A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.

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/claude-mods/mods/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 verb = '…'
    const change = '…'
    const groups = '…'
    const skill = '…'
    const about = '…'
    const about2 = '…'
    const about3 = '…'
    return (
      <Box flexDirection="column">
        <Box marginTop={1} flexDirection="column">
          <Box columnGap={2} flexShrink={1}>
            <Text dimColor>
              speclink
            </Text>
            <Box>
              <Text dimColor>
                {"▸ "}
              </Text>
              <Text bold>
                {verb}
              </Text>
              <Text dimColor>
                {" · "}
              </Text>
              <Text wrap="truncate-end">
                {change}
              </Text>
              <Text color="success">
                {" ✓"}
              </Text>
            </Box>
          </Box>
          <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>
        {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>
                {` ${title} `}
                <Text dimColor>
                  {length4}
                </Text>
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column" marginTop={1}>
            <Box>
              <Button label="▸" plain dimColor />
              <Text bold>
                {` ${title} `}
                <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 419–543 · 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($)} />
    // 這個 session 正在跑的步驟與 change:「▸ apply · add-x」,步驟用它所在分頁的顏色。
    const now = await read($, focus)
    const nowGroup = groups.find(g => now.verb !== null && g.skills.includes(now.verb))
    const nowLine = (now.verb !== null || now.change !== null) && (
      <Box>
        <Text dimColor>▸ </Text>
        {now.verb !== null && (
          <Text color={nowGroup === undefined ? undefined : GROUP_COLOR[nowGroup.id]} bold>
            {now.verb}
          </Text>
        )}
        {now.verb !== null && now.change !== null && <Text dimColor> · </Text>}
        {now.change !== null && <Text wrap="truncate-end">{now.change}</Text>}
        {now.archived === true && <Text color="success"> ✓</Text>}
      </Box>
    )
    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」與目前在處理的步驟、change,下面一列分頁與面板鈕,再下面一列技能。技能列的
    // 寬度(終端機扣掉引擎右邊放 [-] 的五格)放不下「分頁 │ 面板」時改窄版:面板鈕移到第一列最右邊,
    // 分頁不會從中間拆開。窄版右邊沒有地方放技能說明,所以不顯示。
    const title = (
      <Box columnGap={2} flexShrink={1}>
        <Text dimColor>speclink</Text>
        {nowLine}
      </Box>
    )
    const tabsWidth = groups.reduce((n, g) => n + cells(t.groups[g.id]) + 3, groups.length - 1)
    const wideWidth = 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}>
              {title}
              {panelButton}
            </Box>
            {tabs}
            <Box paddingLeft={2}>{skillButtons}</Box>
          </Box>
          {below}
        </Box>
      )
    }

    return (
      <Box flexDirection="column">
        <Box marginTop={1} flexDirection="column">
          {title}
          <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>
        {below}
      </Box>
    )
  })
integrations/claude-code/speclink-skills/hooks/register.tsx lines 545–704 · 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.

How to build this: Pane (panel), Deny a tool call

What its code calls

runs programsenv varstool calls

What its code shows

Read from the source at commit 444e4c71c952. 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.6 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:124 a program named at run time
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, settings.json, the transcript, the prompt box, but reaches nothing outside
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
Settings hooksHooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone
Servers it shipsMCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/
Skills, commands, agentsWhat its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows
Tools and MCPWhether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command
Asks of the modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command ?
Events it hooksBy what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: tool.call (Bash, Skill), classic.UserPromptSubmit, command.run · reads: classic.SessionStart, prompt.autocomplete · also: session.start, turn.complete, ui.render (AbovePrompt, Pane)
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: OS; settings.json; the transcript; the prompt box
Writes, by nameThe files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.the prompt box

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 its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

From its marketplace

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
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (444e4c71c952). Compare them before you install. /reload-plugins loads it into a session that is already open.

Try the commit ModsCode read

No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:

git clone https://github.com/MomoChenisMe/speclink
git -C speclink checkout 444e4c71c952907b2fcd8d9c77a7f857d5f60091
claude plugin validate speclink/integrations/claude-code/speclink-skills
claude --plugin-dir speclink/integrations/claude-code/speclink-skills

The validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.

Ask Claude about it

With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:

Read the ModsCode mod "momochenisme-speclink-skills" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More by MomoChen

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/momochenisme-speclink-skills.svg)](https://modscode.com/claude-mods/mods/momochenisme-speclink-skills/)