Mri Research Workflow logo

Mri Research Workflow

Community
KeWang0622
mri-research-workflow

Read before designing, analysing, writing up or reviewing an MRI study: results sections with a claim ledger, referee reports, gaps and proposals from a supplied corpus, sample size and repeatability (ICC with CI) from pilot data, group comparisons, cutoffs and held-out splits. Use it, not the method skills, for manuscripts. Prevents overclaiming, numbers that do not match the data, non-verbatim quotes, wrong statistical units and over-limit texts. Ships a writing checker, study statistics and the finish check every MRFoundry skill runs.

Overview

PublisherKeWang0622
RepositoryMRFoundry
Skill namemri-research-workflow
Stars
31
Forks
0
Bundled files
17
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 17 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by KeWang0622 on GitHub. Read the source before you install it.

Installation

Install the Mri Research Workflow AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/KeWang0622/MRFoundry/tree/main/skills/mri-research-workflow
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/KeWang0622/MRFoundry.git /tmp/MRFoundry
mkdir -p .claude/skills
cp -r /tmp/MRFoundry/skills/mri-research-workflow .claude/skills/mri-research-workflow
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mri Research Workflow in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mri Research Workflow on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mri Research Workflow is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MRFoundry: MRI Research Workflow (studies, statistics, write-ups, reviews, deliverables)

Route

TaskReadCheck before finishing
Results section, abstract, claim ledgerwrite-resultsscripts/write_check.py --claims ...
Methods/statistics review of a manuscriptwrite-reviewscripts/write_check.py --quotes ...
Research gap and proposal from a supplied corpuswrite-proposalscripts/write_check.py --ids ... --schema ...
Repeatability and sample size from pilot dataplan-sample-sizescripts/write_check.py --schema ... --numbers-in ...
Group statistics, repeatability, cutoffsscripts/study_stats.py (table below)finish check
Study or method-comparison design: baselines, endpoints, ablations, failure testsevaluation guide
Paper planning, venues, reviewer responsespaper-writing guide
Literature summary or related workliterature access: state topic and date window, verify primary records, merge versions, label abstract-only items, keep reported claims apart from your assessment
Deliverables with codefinish check (below)

python .agents/skills/mri-research-workflow/scripts/write_check.py --help lists every flag; each FAIL line says what to fix. Fix the files, never the checker, and run it again.

Rules for every write-up, review and plan

  1. Definitions are literal. Apply each definition the task gives to every record or entry IN CODE (one row per record with the fields the definition uses and the decision). Add no criteria and drop none.
  2. Schemas are exact: key names, vocabulary spellings, one value versus a list, integers. An endpoint unit is the measurement unit (ms, 1/s, mm²/s, %), never the unit of analysis.
  3. Numbers come from files: compute in code, keep one ledger, write prose from it with the same rounding; no new statistics unless asked. Units and precision as the task states.
  4. Claims match the evidence: a CI including 0 is reported as no difference detected; exploratory results are labelled as such in every clause; no causal or clinical claim beyond the design.
  5. Citations are closed: only supplied keys or record IDs; a record supports a statement only if it states that fact itself.
  6. Limits: word limits count every token; stay below 90 %. Quotes are one contiguous verbatim passage.

Study statistics (scripts/study_stats.py, tested; --api lists signatures)

NeedFunction
Two groupstwo_sample_t (pooled or Welch t, CI, p, pooled SD, Hedges g), auc, subject_bootstrap
Pairedpaired_difference (t CI, Cohen's dz), bland_altman
Repeatabilityrepeatability (wSD with chi-square CI, wCV, RC), icc, icc_ci (F-based CI, all six forms)
Sample sizen_per_group, n_paired (normal or exact t), sd_of_differences, inflate_for_loss, combined_fraction, n_total_unbalanced
Cutoffsthreshold_on_dev, balanced_accuracy

The statistical unit is the subject (or the unit the plan names), never the voxel; fix every setting, threshold and cutoff on development subjects and apply it unchanged to held-out subjects; the study's analysis plan overrides these defaults.

Finish check (every task with files to deliver)

python .agents/skills/mri-research-workflow/scripts/finish_check.py \
    --require <every deliverable name the task lists; for a kind of script, your actual files> \
    --rerun "python <entrypoint> <documented arguments with {inputs} and {out}>" --inputs <input folder> \
    [--expect <files the entrypoint must write>] [--json report.json:key1,key2/sub] [--range FILE:LOW:HIGH]

Deliver every listed output, scripts and the helper modules they import included, directly in the delivery folder (the folder the task names, else the workspace root), never in a subfolder the task does not name. The check fails on missing or misnamed deliverables, listed files in a subfolder, a script whose imported helper lies elsewhere (or only under .agents), an entrypoint stored apart from its outputs, no environment record when code is delivered, an entrypoint that fails in a fresh folder, and map medians outside the expected range. Without code, use --require only. --help lists the flags of either checker: run them, do not read their sources. A standalone single-file entrypoint takes tested helpers with python .agents/skills/mri-research-workflow/scripts/inline_helpers.py <module.py> <functions> --into <entrypoint.py>.

Citations: reading list. Project notes (only with .mrfoundry/INDEX.md): project memory.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mri Research Workflow AI skill do?

Read before designing, analysing, writing up or reviewing an MRI study: results sections with a claim ledger, referee reports, gaps and proposals from a supplied corpus, sample size and repeatability (ICC with CI) from pilot data, group comparisons, cutoffs and held-out splits. Use it, not the method skills, for manuscripts. Prevents overclaiming, numbers that do not match the data, non-verbatim quotes, wrong statistical units and over-limit texts. Ships a writing checker, study statistics and the finish check every MRFoundry skill runs.

Why use Mri Research Workflow on TypingMind?

Because you install it once and use it with any model. Mri Research Workflow is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mri Research Workflow in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/KeWang0622/MRFoundry/tree/main/skills/mri-research-workflow. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mri Research Workflow?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mri Research Workflow?

As many as you like. As long as a model supports skills, you can use Mri Research Workflow with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mri Research Workflow AI skill free?

Yes. It is published on GitHub by KeWang0622 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