medical-triage
v1.0.0Classify medical messages (emails, iMessages) as critical, urgent, or routine based on medical urgency indicators.
Installation
Medical Triage
Classify medical messages into priority categories based on urgency indicators, symptoms, and patient context.
Categories
| Icon | Category | Description |
|---|---|---|
| 🔴 | critical |
Life-threatening symptoms, emergency keywords, severe pain |
| 🟡 | urgent |
Needs same-day attention, worsening symptoms, medication issues |
| 🟢 | routine |
Follow-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": "[email protected]",
"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)