modscode JA

modscode / Gallery / skyward

skyward

Skyward for Claude Code: the `/sky` panel over the daemon's computes, plus skills for the Python SDK and the `sky` CLI.

Code you can checkTerminal + desktopPaneBoxButtonInputText

What it does

  • Draws a pane in the desktop app
  • Adds /sky
  • Hooks session.start, ui.close
  • Calls the network

Good points

  • Starts no processes
  • 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 skyward by Gabriel Francisco (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/gabfssilva-skyward/
// 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: "Skyward" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Input } = $.ui.resolve(e)
    const id = '…'
    const get = '…'
    const state = '…'
    const filter = '…'
    const means = '…'
    const text = '…'
    const lastError = '…'
    const clock = '…'
    const count = '…'
    const group = '…'
    const first = '…'
    const length = '…'
    const rank = '…'
    const reason = '…'
    const label = '…'
    const value = '…'
    const value2 = '…'
    const value3 = '…'
    const spark = '…'
    const value4 = '…'
    const value5 = '…'
    const value6 = '…'
    const value7 = '…'
    const value8 = '…'
    const value9 = '…'
    const filter2 = '…'
    const state2 = '…'
    const value10 = '…'
    const value11 = '…'
    const value12 = '…'
    const value13 = '…'
    const value14 = '…'
    const value15 = '…'
    const value16 = '…'
    const value17 = '…'
    const value18 = '…'
    const filter3 = '…'
    const state3 = '…'
    const value19 = '…'
    const value20 = '…'
    const value21 = '…'
    const value22 = '…'
    const value23 = '…'
    const value24 = '…'
    const value25 = '…'
    const value26 = '…'
    const value27 = '…'
    const filter4 = '…'
    const total = '…'
    const summary = '…'
    const order = '…'
    const sha = '…'
    const filter5 = '…'
    const error = '…'
    const sha2 = '…'
    const filter6 = '…'
    const error2 = '…'
    const sha3 = '…'
    const filter7 = '…'
    const error3 = '…'
    const task = '…'
    const notice = '…'
    const text2 = '…'
    const clock2 = '…'
    const text3 = '…'
    const clock3 = '…'
    const text4 = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Box flexDirection="column">
          <Box flexDirection="column">
            <Box flexDirection="row" gap={2}>
              <Text bold wrap="truncate">
                {id}
              </Text>
              <Text>
                {`${get} ${state}`}
              </Text>
            </Box>
            <Text dimColor wrap="truncate">
              {filter}
            </Text>
            <Text dimColor wrap="truncate">
              {`avg ${means}`}
            </Text>
            <Text wrap="truncate">
              {text}
            </Text>
            <Text color="red" wrap="truncate">
              {lastError}
            </Text>
          </Box>
          <Text dimColor>
            {`${id} · updated ${clock}`}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row" gap={2}>
            <Box flexDirection="row" flexWrap="wrap">
              <Text bold>
                Nodes (
              </Text>
              <Text bold>
                {" · "}
              </Text>
              <Button plain label={`${count} ${group} ✕`} />
              <Text bold>
                {" · "}
              </Text>
              <Button plain label={`${count} ${group} ✕`} />
              <Text bold>
                {" · "}
              </Text>
              <Button plain label={`${count} ${group} ✕`} />
              <Text bold>
                )
              </Text>
            </Box>
            <Box flexDirection="row" gap={1}>
              <Button plain label={`‹ prev`} />
              <Text dimColor>
                {`${first}1–${first}${length} of ${length}`}
              </Text>
              <Button plain label="next ›" />
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Button plain label="▾" />
              <Box flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Text>
                <Text dimColor>
                  {"is "}
                </Text>
                <Text>
                  {state}
                </Text>
                <Text dimColor />
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
              <Box flexShrink={0} paddingLeft={1}>
                <Text dimColor>
                  killing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" flexWrap="wrap" columnGap={1} paddingLeft={4}>
              <Text color="red">
                {`kill #${rank}?`}
              </Text>
              <Button label="yes, kill" />
              <Button label="cancel" />
              <Text dimColor>
                it drains first, and a new node takes its rank if the compute still wants it
              </Text>
            </Box>
            <Text color="red">
              {`    kill failed: ${reason}`}
            </Text>
            <Text color="red">
              {`    ${lastError}`}
            </Text>
            <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value2}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value3}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    cpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value4}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value5}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value6}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    gpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value7}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value8}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value9}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box paddingLeft={4}>
              <Text dimColor>
                {filter2}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Button plain label="▾" />
              <Box flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Text>
                <Text dimColor>
                  {"is "}
                </Text>
                <Text>
                  {state2}
                </Text>
                <Text dimColor />
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
              <Box flexShrink={0} paddingLeft={1}>
                <Text dimColor>
                  killing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" flexWrap="wrap" columnGap={1} paddingLeft={4}>
              <Text color="red">
                {`kill #${rank}?`}
              </Text>
              <Button label="yes, kill" />
              <Button label="cancel" />
              <Text dimColor>
                it drains first, and a new node takes its rank if the compute still wants it
              </Text>
            </Box>
            <Text color="red">
              {`    kill failed: ${reason}`}
            </Text>
            <Text color="red">
              {`    ${lastError}`}
            </Text>
            <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value10}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value11}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value12}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    cpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value13}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value14}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value15}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    gpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value16}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value17}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value18}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box paddingLeft={4}>
              <Text dimColor>
                {filter3}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Button plain label="▾" />
              <Box flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Text>
                <Text dimColor>
                  {"is "}
                </Text>
                <Text>
                  {state3}
                </Text>
                <Text dimColor />
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
              <Box flexShrink={0} paddingLeft={1}>
                <Text dimColor>
                  killing…
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" flexWrap="wrap" columnGap={1} paddingLeft={4}>
              <Text color="red">
                {`kill #${rank}?`}
              </Text>
              <Button label="yes, kill" />
              <Button label="cancel" />
              <Text dimColor>
                it drains first, and a new node takes its rank if the compute still wants it
              </Text>
            </Box>
            <Text color="red">
              {`    kill failed: ${reason}`}
            </Text>
            <Text color="red">
              {`    ${lastError}`}
            </Text>
            <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value19}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value20}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text>
                  <Text dimColor>
                    {`${label} `}
                  </Text>
                  {value21}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    cpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value22}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value23}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"cpu "}
                      </Text>
                      {value24}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="row" gap={2}>
              <Box flexShrink={0}>
                <Text>
                  {`    gpu ${spark}`}
                </Text>
              </Box>
              <Box flexShrink={1}>
                <Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingLeft="0">
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value25}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value26}
                    </Text>
                  </Box>
                  <Box flexShrink={0}>
                    <Text>
                      <Text dimColor>
                        {"gpu "}
                      </Text>
                      {value27}
                    </Text>
                  </Box>
                </Box>
              </Box>
            </Box>
            <Box paddingLeft={4}>
              <Text dimColor>
                {filter4}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            <Text bold>
              {`Tasks (${total})`}
            </Text>
            <Text dimColor>
              {summary}
            </Text>
          </Box>
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            <Button plain label={`sort: ${order} ›`} />
            <Input label="function" placeholder="all" submitLabel="filter" />
            <Box flexDirection="row" gap={1}>
              <Button plain label={`‹ prev`} />
              <Text dimColor>
                {`${first}1–${first}${length} of ${total}`}
              </Text>
              <Button plain label="next ›" />
            </Box>
          </Box>
          <Text dimColor>
            no tasks
          </Text>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  ·
                </Text>
              </Box>
              <Box width={5} flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor>
                  {sha}
                </Text>
              </Box>
              <Text dimColor>
                {filter5}
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
            </Box>
            <Box>
              <Text color="red" wrap="wrap">
                {error}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  ·
                </Text>
              </Box>
              <Box width={5} flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor>
                  {sha2}
                </Text>
              </Box>
              <Text dimColor>
                {filter6}
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
            </Box>
            <Box>
              <Text color="red" wrap="wrap">
                {error2}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="row" gap={1}>
              <Box width={1} flexShrink={0}>
                <Text>
                  ·
                </Text>
              </Box>
              <Box width={5} flexShrink={0}>
                <Text dimColor>
                  {" #? "}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Text dimColor>
                  {sha3}
                </Text>
              </Box>
              <Text dimColor>
                {filter7}
              </Text>
              <Box flexShrink={0} paddingLeft={1}>
                <Button plain label="logs" />
              </Box>
            </Box>
            <Box>
              <Text color="red" wrap="wrap">
                {error3}
              </Text>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box flexDirection="row" flexWrap="wrap" columnGap={2}>
            <Text bold>
              Log
            </Text>
            <Input label="node" placeholder="all" submitLabel="go" />
            <Input label="filter" placeholder="term" submitLabel="search" />
            <Button plain label={`task ${task} ✕`} />
            <Text color="red">
              {notice}
            </Text>
          </Box>
          <Box flexDirection="row" gap={1}>
            <Button plain label={`‹ older`} />
            <Text dimColor>
              live
            </Text>
            <Button plain label="newer ›" />
            <Button plain label="latest »" />
          </Box>
          <Text dimColor>
            no events
          </Text>
          <Box flexDirection="row" gap={1}>
            <Box width={8} flexShrink={0}>
              <Text dimColor>
                {clock}
              </Text>
            </Box>
            <Box width={5} flexShrink={0}>
              <Text dimColor>
                {" #? "}
              </Text>
            </Box>
            <Box flexShrink={1}>
              <Text wrap="wrap" color="red">
                {text2}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" gap={1}>
            <Box width={8} flexShrink={0}>
              <Text dimColor>
                {clock2}
              </Text>
            </Box>
            <Box width={5} flexShrink={0}>
              <Text dimColor>
                {" #? "}
              </Text>
            </Box>
            <Box flexShrink={1}>
              <Text wrap="wrap" color="red">
                {text3}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" gap={1}>
            <Box width={8} flexShrink={0}>
              <Text dimColor>
                {clock3}
              </Text>
            </Box>
            <Box width={5} flexShrink={0}>
              <Text dimColor>
                {" #? "}
              </Text>
            </Box>
            <Box flexShrink={1}>
              <Text wrap="wrap" color="red">
                {text4}
              </Text>
            </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.

