Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / your-turn

your-turn

把最後一則回覆裡要你親手跑的指令(程式碼區塊裡 sudo 開頭的行、! <cmd>、前一句叫你自己跑的 shell 區塊)列成對話旁的清單,每段帶上回覆裡的前一句說明;按數字鍵勾完成、按 y 再按編號複製指令,全部完成後按 r 回報,送出「N/N 完成了」。只整理,不代跑

Code you can checkTerminal + desktopPaneToastBoxButtonText
drives Claude, draws

What it does

  • Draws a pane, toasts
  • Adds /your-turn
  • Hooks session.start, turn.complete

Good points

  • No network calls
  • Starts no processes
  • Small: 337 lines
  • Written in TypeScript

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 your-turn by Mango (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/mangow314-your-turn/
// 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: "要你跑的指令" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const title = '…'
    const body = '…'
    const i = '…'
    const label = '…'
    const body2 = '…'
    const body3 = '…'
    const body4 = '…'
    const body5 = '…'
    const body6 = '…'
    const title2 = '…'
    const body7 = '…'
    const body8 = '…'
    const body9 = '…'
    const body10 = '…'
    const body11 = '…'
    const body12 = '…'
    const title3 = '…'
    const body13 = '…'
    const body14 = '…'
    const body15 = '…'
    const body16 = '…'
    const body17 = '…'
    const body18 = '…'
    const done = '…'
    const length = '…'
    const keys = '…'
    return (
      <Box flexDirection="column">
        <Text>
          <Text bold>
            your-turn
          </Text>
          <Text color="#928374">
            {"  沒有要你跑的指令"}
          </Text>
        </Text>
        <Box flexDirection="column" marginTop={1}>
          <Text>
            <Text>
              ╭─
            </Text>
            <Text bold>
              {title}
            </Text>
            <Text>
              ────────╮
            </Text>
          </Text>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body2}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body3}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body4}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body5}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body6}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Text>
            ╰────────╯
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text>
            <Text>
              ╭─
            </Text>
            <Text bold>
              {title2}
            </Text>
            <Text>
              ────────╮
            </Text>
          </Text>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body7}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body8}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body9}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body10}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body11}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body12}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Text>
            ╰────────╯
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text>
            <Text>
              ╭─
            </Text>
            <Text bold>
              {title3}
            </Text>
            <Text>
              ────────╮
            </Text>
          </Text>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body13}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body14}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body15}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body16}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│   "}
            </Text>
            <Text color="#928374">
              {body17}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Box flexDirection="row">
            <Text>
              {"│ "}
            </Text>
            <Button plain hotkey={`${i}`} label={`${label}`} />
            <Text bold>
              {" ! "}
            </Text>
            <Text>
              {body18}
            </Text>
            <Text>
              {"         │"}
            </Text>
          </Box>
          <Text>
            ╰────────╯
          </Text>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Text>
            <Text color="#928374">
              {"進度 "}
            </Text>
            <Text color="#b8bb26">
              ━━━━━━━━
            </Text>
            <Text color="#504945">
              ━━━━━━━━
            </Text>
            <Text color="#b8bb26">
              {` ${done}/${length}`}
            </Text>
          </Text>
          <Box flexDirection="row">
            <Text>
              {keys}
              <Text color="#504945">
                {" │ "}
              </Text>
            </Text>
            <Button plain hotkey="y" label="取消複製" />
            <Text>
              <Text color="#504945">
                {" │ "}
              </Text>
            </Text>
            <Button plain hotkey="q" label="關閉" />
          </Box>
        </Box>
        <Button variant="primary" hotkey="r" label={`回報 ${length}/${length} 完成`} />
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const length = '…'
    const i = '…'
    await $.ui.toast(`your-turn:${length} 條要你親手跑的指令,終端機太窄沒畫出來,打 /your-turn 打開`)
    await $.ui.toast(`your-turn:已複製第 ${i}1 條`)
    return next(e)
  })
}

