modscode JA

modscode / Gallery / pr-ci

pr-ci

A pane with the PRs this session created and the open PRs of this repo, with live CI checks; a failed check log goes into the prompt with one key

Code you can checkTerminal + desktopPaneToastBoxButtonText

What it does

  • Draws a pane, toasts
  • Adds /prs
  • Watches Bash calls
  • Hooks session.start
  • Starts processes

Good points

  • No network calls
  • Small: 284 lines
  • Written in TypeScript
  • 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 pr-ci by turanmahmudov (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/turanmahmudov-pr-ci/
// 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: "PRs" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text } = $.ui.resolve(e)
    const title = '…'
    const ICONS = '…'
    const split = '…'
    const number = '…'
    const title2 = '…'
    const ICONS2 = '…'
    const name = '…'
    const ICONS3 = '…'
    const name2 = '…'
    const ICONS4 = '…'
    const name3 = '…'
    const ICONS5 = '…'
    const split2 = '…'
    const number2 = '…'
    const title3 = '…'
    const ICONS6 = '…'
    const name4 = '…'
    const ICONS7 = '…'
    const name5 = '…'
    const ICONS8 = '…'
    const name6 = '…'
    const ICONS9 = '…'
    const split3 = '…'
    const number3 = '…'
    const title4 = '…'
    const ICONS10 = '…'
    const name7 = '…'
    const ICONS11 = '…'
    const name8 = '…'
    const ICONS12 = '…'
    const name9 = '…'
    const title5 = '…'
    const ICONS13 = '…'
    const split4 = '…'
    const number4 = '…'
    const title6 = '…'
    const ICONS14 = '…'
    const name10 = '…'
    const ICONS15 = '…'
    const name11 = '…'
    const ICONS16 = '…'
    const name12 = '…'
    const ICONS17 = '…'
    const split5 = '…'
    const number5 = '…'
    const title7 = '…'
    const ICONS18 = '…'
    const name13 = '…'
    const ICONS19 = '…'
    const name14 = '…'
    const ICONS20 = '…'
    const name15 = '…'
    const ICONS21 = '…'
    const split6 = '…'
    const number6 = '…'
    const title8 = '…'
    const ICONS22 = '…'
    const name16 = '…'
    const ICONS23 = '…'
    const name17 = '…'
    const ICONS24 = '…'
    const name18 = '…'
    const title9 = '…'
    const ICONS25 = '…'
    const split7 = '…'
    const number7 = '…'
    const title10 = '…'
    const ICONS26 = '…'
    const name19 = '…'
    const ICONS27 = '…'
    const name20 = '…'
    const ICONS28 = '…'
    const name21 = '…'
    const ICONS29 = '…'
    const split8 = '…'
    const number8 = '…'
    const title11 = '…'
    const ICONS30 = '…'
    const name22 = '…'
    const ICONS31 = '…'
    const name23 = '…'
    const ICONS32 = '…'
    const name24 = '…'
    const ICONS33 = '…'
    const split9 = '…'
    const number9 = '…'
    const title12 = '…'
    const ICONS34 = '…'
    const name25 = '…'
    const ICONS35 = '…'
    const name26 = '…'
    const ICONS36 = '…'
    const name27 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" marginBottom={1}>
          <Text bold underline>
            {title}
          </Text>
          <Text dimColor>
            None
          </Text>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS}
              {" "}
              {split}
              #
              {number}
              {" "}
              {title2}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS2}
              {" "}
              {name}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS3}
              {" "}
              {name2}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS4}
              {" "}
              {name3}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS5}
              {" "}
              {split2}
              #
              {number2}
              {" "}
              {title3}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS6}
              {" "}
              {name4}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS7}
              {" "}
              {name5}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS8}
              {" "}
              {name6}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS9}
              {" "}
              {split3}
              #
              {number3}
              {" "}
              {title4}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS10}
              {" "}
              {name7}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS11}
              {" "}
              {name8}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS12}
              {" "}
              {name9}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold underline>
            {title5}
          </Text>
          <Text dimColor>
            None
          </Text>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS13}
              {" "}
              {split4}
              #
              {number4}
              {" "}
              {title6}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS14}
              {" "}
              {name10}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS15}
              {" "}
              {name11}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS16}
              {" "}
              {name12}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS17}
              {" "}
              {split5}
              #
              {number5}
              {" "}
              {title7}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS18}
              {" "}
              {name13}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS19}
              {" "}
              {name14}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS20}
              {" "}
              {name15}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS21}
              {" "}
              {split6}
              #
              {number6}
              {" "}
              {title8}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS22}
              {" "}
              {name16}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS23}
              {" "}
              {name17}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS24}
              {" "}
              {name18}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" marginBottom={1}>
          <Text bold underline>
            {title9}
          </Text>
          <Text dimColor>
            None
          </Text>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS25}
              {" "}
              {split7}
              #
              {number7}
              {" "}
              {title10}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS26}
              {" "}
              {name19}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS27}
              {" "}
              {name20}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS28}
              {" "}
              {name21}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS29}
              {" "}
              {split8}
              #
              {number8}
              {" "}
              {title11}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS30}
              {" "}
              {name22}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS31}
              {" "}
              {name23}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS32}
              {" "}
              {name24}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text bold wrap="truncate-end">
              {ICONS33}
              {" "}
              {split9}
              #
              {number9}
              {" "}
              {title12}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS34}
              {" "}
              {name25}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS35}
              {" "}
              {name26}
            </Text>
            <Text wrap="truncate-end">
              {"  "}
              {ICONS36}
              {" "}
              {name27}
            </Text>
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const name = '…'
    await $.ui.toast(`Fetching the log of ${name}...`)
    return next(e)
  })
}

The mod's own code

Its licence text was not found at the commit read, so only the places in the source are linked.

What its code calls

runs programstool 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 6b780123942b 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..claude/skills/pr-ci/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.2 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give
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..claude/skills/pr-ci/hooks/register.tsx:156 a program named at run time
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.no licence

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's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.

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 "turanmahmudov-pr-ci" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs