modscode / Gallery / move-coach
move-coach
Camera pane with pose landmarks, spoken coaching and optional Muse EEG for the Built to Move mobility tests (macOS)
What it does
- Draws a pane, toasts
- Adds /move-coach
- Watches tool calls
- Hooks session.start
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
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 move-coach by Nate Aune (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/natea-move-coach/
// 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: "Move Coach" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Select, Button } = $.ui.resolve(e)
const who = '…'
const points = '…'
const max = '…'
const done = '…'
const length = '…'
const short = '…'
const bar = '…'
const label = '…'
const short2 = '…'
const short3 = '…'
const title = '…'
const score_label = '…'
const points2 = '…'
const explanation = '…'
const step = '…'
const total = '…'
const title2 = '…'
const nextTitle = '…'
const instruction = '…'
const cue = '…'
const metrics = '…'
const device = '…'
const status = '…'
const c = '…'
const sparkline = '…'
const c2 = '…'
const sparkline2 = '…'
const c3 = '…'
const sparkline3 = '…'
const map = '…'
const error = '…'
const baselineLine = '…'
const phase = '…'
const elapsed = '…'
const error2 = '…'
const q = '…'
const q2 = '…'
const q3 = '…'
const chosenCamera = '…'
return (
<Box flexDirection="column">
<Box borderStyle="round" borderColor="green" paddingX={1} flexDirection="column">
<Text bold color="green">
MOVE SCORE
{` · ${who}`}
{" "}
{points}
{" / "}
{max}
{" ("}
{done}
{" of "}
{length}
{" tests)"}
</Text>
<Text>
{short}
{" "}
{`${bar} ${points}/10 ${label}`}
</Text>
<Text>
{short2}
{" "}
{`${bar} ${points}/10 ${label}`}
</Text>
<Text>
{short3}
{" "}
{`${bar} ${points}/10 ${label}`}
</Text>
</Box>
<Box borderStyle="double" borderColor="yellow" paddingX={1} flexDirection="column">
<Text bold color="yellow">
{"✓ "}
{title}
{": "}
{score_label}
{" → "}
{points2}
/10 points
</Text>
<Text>
{"How it was scored: "}
{explanation}
</Text>
</Box>
<Text bold color="cyan">
{"Test "}
{step}
{" of "}
{total}
{": "}
{title2}
{` · next: ${nextTitle}`}
</Text>
<Text>
{instruction}
</Text>
<Text color="green">
{"🗣 "}
{cue}
</Text>
<Box flexDirection="row" gap={2}>
<Box flexDirection="column" />
</Box>
<Text dimColor>
{metrics}
</Text>
<Box flexDirection="column">
<Text bold color="magenta">
🧠 Brain waves
{` · ${device}`}
{` · ${status}`}
</Text>
<Box flexDirection="column">
<Text>
{c}
{" "}
{sparkline}
{" "}
</Text>
<Text>
{c2}
{" "}
{sparkline2}
{" "}
</Text>
<Text>
{c3}
{" "}
{sparkline3}
{" "}
</Text>
<Text>
{map}
</Text>
</Box>
<Text color="red">
{error}
</Text>
<Text color="green">
{baselineLine}
</Text>
</Box>
<Text dimColor>
{`● ${phase} · ${elapsed}s`}
{` · ${status}`}
</Text>
<Text color="red">
{error2}
</Text>
<Box flexDirection="column">
<Text bold>
Questions to confirm the score (answer in the chat):
</Text>
<Text>
{"• "}
{q}
</Text>
<Text>
{"• "}
{q2}
</Text>
<Text>
{"• "}
{q3}
</Text>
</Box>
<Box flexDirection="row" gap={2}>
<Select label="Camera" value={`${chosenCamera}`} />
<Button label="Stop" />
<Button label="EEG baseline" />
<Button label="Stop EEG" />
<Button label="Done with this side" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const mode = '…'
const who = '…'
await $.ui.toast(`Move Coach: type "/built-to-move-mobility-test ${mode} ${who}" to start.`)
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/move-coach/hooks/register.tsx lines 885–1044 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const els = $.ui.resolve(e) as any
const { Box, Text, Button } = els
const v = await read($, view)
const camList = await read($, cameras)
const meta = TESTS[v.test]
const isTerminal = e.surface === 'terminal'
const pictures = []
for (const img of meta.images.slice(0, isTerminal ? 2 : 3)) {
if (isTerminal && v.cells) {
// inside tmux: the pre-rendered half-block version of the illustration
let art = imageCache.get(`${img.file}.cells`)
if (!art) {
const path = await bookFile($, `${img.file}.cells.json`)
if (!path) continue
art = await $.fs.read(path)
imageCache.set(`${img.file}.cells`, art)
}
const { cols, rows, cells } = JSON.parse(art) as { cols: number; rows: number; cells: string }
pictures.push(
<Box flexDirection="column" width={32}>
<els.Raster key={`book-${img.file}`} columns={cols} rows={rows} cells={cells} />
<Text dimColor>{img.caption}</Text>
</Box>,
)
} else if (isTerminal) {
const path = await bookFile($, `${img.file}.png`)
if (!path) continue
pictures.push(
<Box flexDirection="column" width={32}>
<els.Image source={{ file: path, format: 'png' }} columns={30} rows={14} alt={img.caption} />
<Text dimColor>{img.caption}</Text>
</Box>,
)
} else if (els.Svg) {
let b64 = imageCache.get(img.file)
if (!b64) {
const path = await bookFile($, `${img.file}.jpg`)
if (!path) continue
const bytes = await $.fs.read(path, { as: 'bytes' })
b64 = (bytes as { base64: string }).base64
imageCache.set(img.file, b64)
}
pictures.push(
<Box flexDirection="column" width={30}>
<els.Svg source={bookSvg(b64)} alt={img.caption} width={200} height={200} />
<Text dimColor>{img.caption}</Text>
</Box>,
)
}
}
let camera
if (isTerminal) {
camera = v.cells ? (
<els.Raster key="cam" columns={v.cols} rows={v.rows} cells={v.cells} />
) : v.png ? (
<els.Image key="cam" source={{ file: v.png, format: 'png', generation: v.gen }} columns={64} rows={20} alt="camera with pose landmarks" />
) : (
<Text dimColor>{v.isRunning ? 'waiting for the camera…' : 'camera off'}</Text>
)
} else if (els.Svg) {
camera = <els.Svg source={cameraSvg(v)} alt="camera with pose landmarks" width={480} />
} else {
camera = <Text dimColor>This surface can't draw the camera.</Text>
}
const metrics = Object.entries(v.metrics)
.map(([k, x]) => `${k}: ${typeof x === 'object' ? JSON.stringify(x) : String(x)}`)
.join(' · ')
const ev = await read($, eeg)
const board = await read($, scores)
const who = await read($, person)
const total = totalOf(board)
let last: { points?: number; score_label?: string; explanation?: string; stopped?: boolean } = {}
try {
last = v.result ? JSON.parse(v.result) : {}
} catch {}
return (
<Box flexDirection="column">
<Box borderStyle="round" borderColor="green" paddingX={1} flexDirection="column">
<Text bold color="green">
MOVE SCORE{who ? ` · ${who}` : ''} {total.points} / {total.max} ({total.done} of {SCORED.length} tests)
</Text>
{SCORED.map(t => (
<Text dimColor={board[t.key] === undefined}>
{t.short.padEnd(13)} {board[t.key] ? `${bar(board[t.key]!.points)} ${String(board[t.key]!.points).padStart(2)}/10 ${board[t.key]!.label}` : '▱▱▱▱▱▱▱▱▱▱ – not tested'}
</Text>
))}
</Box>
{!v.isRunning && typeof last.points === 'number' && (
<Box borderStyle="double" borderColor="yellow" paddingX={1} flexDirection="column">
<Text bold color="yellow">
✓ {meta.title}: {last.score_label} → {last.points}/10 points
</Text>
{last.explanation && <Text>How it was scored: {last.explanation}</Text>}
</Box>
)}
{v.step && v.total ? (
<Text bold color="cyan">
Test {v.step} of {v.total}: {v.title}{v.nextTitle ? ` · next: ${v.nextTitle}` : ' · last test'}
</Text>
) : (
<Text bold>{v.title}</Text>
)}
{v.instruction && <Text>{v.instruction}</Text>}
{v.isRunning && v.cue && <Text color="green">🗣 {v.cue}</Text>}
<Box flexDirection="row" gap={2}>
{camera}
{pictures.length > 0 && <Box flexDirection="column">{pictures}</Box>}
</Box>
{metrics && <Text dimColor>{metrics}</Text>}
{(ev.isRunning || ev.error || ev.raw.length > 0) && (
<Box flexDirection="column">
<Text bold color="magenta">
🧠 Brain waves{ev.device ? ` · ${ev.device}` : ''}{ev.status ? ` · ${ev.status}` : ''}
</Text>
{ev.raw.length > 0 &&
(!isTerminal && els.Svg ? (
<els.Svg source={eegSvg(ev)} alt="EEG traces per channel and relative band power" width={480} />
) : (
<Box flexDirection="column">
{ev.channels.map((c, i) => (
<Text>
{c.padEnd(5)} {sparkline(ev.raw[i] ?? [])} {ev.quality[i] ?? ''}
</Text>
))}
<Text>{BAND_ORDER.map(b => `${b} ${Math.round((ev.bands[b] ?? 0) * 100)}%`).join(' ')}</Text>
</Box>
))}
{ev.error && <Text color="red">{ev.error}</Text>}
{ev.baseline && <Text color={ev.baseline.phase === 'done' ? 'green' : ev.baseline.phase === 'cancelled' ? 'yellow' : 'cyan'}>{baselineLine(ev.baseline)}</Text>}
</Box>
)}
<Text dimColor>
{v.isRunning ? `● ${v.phase} · ${v.elapsed}s` : v.test === 'free' ? '○ camera off' : v.phase === 'done' ? (last.stopped ? '■ stopped. The camera is off; nothing was scored.' : '✓ done') : '○ idle'}
{v.status ? ` · ${v.status}` : ''}
</Text>
{v.error && <Text color="red">{v.error}</Text>}
{!v.isRunning && (last as { confirm?: string[] }).confirm?.length ? (
<Box flexDirection="column">
<Text bold>Questions to confirm the score (answer in the chat):</Text>
{(last as { confirm?: string[] }).confirm!.map(q => (
<Text>• {q}</Text>
))}
</Box>
) : null}
<Box flexDirection="row" gap={2}>
{els.Select && camList.length > 0 && (
<els.Select
// keyed on the device list so a renumbered list remounts the picker instead of keeping stale labels
key={`camera:${camList.map(c => c.name).join('|')}`}
label="Camera"
options={camList.map(c => ({ value: String(c.index), label: c.name }))}
value={String(chosenCamera ?? 0)}
onSelect={async (value: string) => pickCamera($, Number(value))}
/>Licence text (MIT)
MIT License Copyright (c) 2026 Nate Aune 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
runs programswrites filesdrives Claudetool callsremembers
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 ff4a513481e9 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/move-coach/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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).plugins/move-coach/hooks/register.tsx:167 /usr/bin/printenv (not on Windows); plugins/move-coach/hooks/register.tsx:170 /bin/test (not on Windows); plugins/move-coach/hooks/register.tsx:320 /bin/zsh (not on Windows); plugins/move-coach/hooks/register.tsx:329 /bin/zsh (not on Windows); plugins/move-coach/hooks/register.tsx:434 /bin/zsh (not on Windows) |
| 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.plugins/move-coach/hooks/register.tsx:320 /bin/zsh (a shell or interpreter); plugins/move-coach/hooks/register.tsx:329 /bin/zsh (a shell or interpreter); plugins/move-coach/hooks/register.tsx:434 /bin/zsh (a shell or interpreter); plugins/move-coach/hooks/register.tsx:531 a program named at run time; plugins/move-coach/hooks/register.tsx:670 a program named at run time |
| 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 natea/move-coach/plugin install move-coach@move-coachThis installs the marketplace's latest commit, which may not be the one read here (ff4a513481e9). 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 "natea-move-coach" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
Ask Claude…Model routerLast reply: Fix login → a1b2c3dKept off Opus to save the cache. Start a prompt with @Opus to force it.OnOffRoutes model and effort for each kind of prompt0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuildYour rules checked firstNo rules yet. Pick a model and effort, type the words, press Add rule.Tasksa1b2c3d✕Tasksa1b2c3d✕Tasksa1b2c3d✕words, for example landing page, redesign Add rulebuildbuildbuildbuildbuildbuildOptions CoolingWhen still broken after xhigh, move tobuildbuildbuildCache saver: skip one-off model switches in long chatsbuildbuildbuildOne prompt only: start it with @opus, @max or @hardReset
-
Ask Claude…Agent Cats🐾 Agent CatsWorking SearchAsleep DoneWaiting for you 3Skills for this taskMode: only the chosen onesRefresh listbuild ✕build ✕build ✕Clear allAsleep Filter__pick__No installed skills found. Try "Refresh list".Find a new skill: say what you need, Enter asks the main agent to search SearchNeeds your replyNo agents yet.⋯ᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialogᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialogᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialog
-
Ask Claude…Backgrounda1b2c3dok · 2h 10m · exit Follow latest
$ npm testNo output yet.Follow latest -
Ask Claude…Prompt cacheexpired · LowTTL Cache breaks · last hit 0 · ctx 42%extending…This conversationavg hit – · req English · breaks Compact · extended Compact · peak ctx 12.4kPer request · token cost■ read ×0.1■ write□ miss▬▬▬ hit rate▬ break┊ idle near expiry▲ extendedCache breaksnone● Low Extend● Low Extend● Low ExtendBreak sensitivityEnglishHigher counts smaller drops as breaks; applies from the next requestExtensionsnone2h 10m · English · 32h 10m · English · 32h 10m · English · 3SettingsWhen about to expireLowAuto-extend per idle stretch2h 10mToast notificationsDetailsCache TTLautoPrompt cacheBand above the promptOffBreak sensitivityEnglishHigher counts smaller drops as breaks; applies from the next requestLanguageen
-
Ask Claude…build · buildsrc/app.tsSwitch to portrait−Fit+◀▶RefreshOpen in ObsidianWriteUse built-in rendererPageNote: Page.Cannot draw src/app.ts: PageCanvas