Pydicom (DICOM medical imaging)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Pydicom (DICOM medical imaging)
- perks
- [ "extract_metadata", "convert_image", "anonymize" ]
- skill
- pydicom
02 资源文件 28
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json3.1 KB
- 参考文档ledger.json307 B
- 许可证LICENSE.txt1.0 KB
- 参考文档perks.json693 B
- 参考文档perks/anonymize/manifesto.json482 B
- 参考文档perks/anonymize/metadata.json1.2 KB
- 脚本perks/anonymize/src/anonymize_dicom.py5.1 KB
- 脚本perks/anonymize/src/anonymize_dicom.sh1.1 KB
- 参考文档perks/anonymize/src/contracts.json489 B
- 参考文档perks/anonymize/test/case.json285 B
- 其他perks/anonymize/test/fixture/sample.dcm866 B
- 参考文档perks/convert_image/manifesto.json612 B
- 参考文档perks/convert_image/metadata.json1.2 KB
- 参考文档perks/convert_image/src/contracts.json618 B
- 脚本perks/convert_image/src/dicom_to_image.py6.0 KB
- 脚本perks/convert_image/src/dicom_to_image.sh1.4 KB
- 参考文档perks/convert_image/test/case.json255 B
- 其他perks/convert_image/test/fixture/sample.dcm866 B
- 参考文档perks/extract_metadata/manifesto.json413 B
- 参考文档perks/extract_metadata/metadata.json872 B
- 参考文档perks/extract_metadata/src/contracts.json408 B
- 脚本perks/extract_metadata/src/extract_metadata.py5.6 KB
- 脚本perks/extract_metadata/src/extract_metadata.sh1.1 KB
- 参考文档perks/extract_metadata/test/case.json329 B
- 其他perks/extract_metadata/test/fixture/sample.dcm866 B
03 SKILL.md 正文
pydicom — Pydicom (DICOM medical imaging)
Extract DICOM metadata, convert DICOM pixel data to a standard image, or anonymize a DICOM file by stripping PHI — each a read-only / local file producer.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its
artifacts under record_store. LOGS TO CHECK: that line + the named output file + the executor run-ledger.
All three porters degrade gracefully when pydicom (or numpy/Pillow for image conversion) is not importable — they leave a placeholder so the contract's output_exists still holds.
Perks
| perk | tool | nature |
|---|---|---|
extract_metadata |
extract_metadata |
read-only / safe — reads a .dcm and writes its metadata as text or json |
convert_image |
dicom_to_image |
read-only / safe — converts a .dcm's pixel data to PNG/JPEG/TIFF/BMP |
anonymize |
anonymize_dicom |
read-only on input — writes a NEW de-identified .dcm (removes/replaces PHI tags) |
The extract_metadata perk runs the vendored extract_metadata.py core over DICOM_IN, writing metadata.txt (or metadata.json when META_FORMAT=json) under record_store. The convert_image perk runs the vendored dicom_to_image.py core, normalising pixel data and writing the requested image format under record_store. The anonymize perk runs the vendored anonymize_dicom.py core, reading DICOM_IN and writing a fresh anonymized anonymized.dcm under record_store — it never mutates the input or any remote service, so all three are declared destructive: false.
How to use it
Pick a perk (extract_metadata, convert_image, or anonymize), copy ledger.json → task-ledger.json, fill its vars + record_store,
then validate → compose → compile → oversight → executor.
Localized from K-Dense-AI/scientific-agent-skills
pydicom— MIT (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.