mri-hardware SKILL.md skillA

mri-hardware from kewang0622/mri-research-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add kewang0622/mri-research-skill/mri-hardware@v0.14.0

Pins v0.14.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
kewang0622/mri-research-skill
Path
skills/mri-hardware/SKILL.md
Versions recorded
14
Latest version
v0.14.0, committed Oct 31, 2026
First version recorded
Sep 20, 2026
Size
5,494 bytes
Repository stars
31
License
MIT

Read before any MR hardware or safety calculation: B0 field maps and shimming with current limits, gradient and RF coil fields, B1+rms and SAR (IEC 60601-2-33), dB/dt and nerve stimulation, receiver noise and SNR, low- field and open-source consoles. Prevents silent errors in units, frames, field components, harmonic normalization, bounded optimization and limit definitions. Ships tested SI helpers checked against analytic cases. Not clinical advice.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# MRFoundry: MRI Hardware and Safety

Hardware numbers are useful only with their units, conventions and a check. Use the tested helpers in
`scripts/mrfoundry_hwlib.py` (numpy/scipy, SI units) and import them rather than re-deriving them:
`python .agents/skills/mri-hardware/scripts/mrfoundry_hwlib.py --api` lists signatures (do not cat the source); `scripts/test_hwlib.py` shows
each helper on an analytic case.

## Route

| Task | Use (`mrfoundry_hwlib.py`) |
|---|---|
| Field map from multi-echo phase (nonzero phase0, uneven echo times) | `fieldmap_multiecho(phase, te, magnitude, max_abs_hz)` (temporal unwrapping; also spatially unwrap if fields can exceed 1/(2 ΔTE_min)) |
| Shim basis at voxel positions | `voxel_world_coords(affine, shape)` (full affine, mm to m), then evaluate the vendor's polynomials there; `solid_harmonics`, `fit_harmonics` for analysis |
| Optimal shim currents within limits | `shim_currents(field, roi, channel_maps, lower, upper, current_during_acquisition=I_acq)`: absolute currents, `frequency_adjust` (= -offset) and a KKT optimality report |
| Any bounded least-squares fit you wrote yourself | `bounded_lsq_kkt(A, b, x, lower, upper)` must return ok |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add kewang0622/mri-research-skill/mri-hardware@sha256:130c89f3b66c9a3e

The line at the top of this page pins the label v0.14.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_g76u7psnowxihkm6.svg)](https://markdownregistry.com/a/art_g76u7psnowxihkm6)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 14 versions of this file, between Sep 20, 2026 and Oct 31, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
v0.14.0 latest2026-10-31 e7494be 5,494 BA view · diff
v0.13.02026-10-31 4618a27 5,494 BA view · diff
v0.12.02026-10-31 5e72e16 5,270 BA view · diff
v0.11.02026-10-31 fd03f30 4,681 BA view · diff
v0.11.02026-10-31 e52aacd 4,897 BA view · diff
v0.8.02026-10-10 6e4408e 6,431 BA view · diff
v0.8.02026-10-09 305d420 6,279 BA view · diff
v0.8.02026-10-07 4cc7dff 6,313 BA view · diff
v0.7.02026-09-28 adaaf21 6,134 BA view · diff
v0.7.02026-09-24 90d0c56 5,719 BA view · diff
v0.7.02026-09-24 f90c25f 5,106 BA view · diff
v0.7.02026-09-22 c1cd332 4,276 BA view · diff
v0.1.02026-09-22 6b2c20f 3,724 BA view · diff
v0.1.02026-09-20 a8f0a76 2,961 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5494 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

kewang0622/mri-research-skill · 31 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_g76u7psnowxihkm6
GET https://markdownregistry.com/api/v1/resolve?ref=kewang0622/mri-research-skill/mri-hardware
GET https://markdownregistry.com/api/v1/blob/130c89f3b66c9a3e2da38aaa25534170fdf6ef877c0f539fc1eabf50b522b2cd

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from kewang0622/mri-research-skill

deep-learning-recon SKILL.md skill
kewang0622/mri-research-skill · skills/deep-learning-recon/SKILL.md · Read before training, fine-tuning, applying or evaluating a neural network for MRI reconstruction: unrolled and…
v0.14.0 · audit A · 31 stars
diffusion-mri SKILL.md skill
kewang0622/mri-research-skill · skills/diffusion-mri/SKILL.md · Read before fitting, converting or reporting diffusion-weighted MRI: ADC, DTI/DKI, IVIM, NODDI, compartment or spectrum…
v0.14.0 · audit A · 31 stars
mri-reconstruction SKILL.md skill
kewang0622/mri-research-skill · skills/mri-reconstruction/SKILL.md · Read before turning MR data into images or parameter maps: raw k-space (Cartesian, radial, spiral, EPI; twix, ISMRMRD…
v0.14.0 · audit A · 31 stars
mri-research-workflow SKILL.md skill
kewang0622/mri-research-skill · skills/mri-research-workflow/SKILL.md · Read before designing, analysing, writing up or reviewing an MRI study: results sections with a claim ledger, referee…
v0.14.0 · audit A · 31 stars
mri-research SKILL.md skill
kewang0622/mri-research-skill · skills/mri-research/SKILL.md · Start here when an MRI task matches no specialist skill, spans several areas, or involves image analysis or…
v0.14.0 · audit A · 31 stars
pulse-sequence-design SKILL.md skill
kewang0622/mri-research-skill · skills/pulse-sequence-design/SKILL.md · Read before designing, exporting or simulating an MRI acquisition: pulse sequences, RF and gradient waveforms, k-space…
v0.14.0 · audit A · 31 stars

Every file in kewang0622/mri-research-skill

Browse by kind, by grade A, or by owner.