agentleFS
maziyarpanahimaziyarpanahi/openmed/skills/ask-openmed/SKILL.md

ask-openmed

Skill5.4k starsChanged 4 months agoApache-2.0View on GitHub

Choose the first OpenMed workflow skill for an intake, privacy, extraction, exchange, or verification request using deterministic local routing. Use when a goal is broad, spans several clinical-data stages, or leaves the data-sensitivity status unclear; the privacy gate is selected before downstream work when raw clinical or personal content may be present.

Trending

Quiet since September.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 16 mentionsJul 2026: 8 mentionsAug 2026: 4 mentionsSep 2026: 4 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the maziyarpanahi/openmed repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about maziyarpanahi/openmed

The biggest 5 of 33 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 33

Talked about on GitHub and Bluesky (33 times).

On GitHub · 28

23 more on GitHub

On Bluesky · 5

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill as the first pass when a request does not name a focused OpenMed workflow.

    line 14
  2. Very specific:

    If no row matches, use building-with-openmed as the orientation fallback.

    line 46
  3. Distinctive:

    Use the privacy table both for an explicit privacy goal and for the privacy override.

    line 73
  4. Distinctive:

    Use verification routes for a stated release, safety, leakage, audit, risk, or conformance check.

    line 115
  5. Distinctive:

    Use the privacy override and the fixed handoff order for ambiguous requests:

    line 131
  6. Distinctive:

    “Is this dataset safe to share?”: If de-identification is not stated, start with deidentifying-clinical-text and then use …

    line 143
  7. Very specific:

    “Which OpenMed workflow fits?”: Use the orientation fallback building-with-openmed, then re-route once the goal and sensitivity status are …

    line 149

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ask OpenMed

Use this skill as the first pass when a request does not name a focused OpenMed workflow. It selects an existing skill identifier; it does not process input, download a model, call a service, or make a clinical decision. No mandatory network call is part of this route.

Deterministic routing contract

Apply these rules in order:

  1. Normalize only the stated goal: lowercase it, trim surrounding whitespace, and collapse repeated whitespace. Do not inspect or copy the data payload.
  2. Apply the intake boundary. If the goal matches an Intake row, select the first matching intake skill even when the goal also names a later stage. If sensitivity is unclear, its next handoff is the privacy gate: deidentifying-clinical-text, before extraction, exchange, or verification sees the parsed content.
  3. For a goal with no intake cue, apply the privacy override. If it asks to analyze, extract, exchange, share, upload, or verify clinical or personal content and is not explicitly marked safe, start at the privacy gate. The only safe markers are synthetic input, synthetic note, synthetic record, synthetic dataset, input is synthetic, data is synthetic, already de-identified, and already deidentified. A marker does not count when no, not, never, unknown, or uncertain occurs in the four normalized words before it. Treat every ambiguous safety statement as sensitive.
  4. Otherwise inspect the remaining tables in the fixed handoff order shown below. Treat each comma-separated cue as a case-insensitive substring of the normalized goal, and select the first matching row. Every cue cell is a comma-separated list of alternatives; conjunctions have no special meaning. Do not add synonyms or infer cues from the payload. This stage order and row order break every tie.
  5. If no row matches, use building-with-openmed as the orientation fallback.

Route output should contain only the selected category, skill identifier, matched rule index, and next handoff. Never echo the request, input values, exception text, or detected spans into a log or report.

For a multi-stage request, route one stage at a time in this fixed handoff order: intake → privacy → extraction → exchange → verification. A later stage does not bypass the privacy gate merely because it was named first.

Intake

Choose the first skill for turning an external document or record format into local, processable input.

Goal cuesFirst skillContinue with
laboratory table, lab tableextracting-lab-tablesprivacy, then verification
scan, fax, image, PDF, CSV, table, document OCRingesting-clinical-documentsprivacy, then extraction
C-CDA, CCD, CDA XMLparsing-ccda-documentsprivacy, then extraction
HL7 v2, ADT, ORU, MDM, OBX, pipe-delimited feedparsing-hl7v2-messagesprivacy, then extraction
DICOM header, DICOM-SR metadataextracting-dicom-metadataprivacy, then extraction
pull FHIR records, page FHIR records, FHIR serverfetching-fhir-resourcesprivacy, then extraction