plugins/skyward/hooks/register.tsx lines 653–812 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE_ID }, ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const now = Date.now()

    const show = (next: View, focus: string) => {
      view = next
      snapshot = { kind: 'loading' }
      focusKey = focus
      notice = undefined
      action = undefined
      refresh?.()
      $.ui.invalidate('ui.render')
    }

    // Keeps the current snapshot on screen until the page arrives, and both buttons drawn so the focus ring stays put.
    const turnPage = (page: number, pageCount: number) => {
      if (view.kind !== 'detail' || page < 0 || page >= pageCount) return
      view = { ...view, page }
      refresh?.()
    }

    const filterLog = (log: LogFilter, at?: { page: number; group: NodeGroup | null }) => {
      if (view.kind !== 'detail') return
      if (at !== undefined && (at.page !== view.page || at.group !== view.group)) focusKey = 'log-node'
      view = { ...view, log, ...at }
      notice = undefined
      refresh?.()
      $.ui.invalidate('ui.render')
    }

    // Like a page turn, the list changes when the next read arrives, and the buttons pressed stay drawn meanwhile.
    const filterNodes = (group: NodeGroup) => {
      if (view.kind !== 'detail') return
      view = { ...view, group: view.group === group ? null : group, page: 0 }
      refresh?.()
      $.ui.invalidate('ui.render')
    }

    const updateTasks = (tasks: TaskQuery) => {
      if (view.kind !== 'detail') return
      view = { ...view, tasks }
      refresh?.()
      $.ui.invalidate('ui.render')
    }

    const toggleLogTask = (taskId: string) => {
      if (view.kind !== 'detail') return
      filterLog({ ...view.log, task: view.log.task === taskId ? null : taskId, cursors: [] })
    }

    const toggleLogNode = (nodeId: string) => {
      if (view.kind !== 'detail') return
      filterLog({ ...view.log, node: view.log.node === nodeId ? null : nodeId, cursors: [] })
    }

    const toggleNode = (nodeId: string) => {
      if (view.kind !== 'detail') return
      const expanded = new Set(view.expanded)
      if (!expanded.delete(nodeId)) expanded.add(nodeId)
      view = { ...view, expanded }
      refresh?.()
      $.ui.invalidate('ui.render')
    }

    const setAction = (next: Action | undefined, focus?: string) => {
      action = next
      if (focus !== undefined) focusKey = focus
      $.ui.invalidate('ui.render')
    }

    // A deleted compute and a drained node lose their controls once the next read shows it, so those stay in
    // `sending` until then; a scaled compute keeps its controls and is let go at once.
    const perform = (sending: Action, focus: string, write: (daemon: Writes) => Promise<void>) => {
      const daemon = writes
      if (daemon === undefined) return
      setAction(sending, focus)
      write(daemon).then(
        () => {
          if (action === sending && sending.kind === 'scale') action = undefined
          refresh?.()
        },
        (error: unknown) => {
          if (action !== sending) return
          action = { ...sending, step: 'failed', reason: error instanceof Error ? error.message : String(error) }
          $.ui.invalidate('ui.render')
        },
      )
    }

    // The first press only asks, with the ring on cancel, so a second Enter does not delete.
    const removeControls = (c: Compute): RenderElement | null => {
      if (!deletable(c)) return null
      const pending = action?.kind === 'delete' && action.id === c.id ? action : undefined
      if (pending?.step === 'asking') {
        return (
          <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
            <Text color="red">delete this compute?</Text>
            <Button key="delete-confirm" label="yes, delete" onPress={() => perform({ kind: 'delete', id: c.id, step: 'sending' }, 'back', (daemon) => daemon.remove(c.id))} />
            <Button key="delete-cancel" label="cancel" onPress={() => setAction(undefined, 'delete')} />
          </Box>
        )
      }
      if (pending?.step === 'sending') return <Text dimColor>deleting…</Text>
      return <Button key="delete" label="delete" onPress={() => setAction({ kind: 'delete', id: c.id, step: 'asking' }, 'delete-cancel')} />
    }

    // Reads the drafts from `action` as it is now, not as it was drawn: two fields typed into between draws would
    // otherwise each write back the other's stale text.
    const draftScale = (typed: { min?: string; max?: string }) => {
      if (action?.kind !== 'scale' || action.step !== 'asking') return
      action = { ...action, ...typed }
    }

    const applyScale = (c: Compute, typed: { min?: string; max?: string }) => {
      if (action?.kind !== 'scale' || action.id !== c.id || action.step !== 'asking') return
      const asked = { ...action, ...typed }
      const min = count(asked.min, c.bounds.min)
      const max = count(asked.max, c.bounds.max)
      if (min === null || max === null || min > max) return setAction({ ...asked, invalid: true })
      if (min === c.bounds.min && max === c.bounds.max) return setAction(undefined, 'scale')
      perform({ ...asked, step: 'sending' }, 'back', (daemon) => daemon.scale(c, min, max))
    }

    // Mobile has no Input, so a compute is scaled there from the CLI or the web console. A field empties on Enter, so
    // one holding text that was refused shows it back as its placeholder.
    const scaleControls = (c: Compute): RenderElement | null => {
      if (!deletable(c) || e.surface === 'mobile') return null
      const pending = action?.kind === 'scale' && action.id === c.id ? action : undefined
      if (pending?.step === 'sending') return <Text dimColor>scaling…</Text>
      if (pending?.step !== 'asking') {
        return <Button key="scale" label="scale" onPress={() => setAction({ kind: 'scale', id: c.id, min: '', max: '', invalid: false, step: 'asking' }, 'scale-min')} />
      }
      const { Input } = $.ui.resolve(e)
      return (
        <Box flexDirection="row" flexWrap="wrap" columnGap={1}>
          <Input key="scale-min" label="min" placeholder={pending.min === '' ? String(c.bounds.min) : pending.min} submitLabel="scale" onInput={(text) => draftScale({ min: text })} onSubmit={(text) => applyScale(c, { min: text })} />
          <Input key="scale-max" label="max" placeholder={pending.max === '' ? String(c.bounds.max) : pending.max} submitLabel="scale" onInput={(text) => draftScale({ max: text })} onSubmit={(text) => applyScale(c, { max: text })} />
          <Button key="scale-apply" label="apply" onPress={() => applyScale(c, {})} />
          <Button key="scale-cancel" label="cancel" onPress={() => setAction(undefined, 'scale')} />
          {pending.invalid ? <Text color="red">whole numbers, min ≤ max</Text> : null}
        </Box>
      )
    }

    scrolling = false
    const columns = fitColumns(e.props.bodyColumns)
    const tableWidth = columns.reduce((width, column) => width + TABLE_GAP + column.width, NAME_WIDTH)

    const cell = (column: Column, text: string, props: { color?: string; dim?: boolean; bold?: boolean }): RenderElement => (
      <Box width={column.width} flexShrink={0}>
        <Text wrap="truncate" color={props.color} dimColor={props.dim} bold={props.bold}>
          {column.right ? text.padStart(column.width) : text}
        </Text>
      </Box>
    )

    const tableRow = (name: RenderElement, cells: RenderElement[]): RenderElement => (
      <Box flexDirection="row" gap={TABLE_GAP}>
        <Box width={NAME_WIDTH} flexShrink={0}>{name}</Box>
        {cells}
Licence text (MIT)
MIT License

Copyright (c) 2026 Gabriel Francisco

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

network

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 9575eef3bc60 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.plugins/skyward/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.1 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.plugins/skyward/hooks/register.tsx:436 fetch(`${DAEMON}${path}`); plugins/skyward/hooks/register.tsx:564 fetch(`${DAEMON}/v1/computes/${id}`); plugins/skyward/hooks/register.tsx:582 fetch(`${DAEMON}/v1/computes/${compute}/nodes/${node}`)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches the network, but reads no files and no environment variables
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 gabfssilva/skyward
/plugin install skyward@skyward

This installs the marketplace's latest commit, which may not be the one read here (9575eef3bc60). 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 "gabfssilva-skyward" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs