ModsCode / Claude Code Mods / Ranking / 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
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
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/claude-mods/mods/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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programswrites filesdrives Claudetool callsremembers
What its code shows
Read from the source at commit ff4a513481e9 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 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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files, but reaches nothing outside |
| 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 |
| Settings hooks | Hooks 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 ships | MCP 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, agents | What 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.1 skill: text only |
| Tools and MCP | Whether 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 model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person), adds command move-coach, adds tool ? |
| Events it hooks | By 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 (move-coach), tool.call · also: session.start, ui.render (Pane) · timers: clock.after |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.files: a path computed at run time |
| Writes, by name | The 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.files: …/control.json, …/voice.json |
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 natea/move-coach/plugin install move-coach@move-coach/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (ff4a513481e9). 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/natea/move-coachgit -C move-coach checkout ff4a513481e9fc189df35b76236061f4dd913d85claude plugin validate move-coach/plugins/move-coachclaude --plugin-dir move-coach/plugins/move-coachThe 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 "natea-move-coach" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- cockpitSyed Muhammad Hassaan★ 1
- github-issuesMarco Carnevali★ 1
- skinshellosverre★ 1
- agent-catsanthonyzng★ 0
- bg-watchArunprakaash★ 0
- cache-barTsungYing★ 0
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/natea-move-coach/)