[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETWQYBHDVCR810QPRMZ00F":3,"skill-same:01M7ETWQYBHDVCR810QPRMZ00F":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7ETWQYBHDVCR810QPRMZ00F","mri-preprocessing",null,"Structural and functional MRI preprocessing — bias correction, skull-stripping, registration, and QC with fMRIPrep-style pipelines.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mri-preprocessing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mri-preprocessing\ndescription: Structural and functional MRI preprocessing — bias correction, skull-stripping, registration, and QC with fMRIPrep-style pipelines.\ncategory: scientific\n---\n\n## Overview\n\nmri-preprocessing covers the unglamorous but decisive early steps of MRI analysis: converting\nDICOMs, correcting intensity inhomogeneities, skull-stripping, tissue segmentation, and registering\nbrains to templates — plus the QC discipline that catches the misregistrations and artifacts that\nwould otherwise become \"results.\"\n\nGood preprocessing is invisible; bad preprocessing is the paper. This skill focuses on structural\n(T1\u002FT2) and the preprocessing half of functional pipelines, with fMRIPrep as the recommended\nreference implementation.\n\n## When to use\n\n- Setting up a new MRI study: sequence choices that affect preprocessing (fieldmaps, multiband,\n  resolution).\n- DICOM to BIDS conversion and dataset organization.\n- Structural preprocessing: bias field correction, skull-stripping, segmentation, surface\n  reconstruction.\n- Functional preprocessing: motion correction, susceptibility distortion correction, coregistration,\n  normalization.\n- QC: visual checks, automated reports, exclusion criteria.\n- Troubleshooting: failed skull-strips, bad normalizations, ghosting, dropout.\n\n## Core concepts\n\n- **BIDS first.** Organize data in Brain Imaging Data Structure before anything else\n  (`sub-01\u002Fses-01\u002Fanat\u002Fsub-01_T1w.nii.gz` + JSON sidecars). Every major tool reads BIDS; ad-hoc\n  folder layouts break reproducibility and collaboration.\n- **Bias field correction.** Scanner inhomogeneities create smooth intensity gradients (N4ITK).\n  Correct before segmentation — tissue classifiers assume uniform intensities per tissue class.\n- **Skull-stripping.** Removing non-brain tissue (antsBrainExtraction, HD-BET, SynthStrip).\n  Failures are common with lesions, atrophy, or unusual anatomy — always inspect; a bad brain\n  mask poisons everything downstream.\n- **Segmentation.** GM\u002FWM\u002FCSF probability maps (FAST, Atropos) feed normalization, nuisance\n  regression (CompCor), and volumetry. Partial-volume effects at tissue boundaries are\n  unavoidable at typical resolutions — interpret thin cortical findings cautiously.\n- **Susceptibility distortion correction.** EPI images warp where the field is inhomogeneous\n  (orbitofrontal cortex, temporal poles). A fieldmap or reverse-phase-encoding acquisition\n  (TOPUP) unwarpes them; without it, \"activations\" can be mislocalized by centimeters.\n- **Coregistration and normalization.** Functional→structural (boundary-based registration is\n  the gold standard), structural→template (MNI152 via ANTs SyN). Check every subject visually —\n  normalization failures are silent and common in lesioned or pediatric brains.\n- **Motion.** Six-parameter rigid-body realignment; framewise displacement quantifies it.\n  Scrubbing\u002Fcensoring high-motion volumes is standard, but motion correlates with group\n  (patients move more) — censoring can bias group comparisons, so report motion by group.\n- **fMRIPrep as default.** It implements the community-consensus pipeline with per-subject HTML\n  reports. Use it unless you have a specific reason not to, and cite its boilerplate methods text.\n\n## Practical workflow\n\n1. **Convert and validate.** `dcm2niix` → BIDS; run the BIDS validator. Fix naming now — renaming\n   mid-project breaks provenance.\n2. **Collect fieldmaps.** Acquire blip-up\u002Fblip-down EPI or a fieldmap sequence; preprocessing\n   without distortion correction is a known-weakness choice, documented as such.\n3. **Run fMRIPrep.** One command per dataset with consistent template and output spaces. Keep the\n   working directory for debugging.\n4. **QC every subject.** Read the HTML reports: brain mask outlines, coregistration edges,\n   normalization warps, carpet plots, FD traces. Reject or flag failures with written criteria.\n5. **Derivatives.** Use the preprocessed outputs + confound files (motion, CompCor, FD) as inputs\n   to GLM, connectivity, or MVPA — never re-derive preprocessing inside the analysis script.\n6. **Document.** Pipeline name + version, template, and exclusion counts go in the methods; share\n   the boilerplate text fMRIPrep generates.\n\nExample command sketch:\n```bash\ndcm2niix -b y -z y -o bids\u002F dicoms\u002F\nfmriprep bids\u002F derivatives\u002F participant --fs-license-file license.txt \\\n  --output-spaces MNI152NLin2009cAsym:res-2 --use-syn-sdc warn\n```\n\n## Common pitfalls\n\n- Skipping distortion correction and mislocalizing frontal\u002Ftemporal results.\n- Trusting automated brain masks without visual inspection.\n- Normalizing lesioned brains to a healthy template without cost-function masking.\n- Motion scrubbing that differentially removes patient data.\n- Mixing template spaces across studies (MNI152 variants differ by millimeters — enough to matter).\n- Re-running preprocessing with tweaked parameters until results look \"better\" (preprocessing\n  degrees of freedom are still degrees of freedom — preregister the pipeline).\n","## Overview\n\nmri-preprocessing covers the unglamorous but decisive early steps of MRI analysis: converting\nDICOMs, correcting intensity inhomogeneities, skull-stripping, tissue segmentation, and registering\nbrains to templates — plus the QC discipline that catches the misregistrations and artifacts that\nwould otherwise become \"results.\"\n\nGood preprocessing is invisible; bad preprocessing is the paper. This skill focuses on structural\n(T1\u002FT2) and the preprocessing half of functional pipelines, with fMRIPrep as the recommended\nreference implementation.\n\n## When to use\n\n- Setting up a new MRI study: sequence choices that affect preprocessing (fieldmaps, multiband,\n  resolution).\n- DICOM to BIDS conversion and dataset organization.\n- Structural preprocessing: bias field correction, skull-stripping, segmentation, surface\n  reconstruction.\n- Functional preprocessing: motion correction, susceptibility distortion correction, coregistration,\n  normalization.\n- QC: visual checks, automated reports, exclusion criteria.\n- Troubleshooting: failed skull-strips, bad normalizations, ghosting, dropout.\n\n## Core concepts\n\n- **BIDS first.** Organize data in Brain Imaging Data Structure before anything else\n  (`sub-01\u002Fses-01\u002Fanat\u002Fsub-01_T1w.nii.gz` + JSON sidecars). Every major tool reads BIDS; ad-hoc\n  folder layouts break reproducibility and collaboration.\n- **Bias field correction.** Scanner inhomogeneities create smooth intensity gradients (N4ITK).\n  Correct before segmentation — tissue classifiers assume uniform intensities per tissue class.\n- **Skull-stripping.** Removing non-brain tissue (antsBrainExtraction, HD-BET, SynthStrip).\n  Failures are common with lesions, atrophy, or unusual anatomy — always inspect; a bad brain\n  mask poisons everything downstream.\n- **Segmentation.** GM\u002FWM\u002FCSF probability maps (FAST, Atropos) feed normalization, nuisance\n  regression (CompCor), and volumetry. Partial-volume effects at tissue boundaries are\n  unavoidable at typical resolutions — interpret thin cortical findings cautiously.\n- **Susceptibility distortion correction.** EPI images warp where the field is inhomogeneous\n  (orbitofrontal cortex, temporal poles). A fieldmap or reverse-phase-encoding acquisition\n  (TOPUP) unwarpes them; without it, \"activations\" can be mislocalized by centimeters.\n- **Coregistration and normalization.** Functional→structural (boundary-based registration is\n  the gold standard), structural→template (MNI152 via ANTs SyN). Check every subject visually —\n  normalization failures are silent and common in lesioned or pediatric brains.\n- **Motion.** Six-parameter rigid-body realignment; framewise displacement quantifies it.\n  Scrubbing\u002Fcensoring high-motion volumes is standard, but motion correlates with group\n  (patients move more) — censoring can bias group comparisons, so report motion by group.\n- **fMRIPrep as default.** It implements the community-consensus pipeline with per-subject HTML\n  reports. Use it unless you have a specific reason not to, and cite its boilerplate methods text.\n\n## Practical workflow\n\n1. **Convert and validate.** `dcm2niix` → BIDS; run the BIDS validator. Fix naming now — renaming\n   mid-project breaks provenance.\n2. **Collect fieldmaps.** Acquire blip-up\u002Fblip-down EPI or a fieldmap sequence; preprocessing\n   without distortion correction is a known-weakness choice, documented as such.\n3. **Run fMRIPrep.** One command per dataset with consistent template and output spaces. Keep the\n   working directory for debugging.\n4. **QC every subject.** Read the HTML reports: brain mask outlines, coregistration edges,\n   normalization warps, carpet plots, FD traces. Reject or flag failures with written criteria.\n5. **Derivatives.** Use the preprocessed outputs + confound files (motion, CompCor, FD) as inputs\n   to GLM, connectivity, or MVPA — never re-derive preprocessing inside the analysis script.\n6. **Document.** Pipeline name + version, template, and exclusion counts go in the methods; share\n   the boilerplate text fMRIPrep generates.\n\nExample command sketch:\n```bash\ndcm2niix -b y -z y -o bids\u002F dicoms\u002F\nfmriprep bids\u002F derivatives\u002F participant --fs-license-file license.txt \\\n  --output-spaces MNI152NLin2009cAsym:res-2 --use-syn-sdc warn\n```\n\n## Common pitfalls\n\n- Skipping distortion correction and mislocalizing frontal\u002Ftemporal results.\n- Trusting automated brain masks without visual inspection.\n- Normalizing lesioned brains to a healthy template without cost-function masking.\n- Motion scrubbing that differentially removes patient data.\n- Mixing template spaces across studies (MNI152 variants differ by millimeters — enough to matter).\n- Re-running preprocessing with tweaked parameters until results look \"better\" (preprocessing\n  degrees of freedom are still degrees of freedom — preregister the pipeline).\n",{"name":5,"category":24,"description":7},"scientific","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-mri-preprocessing",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill mri-preprocessing",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill mri-preprocessing",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill mri-preprocessing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mri-preprocessing\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]