Privacy

Use the privacy table both for an explicit privacy goal and for the privacy override. The first row is the default gate for unspecified sensitive input.

Goal cuesFirst skillContinue with
remove clinical identifiers, mask clinical identifiers, redact clinical text, anonymize clinical text, de-identify clinical textdeidentifying-clinical-textextraction or exchange
find identifiers, detect identifiers, PII entitiesextracting-pii-entitiesde-identification or review
privacy policy, privacy profileconfiguring-privacy-policiesde-identification
PHI in logs, PHI in errors, PHI in telemetry, no-PHI loggingenforcing-nophi-loggingverification
de-identify non-English text, multilingual de-identificationdeidentifying-multilingual-textextraction
stable pseudonyms, approved linkage pseudonymspseudonymizing-for-gdprverification

Extraction

Choose the focused skill after intake and privacy handling when the request is about finding or structuring clinical meaning.

Goal cuesFirst skillContinue with
diseases, drugs, anatomy, genes, clinical NERextracting-clinical-entitiesexchange or verification
custom entity labels, zero-shot extractionrunning-zeroshot-nerexchange or verification
housing, food, work, transport, SDOHextracting-sdohverification
lab values, units, reference ranges, abnormal flagsparsing-lab-valuesterminology or exchange
radiology findings, radiology measurements, radiology impressionstructuring-radiology-reportsexchange or verification
note sections, clinical sections, section segmentationsegmenting-clinical-sectionsextraction

Exchange

Choose an exchange skill only after the source is safe to handle. These skills may use a user-supplied endpoint or terminology service; this router itself performs no network call.

Goal cuesFirst skillContinue with
FHIR R4 resources, export to FHIRexporting-to-fhirbundle or conformance verification
FHIR transaction Bundle, FHIR batch Bundleassembling-fhir-bundlesconformance verification
FHIR Bulk Data export, bulk FHIRexporting-bulk-fhirprivacy, then extraction
SMART-on-FHIR app, SMART-on-FHIR launchscaffolding-smart-on-fhirconformance verification
terminology validation, terminology expansion, terminology translation, terminology serverquerying-terminology-serviceexchange or verification

Verification

Use verification routes for a stated release, safety, leakage, audit, risk, or conformance check. If the source is not explicitly safe, the privacy override still wins first.

Goal cuesFirst skillDecision or handoff
residual identifiers, de-identification leakageauditing-deid-leakageblock release on a finding
de-identification audit trail, no-PHI audit trailauditing-deidentification-runsretain offsets, hashes, and provenance
leakage gate, release leakageevaluating-with-leakage-gatesfail closed on leakage
re-identification risk, k-anonymity, quasi-identifiersreviewing-reidentification-riskreview residual risk
Safe Harborauditing-safe-harbor-checklistreview the no-PHI report
FHIR US Core, USCDI conformancevalidating-us-corecorrect the resource before exchange
HIPAA privacy checklist, HIPAA security checklistchecking-hipaa-complianceaddress gaps before release

Ambiguous goals and escalation examples

Use the privacy override and the fixed handoff order for ambiguous requests:

  • “Turn this clinical note into FHIR.” The sensitivity is unstated, so start at deidentifying-clinical-text, then hand off to extracting-clinical-entities and exporting-to-fhir.
  • “Extract medications from a synthetic note.” The input is explicitly synthetic, so route directly to extracting-clinical-entities.
  • “OCR this image and extract findings.” Route to ingesting-clinical-documents, then apply the privacy gate before extraction.
  • “Is this dataset safe to share?” If de-identification is not stated, start with deidentifying-clinical-text and then use auditing-deid-leakage.
  • “Verify this clinical dataset; it is not de-identified.” The negated safety statement does not count as a safe marker, so start at deidentifying-clinical-text.
  • “Which OpenMed workflow fits?” Use the orientation fallback building-with-openmed, then re-route once the goal and sensitivity status are explicit.

These are routing examples only. Keep all demonstrations synthetic or placeholder-based, and keep route diagnostics free of source content.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.