SkillAgentSearch skills...

dicom-anonymizer

De-identify DICOM medical images by removing PHI tags for research sharing, with audit logging and study-linkage preservation support.

Install / Use

npx skills add aipoch/medical-research-skills --skill dicom-anonymizer

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

88/100

Category

Automation

Supported Platforms

Universal

Our assessment of dicom-anonymizer

dicom-anonymizer scores 88/100 on our quality scale, 1287th of 3,055 Automation skills we index (top 43%).

Its SKILL.md is 5.6 KB long, well organised into 20 sections with 3 code examples: a solid amount of guidance for an agent.

With 1,916 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
18/20
Description
15/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 15 days ago, so dicom-anonymizer is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-10-02. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

dicom-anonymizer compared with similar skills

All 4 of these similar skills score higher than dicom-anonymizer; compare them before choosing.

SkillScoreStarsUpdatedFormat
dicom-anonymizer (this skill)by aipoch881.9k15d agoSKILL.md
Agent-Reachby Panniantong10088.1k17d agoCLAUDE.md
headroomby headroomlabs-ai10074.3ktodayCLAUDE.md
rufloby ruvnet10073.7ktodayCLAUDE.md
Scraplingby D4Vinci10085.2k1d agoMCP Server

Frequently asked questions

How do I install dicom-anonymizer?
Run npx skills add aipoch/medical-research-skills --skill dicom-anonymizer. The install tabs above show the steps for each supported agent.
Which AI agents does dicom-anonymizer work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is dicom-anonymizer safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is dicom-anonymizer still maintained?
The repository was last updated 15 days ago, so dicom-anonymizer is actively maintained.

name: dicom-anonymizer description: De-identify DICOM medical images by removing PHI tags for research sharing, with audit logging and study-linkage preservation support. license: MIT author: AIPOCH

Source: https://github.com/aipoch/medical-research-skills

DICOM Anonymizer

Structured DICOM de-identification support for research preparation workflows.

Quick Check

python -m py_compile scripts/main.py

Audit-Ready Commands

python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/smoke_test.py

When to Use

  • Prepare imaging data for research sharing
  • Batch-anonymize DICOM folders while preserving study linkage
  • Review whether a workflow still needs manual PHI QA
  • Generate audit logs for compliance documentation

Workflow

  1. Confirm the input type, output target, batch needs, and whether study linkage must be preserved.
  2. Check whether the request is asking for script execution, audit-log planning, or a manual anonymization checklist.
  3. Use the packaged script for supported local workflows; if dependencies or files are missing, provide a bounded fallback rather than claiming successful anonymization.
  4. Return the anonymization plan or result with assumptions, preserved identifiers, and remaining manual QA requirements.
  5. If the request exceeds supported scope, stop and state the specific boundary.

Parameters

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | --input, -i | string | Yes | - | Input DICOM file or directory | | --output, -o | string | Yes | - | Output DICOM file or directory | | --batch, -b | flag | No | false | Enable directory processing | | --preserve-studies | flag | No | false | Preserve study linkage with pseudonyms | | --keep-tags | string | No | - | Comma-separated tags to preserve | | --remove-private | flag | No | true | Remove private tags | | --audit-log, -a | string | No | - | Optional JSON audit log path | | --overwrite | flag | No | false | Allow overwriting output files |

Usage

# Single file
python scripts/main.py --input scan.dcm --output anonymized.dcm

# Batch directory
python scripts/main.py --input ./dicoms/ --output ./anon/ --batch --preserve-studies

# With audit log
python scripts/main.py --input scan.dcm --output anon.dcm --audit-log audit.json

# Keep specific tags
python scripts/main.py --input scan.dcm --output anon.dcm --keep-tags "PatientAge,StudyDate"

Returns

  • Anonymized DICOM artifact or bounded execution plan
  • Summary of preserved and anonymized identifiers
  • Explicit reminder of remaining QA steps before external release

Scope Boundaries

  • Supports DICOM de-identification workflows, not legal certification
  • Does not remove burned-in image annotations from pixel data
  • Does not replace institutional privacy review or release approval
  • De-anonymization is not supported: SHA-256 hashing used for PHI values is a one-way operation by design. Original patient data cannot be recovered from anonymized files. If you need to trace back to original data, consult your institutional data governance office before anonymizing.

De-anonymization Requests

If asked to recover original patient data or reverse anonymization, respond:

"Anonymization performed by this tool is irreversible by design. PHI values are replaced using one-way SHA-256 hashing — the original data is not retained by this tool and cannot be recovered. If you need access to the original patient data, contact your institutional data governance or privacy office."

Stress-Case Rules

For complex requests, always include these blocks:

  1. Assumptions
  2. Hard Constraints
  3. Anonymization Path
  4. Residual PHI Risks
  5. Manual QA Before Release

Input Validation

This skill accepts requests involving DICOM anonymization, PHI-tag removal, research export preparation, or audit-log planning for medical images.

If the user's request does not involve DICOM de-identification — for example, asking to diagnose from images, convert image formats unrelated to PHI removal, or certify HIPAA compliance — do not proceed with the workflow. Instead respond:

"dicom-anonymizer is designed to support DICOM de-identification workflows for research preparation. Your request appears to be outside this scope. Please provide a DICOM input path and output target, or use a more appropriate tool for your task."

References

Output Requirements

Every final response must include:

  • Objective or requested deliverable
  • Inputs used and assumptions introduced
  • Workflow or decision path
  • Core result, recommendation, or artifact
  • Constraints, risks, caveats, or validation needs
  • Unresolved items and next-step checks

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
  • Do not fabricate files, citations, data, search results, or execution outcomes.

Response Template

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

Related Skills

View on GitHub
GitHub Stars1.9k
CategoryAutomation
Updated15d ago
Forks175

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions