Назад към всички

medical-triage

// Classify medical messages (emails, iMessages) as critical, urgent, or routine based on medical urgency indicators.

$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namemedical-triage
descriptionClassify medical messages (emails, iMessages) as critical, urgent, or routine based on medical urgency indicators.
licenseMIT
metadata[object Object]

Medical Triage

Classify medical messages into priority categories based on urgency indicators, symptoms, and patient context.

Categories

IconCategoryDescription
🔴criticalLife-threatening symptoms, emergency keywords, severe pain
🟡urgentNeeds same-day attention, worsening symptoms, medication issues
🟢routineFollow-ups, general questions, appointment requests

How It Works

This skill analyzes message content for:

  • Emergency keywords: chest pain, difficulty breathing, severe bleeding, etc.
  • Symptom severity: pain scale, duration, progression
  • Patient context: chronic conditions, medications, recent procedures
  • Temporal urgency: "right now", "getting worse", "can't wait"

Input Format

The skill expects a JSON array of messages:

[
  {
    "id": "msg-123",
    "subject": "Chest pain",
    "from": "patient@example.com",
    "date": "2026-02-27T10:30:00Z",
    "body": "I've been having chest pain for the last hour..."
  }
]

Output Format

Returns a JSON array with triage results:

[
  {
    "id": "msg-123",
    "category": "critical",
    "reason": "Chest pain mentioned - potential cardiac emergency",
    "confidence": 0.95
  }
]

Usage

This skill is designed to be invoked programmatically via OpenClaw's skill execution API.

Medical Urgency Indicators

Critical (🔴)

  • Chest pain, pressure, or tightness
  • Difficulty breathing or shortness of breath
  • Severe bleeding
  • Loss of consciousness
  • Stroke symptoms (FAST: Face, Arms, Speech, Time)
  • Severe allergic reaction
  • Suicidal ideation

Urgent (🟡)

  • High fever (>103°F / 39.4°C)
  • Persistent vomiting or diarrhea
  • Medication side effects
  • Worsening chronic condition
  • Moderate pain (7-8/10)
  • Infection signs (redness, swelling, pus)
  • Mental health crisis

Routine (🟢)

  • Appointment requests
  • Prescription refills
  • General health questions
  • Follow-up on stable conditions
  • Lab result questions
  • Mild symptoms (<3 days)

Integration

This skill can be invoked via the OpenClaw CLI:

openclaw skill run medical-triage --input '[{"id":"msg-1","subject":"...","body":"..."}]' --json

Or programmatically:

const result = await execFileAsync('openclaw', [
  'skill', 'run', 'medical-triage',
  '--input', JSON.stringify(messages),
  '--json'
]);

Recommended Model: Claude Sonnet 4.5 (openclaw models set anthropic/claude-sonnet-4-5)