/ti-toolbox:troubleshoot-project [project-root] [subject-id]from TI-Toolbox
Diagnoses a TI-Toolbox project directory by inspecting subjects, head models, simulations, optimizations, jobs, and reports. Walks the pipeline to identify the first missing stage and maps job error types to actionable guidance.
Ships in TI-Toolbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before anything else, read_wiki_page("troubleshooting") — Troubleshooting, the single
source of truth for known problems and their verified fixes. Match the user's error text against it first; only investigate
further when nothing matches. If you find a new, confirmed cause, tell the user to
report it in GitHub Discussions (Q&A) so it can be added.
Take <project-root> [subject-id] from the user request (or $ARGUMENTS in
clients that provide it). If no project root is given, ask for it (inside the container it is /mnt/<project>; on the host it is
the folder the desktop app or --project was pointed at).
Call MCP inspect_project(project_root, subject?). It reports both halves of a v3
project: the BIDS derivatives, and the code/ti-toolbox/ tree — the job store
(counts by state plus recent failures with their error.type), notebooks and
viewer scenes. Each subject also lists its mTI meshes/NIfTIs and whether it has a
FastSurfer or FreeSurfer reconstruction. The subjects are the ones the app lists: a
subject with only raw data in sourcedata/ is listed when sourcedata/sub-<id>/T1w/ or
T2w/ holds a series (has_sourcedata); an empty or DWI-only folder is not, though
sourcedata_subjects still shows it.
anat_files empty → needs DICOM/NIfTI import (pre-processing wiki).has_m2m / has_head_mesh false → CHARM not run or failed; check
derivatives/SimNIBS/sub-<id>/m2m_<id>/charm_log.html.has_fastsurfer and has_freesurfer both false → atlas / cortical ROI features
unavailable (FastSurfer is the v3 recon; derivatives/freesurfer is legacy).leadfields empty → ex-search cannot run; build a leadfield first (ex-search).mesh_files / nifti_files → the run failed; go to step 3.dti_tensor false but the user wants vn/dir/mc conductivity → needs
diffusion processing: QSIPrep (x86-64 host only), then the DTI step. QSIRecon
is not required for the tensor.flex_meta.json,
run_config.json), so a cancelled or in-progress run never shows as a result.In v3 the evidence is in the job store, <project>/code/ti-toolbox/jobs/<id>/:
spec.json (the exact config that ran), status.json (state, exit code, error),
events.jsonl and stdout.log. States are queued running succeeded failed cancelled skipped lost. Map the error.type to what to tell the user:
error.type | Shown as | What it means |
|---|---|---|
runner_failed | Runner failed | The module raised or exited non-zero. Read the last lines of stdout.log. "terminated by signal 9 — likely out-of-memory" means raise Docker's memory (32 GB+ for diffusion), or run fewer jobs at once. |
skipped | Skipped | A job it depended on failed or was unknown. |
lost | Lost (server restarted mid-run) | The server restarted while it ran. The job is over and will not resume — re-submit it. |
forced | Force-stopped | Someone force-stopped it with POST /api/jobs/{id}/force without waiting for the process. |
kind_error | Invalid job configuration | The config does not match the job kind. |
spawn_error | Could not start the job | The runner process could not be started. |
A job you cancel carries no error.type; a queued job you force-stop lands in
cancelled with forced. Missing inputs are refused before a job is
queued (the preflight check), so they never appear here — go back to step 2.
A server restart never re-adopts a running job: startup reconciliation stops it
and records it failed with error.type lost. A job still shown at running
with nothing behind it is freed with POST /api/jobs/{id}/force, which lands it in
state lost with error.type forced.
container/blueprint/build.sh --tag <image>, or pass --image with a tag they
already have (docker images idossha/ti-toolbox). The first legitimate pull is
~2.3 GB and slow; that is not a hang.desktop/package.json, tit/__init__.py and the
compose default means the app asks for a tag nobody built. get_toolbox_version
reports both versions and whether they agree; dev/update/update_version.py is
the only correct way to change them.docker CLI; loader.sh needs nothing else, loader.py
and tit launch also need CPython ≥ 3.11. list_launch_paths gives the
supported ways to start.read_project_config(project_root, "montage_list.json") — confirm the
name and EEG net exist, exactly (net names are real filenames, e.g.
GSN-HydroCel-185.csv).where="viewer" (<kind>.tetravox.json).where="stim_configs", subject="<id>" — reads
m2m_<id>/stim_configs/*.json, shaped
{"name", "type": "U"|"M", "electrode_positions": {label: [x, y, z]}} in
subject-RAS millimetres. Positions form channels in file order (1+2, 3+4, …):
4 positions are TI, 8, 12, 16 … are mTI. Any other count (an odd number
of channels, or fewer than 4 positions) will not resolve.Summarise as a short table: subject → stages present/missing → next action, each
with the relevant wiki slug, plus a line per failed job (kind, error.type, the
last meaningful line of stdout.log). Do not modify any files.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub idossha/ti-toolbox --plugin ti-toolbox6 skills in this plugin
/ti-codebaseTI-Toolbox codebase patterns, module graph, conventions and architecture (v3 — Electron desktop app, FastAPI tit.server, shared tit science core). Use when reading or modifying source under tit/ or desktop/ (developers)./ti-domainTemporal interference neurostimulation domain knowledge. Use when working on simulation, optimization, analysis, or preprocessing code in TI-Toolbox./ti-run-pipelinesRun TI-Toolbox pipelines for the user through the app they have open — copy raw DICOM/NIfTI into the project's sourcedata, preprocess (charm head model), flex-search or ex-search optimisation, simulate a montage or an optimisation result, and follow the jobs. Use when the user asks you to DO something with their data in TI-Toolbox ("preprocess sub-101", "optimise for the thalamus", "simulate the best montage"), not to explain it. Needs the ti-toolbox-jobs MCP server./ti-scriptingPython scripting API of TI-Toolbox (`tit` package) — SimulationConfig, FlexConfig, ExConfig, Analyzer, run_group_comparison, run_pipeline, the tit.calc envelope functions, JSON config runners. Use when writing or debugging scripts or notebooks that drive TI-Toolbox, or converting a UI workflow to code./ti-toolboxOrientation for the Temporal Interference Toolbox (TI-Toolbox, Python package `tit`). Use whenever the user mentions TI-Toolbox, TI stimulation simulation/optimization, SimNIBS-based TI workflows, flex-search, ex-search, mTI, the v3 desktop app, or a BIDS project with derivatives/SimNIBS. Explains how the toolbox runs, where docs live, and which MCP tools to call.Other plugins' skills for the same job