The mod's own code

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

your-turn/hooks/register.tsx lines 88–210 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const steps = await read($, stepsAtom)
    const isYanking = await read($, yankAtom)
    // 和 away-receipt 一樣按 q 關;引擎內建的 ctrl+x x 要按兩個鍵。清單空的時候也要有,不然 q 沒作用
    const close = <Button key="close" plain hotkey="q" label="關閉" onPress={() => $.ui.close({ id: PANE })} />
    // 標題是一般文字,不用色塊
    const header = (
      <Text>
        <Text bold>your-turn</Text>
        <Text color={GRAY}>{`  ${steps.length === 0 ? '沒有要你跑的指令' : `${steps.length} 條指令待你親手跑`}`}</Text>
      </Text>
    )
    if (steps.length === 0) {
      return (
        <Box flexDirection="column">
          {header}
          <Box marginTop={1}>{close}</Box>
        </Box>
      )
    }
    const width = e.props.bodyColumns
    const room = Math.max(10, width - ROW_FIXED)
    const done = steps.filter(s => s.isDone).length
    const isAllDone = done === steps.length
    // 按鈕只放編號與 ○/✔(按鈕文字不能加刪除線、也不能上色);$/!、指令另用 Text 畫,做完的指令加刪除線。
    // 右框線前補空白,讓每列剛好 pane 寬
    const row = (s: Step, i: number, color: string, frame: string) => {
      const isBang = s.cmd.startsWith('!')
      const body = clip(isBang ? s.cmd.slice(1).trimStart() : s.cmd, room)
      const mark = s.isDone ? '✔' : '○'
      const label = i < MAX_KEYS ? mark : `${i + 1}: ${mark}`
      const keyCols = i < MAX_KEYS ? 3 : 0
      const pad = Math.max(0, width - 7 - keyCols - cols(label) - cols(body))
      const press = (p: UiPressArgument) => (isYanking ? yank($, s.cmd, i, p) : toggle($, i))
      return (
        <Box key={`row-${i + 1}`} flexDirection="row">
          <Text color={frame}>{'│ '}</Text>
          {i < MAX_KEYS
            ? <Button key={`step-${i + 1}`} plain hotkey={String(i + 1)} label={label} dimColor={s.isDone} onPress={press} />
            : <Button key={`step-${i + 1}`} plain label={label} dimColor={s.isDone} onPress={press} />}
          <Text color={color} bold dimColor={s.isDone}>{isBang ? ' ! ' : ' $ '}</Text>
          <Text dimColor={s.isDone} strikethrough={s.isDone}>{body}</Text>
          <Text color={frame}>{`${' '.repeat(pad)} │`}</Text>
        </Box>
      )
    }
    // 說明行:回覆裡這段指令的前一句,淡灰色、縮排 2 欄,太長截斷
    const noteLine = (note: string, i: number, frame: string) => {
      const body = clip(note, Math.max(10, width - NOTE_FIXED))
      return (
        <Box key={`note-${i + 1}`} flexDirection="row">
          <Text color={frame}>{'│   '}</Text>
          <Text color={GRAY}>{body}</Text>
          <Text color={frame}>{`${' '.repeat(Math.max(0, width - NOTE_FIXED - cols(body)))} │`}</Text>
        </Box>
      )
    }
    // 照清單順序切框:連續在同一處跑的指令放同一框,換地方跑就開新框,所以同一組可能出現兩個框。
    // 每框上方空一行,標題嵌在上框線;框裡還有沒做完的指令時框線用該組顏色
    const runs: { g: (typeof GROUPS)[number]; members: { s: Step; i: number }[] }[] = []
    steps.forEach((s, i) => {
      const g = GROUPS.find(x => x.has(s.cmd)) ?? GROUPS[0]
      const last = runs.at(-1)
      if (last?.g === g) last.members.push({ s, i })
      else runs.push({ g, members: [{ s, i }] })
    })
    const groups = runs.map(({ g, members }, n) => {
      const frame = members.some(m => !m.s.isDone) ? g.color : DARK_GRAY
      const title = ` ${g.icon} ${g.title} `
      return (
        <Box key={`box-${n}`} flexDirection="column" marginTop={1}>
          <Text>
            <Text color={frame}>{'╭─'}</Text>
            <Text color={g.color} bold>{title}</Text>
            <Text color={frame}>{`${'─'.repeat(Math.max(0, width - 3 - cols(title)))}╮`}</Text>
          </Text>
          {members.flatMap(m => [...(m.s.note ? [noteLine(m.s.note, m.i, frame)] : []), row(m.s, m.i, g.color, frame)])}
          <Text color={frame}>{`╰${'─'.repeat(Math.max(0, width - 2))}╯`}</Text>
        </Box>
      )
    })
    // 進度條跟著 pane 寬度縮,最長 16 格
    const track = Math.max(4, Math.min(TRACK_MAX, width - FOOT_FIXED))
    const filled = Math.round((done / steps.length) * track)
    // lazygit 式按鍵列:按鍵塗綠、說明用預設字色、項目之間用深灰 │ 隔開
    const key = (s: string) => <Text color={GREEN} bold>{s}</Text>
    const sep = <Text color={DARK_GRAY}>{' │ '}</Text>
    const range = `1–${Math.min(MAX_KEYS, steps.length)}`
    const keys = isYanking
      ? [key(range), ' 按編號複製那條指令']
      : isAllDone
        ? [key('r'), ' 回報:告訴 Claude 全部完成']
        : e.props.isFocused
          ? [key(range), ' 勾選', sep, key('再按一次'), ' 取消']
          : [key('ctrl+x tab'), ' 切過來', sep, key(range), ' 勾選']
    // 再按一次 y 取消複製模式
    const yankButton = <Button key="yank" plain hotkey="y" label={isYanking ? '取消複製' : '複製'} onPress={() => update($, yankAtom, v => !v)} />
    return (
      <Box flexDirection="column">
        {header}
        {groups}
        <Box flexDirection="column" marginTop={1}>
          <Text>
            <Text color={GRAY}>進度 </Text>
            <Text color={GREEN}>{TRACK.repeat(filled)}</Text>
            <Text color={DARK_GRAY}>{TRACK.repeat(track - filled)}</Text>
            <Text color={isAllDone ? GREEN : GRAY}>{` ${done}/${steps.length}`}</Text>
          </Text>
          {/* 複製、關閉鈕接在按鍵列尾:引擎畫成「y: 複製」「q: 關閉」 */}
          <Box flexDirection="row">
            <Text>{keys}{sep}</Text>
            {yankButton}
            <Text>{sep}</Text>
            {close}
          </Box>
        </Box>
        {isAllDone && (
          <Button key="report" variant="primary" hotkey="r" label={`回報 ${steps.length}/${steps.length} 完成`} onPress={() => report($, steps.length)} />
        )}
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 Mango

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), Add a slash command

What its code calls

drives Claude

What its code shows

Read from the source at commit dc48c1c6691c on 2026-10-11. 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.your-turn/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.no network
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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).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 your-turn, prompt.submit (as the person)
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: command.run (your-turn) · also: session.start, turn.complete, ui.render (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.reads no files, environment variables, settings or transcript
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 clipboard

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 mangow314/mango-mods
/plugin install your-turn@mango-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (dc48c1c6691c). 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/mangow314/mango-mods
git -C mango-mods checkout dc48c1c6691c2e0d661ade52c7aedb7815cccd68
claude plugin validate mango-mods/your-turn
claude --plugin-dir mango-mods/your-turn

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 "mangow314-your-turn" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More from this repository

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/mangow314-your-turn.svg)](https://modscode.com/claude-mods/mods/mangow314-your-turn/)