Agent skill · Code Review & Quality

preprocess-debug

Debug preprocessing pipeline failures. Guides through reading checkpoint files, checking step artifacts, interpreting QC metrics, examining visualization PNGs, and identifying which step failed and why. Use when a preprocessing run produces unexpected results, crashes, or generates poor-quality outputs.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill preprocess-debug --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/analysis/preprocess-debug/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Preprocess Debug — Preprocessing Failure Diagnosis ## When to Use - "Why did preprocessing fail for patient X?" - "The registration output looks wrong" - "Skull stripping removed too much / too little" - "Intensity normalization produced weird values" - "Which step is causing the problem?" - Any preprocessing quality issue or crash investigation ## Diagnostic Workflow ### Step 1: Identify the failing step Check the visualization directory for which step produced the last PNG: ```bash ls -la {viz_root}/MenGrowth-XXXX/MenGrowth-XXXX-YYY/ # step1_data_harmonization_t1c.png ← exists # step2_bias_field_correction_t1c.png ← exists # step3_resampling_t1c.png ← MISSING → Step 3 failed ``` Check logs for error messages (look for `ERROR` or `RuntimeError`). ### Step 2: Check step artifacts Each step may produce artifacts in `{artifacts}/MenGrowth-XXXX/MenGrowth-XXXX-YYY/`: | Artifact | Produced by | What to check | |----------|-------------|---------------| | `t1c_bias_field.nii.gz` | Bias field correction | Should be smooth, low-frequency field | | `t1c_brain_mask.nii.gz` | Skull stripping | Load in viewer — verify mask covers brain + tumor | | `*.h5`, `*.mat` transforms | Registration |

What's inside
Steps it walks through
  1. When to Use
  2. Diagnostic Workflow
  3. Step 1: Identify the failing step
  4. Step 2: Check step artifacts
  5. Step 3: Examine visualization PNGs
  6. Step 4: Check specific failure patterns
  7. Step 5: Check the temp-file mechanism
  8. Key Debugging Code Locations
  9. Quick Config Fixes
Ships with 1 file
  • metadata.json
Commands it runs
ls -la {viz_root}/MenGrowth-XXXX/MenGrowth-XXXX-YYY/
step1_data_harmonization_t1c.png  ← exists
step2_bias_field_correction_t1c.png  ← exists
step3_resampling_t1c.png  ← MISSING → Step 3 failed
find {output_root} -name "*.tmp*"
More from claude-skill-registry
All skills →
About this skill
What does the preprocess-debug skill do?

Debug preprocessing pipeline failures. Guides through reading checkpoint files, checking step artifacts, interpreting QC metrics, examining visualization PNGs, and identifying which step failed and why. Use when a preprocessing run produces unexpected results, crashes, or generates poor-quality outputs.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill preprocess-debug --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going