modscode / Gallery / your-call
your-call
Choice UI tool (select, multi, rank, compare matrix, wizard, regenerate), in-thread charts from fenced viz blocks, plus skills ask-dont-guess, show-dont-tell, phone-a-friend and ask-the-audience
What it does
- Draws a pane, toasts
- Watches tool calls
- Hooks prompt.compose, session.start, ui.close
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
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)
import type { Register } from 'claude-code'
// Drawn like your-call by Daniel Riddell (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/danielriddell21-your-call/
// 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: "‹title›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const title = '…'
const length = '…'
const question = '…'
const l = '…'
const l2 = '…'
const l3 = '…'
const name = '…'
const map = '…'
const name2 = '…'
const map2 = '…'
const name3 = '…'
const map3 = '…'
const map4 = '…'
const mark = '…'
const label = '…'
const detail = '…'
const p = '…'
const p2 = '…'
const p3 = '…'
const c = '…'
const c2 = '…'
const c3 = '…'
const detail2 = '…'
const p4 = '…'
const p5 = '…'
const p6 = '…'
const c4 = '…'
const c5 = '…'
const c6 = '…'
const detail3 = '…'
const p7 = '…'
const p8 = '…'
const p9 = '…'
const c7 = '…'
const c8 = '…'
const c9 = '…'
return (
<Box flexDirection="column">
<Text>
{title}
{" "}
{`(01/${length})`}
</Text>
<Text>
{question}
</Text>
<Box flexDirection="column">
<Text dimColor>
{l}
</Text>
<Text dimColor>
{l2}
</Text>
<Text dimColor>
{l3}
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
{name}
{": "}
{map}
</Text>
<Text dimColor>
{name2}
{": "}
{map2}
</Text>
<Text dimColor>
{name3}
{": "}
{map3}
</Text>
<Text dimColor>
{"total: "}
{map4}
</Text>
</Box>
<Box flexDirection="column">
<Button label={`${mark} ${label}`} />
<Text dimColor>
{" "}
{detail}
</Text>
<Text dimColor>
{" + "}
{p}
</Text>
<Text dimColor>
{" + "}
{p2}
</Text>
<Text dimColor>
{" + "}
{p3}
</Text>
<Text dimColor>
{" - "}
{c}
</Text>
<Text dimColor>
{" - "}
{c2}
</Text>
<Text dimColor>
{" - "}
{c3}
</Text>
<Input label=" tweak:" placeholder="optional note" value="" submitLabel="save" />
</Box>
<Box flexDirection="column">
<Button label={`${mark} ${label}`} />
<Text dimColor>
{" "}
{detail2}
</Text>
<Text dimColor>
{" + "}
{p4}
</Text>
<Text dimColor>
{" + "}
{p5}
</Text>
<Text dimColor>
{" + "}
{p6}
</Text>
<Text dimColor>
{" - "}
{c4}
</Text>
<Text dimColor>
{" - "}
{c5}
</Text>
<Text dimColor>
{" - "}
{c6}
</Text>
<Input label=" tweak:" placeholder="optional note" value="" submitLabel="save" />
</Box>
<Box flexDirection="column">
<Button label={`${mark} ${label}`} />
<Text dimColor>
{" "}
{detail3}
</Text>
<Text dimColor>
{" + "}
{p7}
</Text>
<Text dimColor>
{" + "}
{p8}
</Text>
<Text dimColor>
{" + "}
{p9}
</Text>
<Text dimColor>
{" - "}
{c7}
</Text>
<Text dimColor>
{" - "}
{c8}
</Text>
<Text dimColor>
{" - "}
{c9}
</Text>
<Input label=" tweak:" placeholder="optional note" value="" submitLabel="save" />
</Box>
<Input label="none fit? say what you want instead:" placeholder="then Enter to regenerate" value="" submitLabel="regenerate" />
<Box>
<Button label="Back" />
<Button label="Review" />
<Button label="Skip" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
await $.ui.toast(`your-call: widen the terminal or reopen to answer`)
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.
plugins/your-call/hooks/register.tsx lines 166–313 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const v = await read($, view)
if (!v) return <Text dimColor>No decision pending.</Text>
const set = (fn: (x: View) => View) => update($, view, x => (x ? fn(x) : x))
const step = v.steps[v.idx]
const picks = v.picks[step.id] ?? []
const toggle = (id: string) =>
set(x => {
const cur = x.picks[step.id] ?? []
const next_ =
step.kind === 'many' ? (cur.includes(id) ? cur.filter(c => c !== id) : [...cur, id]) : [id]
return { ...x, picks: { ...x.picks, [step.id]: next_ } }
})
const move = (id: string, d: number) =>
set(x => {
const o = [...(x.picks[step.id] ?? [])]
const i = o.indexOf(id)
const j = i + d
if (j < 0 || j >= o.length) return x
;[o[i], o[j]] = [o[j], o[i]]
return { ...x, picks: { ...x.picks, [step.id]: o } }
})
const decisions = () =>
v.steps.map(s => ({
step: s.id,
picks: v.picks[s.id],
notes: Object.fromEntries(
Object.entries(v.notes).filter(([k]) => k.startsWith(`${s.id}:`)).map(([k, t]) => [k.slice(s.id.length + 1), t]),
),
}))
if (v.phase === 'review') {
return (
<Box flexDirection="column">
<Text>{v.title}: review</Text>
{v.steps.map(s => (
<Text key={`r-${s.id}`}>
{s.question} {'->'} {(v.picks[s.id] ?? []).map(id => s.options.find(o => o.id === id)?.label ?? id).join(', ') || '(none)'}
</Text>
))}
<Box>
<Button key="back" label="Back" onPress={() => set(x => ({ ...x, phase: 'step' }))} />
<Button key="confirm" label="Confirm" onPress={() => finish?.({ decisions: decisions() })} />
</Box>
</Box>
)
}
const ready = step.kind === 'rank' || picks.length > 0
const isLast = v.idx === v.steps.length - 1
const total = (id: string) => (step.criteria ?? []).reduce((a, c) => a + (c.scores[id] ?? 0), 0)
return (
<Box flexDirection="column">
<Text>
{v.title} {v.steps.length > 1 ? `(${v.idx + 1}/${v.steps.length})` : ''}
</Text>
<Text>{step.question}</Text>
{step.viz && (
<Box flexDirection="column">
{textLines(step.viz, step.options, picks).map((l, i) => (
<Text key={`v-${i}`} dimColor>{l}</Text>
))}
</Box>
)}
{step.kind === 'compare' && step.criteria && (
<Box flexDirection="column">
{step.criteria.map(c => (
<Text key={`c-${c.name}`} dimColor>
{c.name}: {step.options.map(o => `${o.label} ${c.scores[o.id] ?? '-'}`).join(' | ')}
</Text>
))}
<Text dimColor>total: {step.options.map(o => `${o.label} ${total(o.id)}`).join(' | ')}</Text>
</Box>
)}
{step.kind === 'rank'
? picks.map((id, i) => {
const o = step.options.find(x => x.id === id)
return (
<Box key={`k-${id}`}>
<Text>
{i + 1}. {o?.label ?? id}{' '}
</Text>
<Button key={`u-${id}`} label="Up" onPress={() => move(id, -1)} />
<Button key={`d-${id}`} label="Down" onPress={() => move(id, 1)} />
</Box>
)
})
: step.options.map(o => {
const on_ = picks.includes(o.id)
const mark = step.kind === 'many' ? (on_ ? '[x]' : '[ ]') : on_ ? '(*)' : '( )'
return (
<Box key={`o-${o.id}`} flexDirection="column">
<Button key={`p-${o.id}`} label={`${mark} ${o.label}`} onPress={() => toggle(o.id)} />
{o.detail && <Text dimColor> {o.detail}</Text>}
{o.pros?.map(p => <Text key={`+${o.id}${p}`} dimColor> + {p}</Text>)}
{o.cons?.map(c => <Text key={`-${o.id}${c}`} dimColor> - {c}</Text>)}
{on_ && (
<Input
key={`n-${step.id}-${o.id}`}
label=" tweak:"
placeholder="optional note"
value={v.notes[`${step.id}:${o.id}`] ?? ''}
submitLabel="save"
onInput={t => set(x => ({ ...x, notes: { ...x.notes, [`${step.id}:${o.id}`]: t } }))}
onSubmit={() => undefined}
/>
)}
</Box>
)
})}
<Input
key="regen"
label="none fit? say what you want instead:"
placeholder="then Enter to regenerate"
value={v.regen}
submitLabel="regenerate"
onInput={t => set(x => ({ ...x, regen: t }))}
onSubmit={t => finish?.({ regenerate: t.trim() || 'propose different options' })}
/>
<Box>
{v.idx > 0 && <Button key="prev" label="Back" onPress={() => set(x => ({ ...x, idx: x.idx - 1 }))} />}
<Button
key="next"
label={isLast ? (v.steps.length > 1 ? 'Review' : 'Confirm') : 'Next'}
onPress={() => {
if (!ready) return
if (!isLast) return set(x => ({ ...x, idx: x.idx + 1 }))
if (v.steps.length > 1) return set(x => ({ ...x, phase: 'review' }))
finish?.({ decisions: decisions() })
}}
/>
<Button key="skip" label="Skip" onPress={() => finish?.({ cancelled: true })} />
</Box>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Daniel Riddell 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
tool 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 aed7eae9870c 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 read | Every module hooks/hooks.json names was read.plugins/your-call/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No 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 open | Network 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 draws | The 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 line | Whether 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 Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether 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 sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An 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 danielriddell21/skills/plugin install your-call@danielriddell21-skillsThis installs the marketplace's latest commit, which may not be the one read here (aed7eae9870c). 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 "danielriddell21-your-call" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Ask Claude…./rows.tsx●●●●●×./rows.tsxnothing loaded yet● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login./rows.tsxWorkspaceWorkspaceWorkspaceselected: build● open in Databricks
-
Ask Claude…build 3 app●●●◉●●okno Library app here yet; Library adds one●./rows.tsx./rows.tsxselected: Nerd
-
Ask Claude…Approved appsApproved appsComputer use can control these apps without asking.High riskAlways allowed (3)None. Allow one below.Not installed (3)This conversation (3)None.Allow an app App name, bundle id or path allowbuilda1b2c3dbuilda1b2c3dbuilda1b2c3d
-
Ask Claude…great_cto: 3 gate waiting — /gatesGatesmy-app · 3 waiting · checked Gates UTCGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approveGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approveGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approve
-
slop Edit1 of 3accepteditrejectAsk Claude…