Search & Analysis v1.0.0

medical-priority-scorer

Score medical messages using urgency, sentiment, and patient context to produce priority rankings (P1/P2/P3).

binubmuse 更新于 2026-02-27 1 浏览
下载 SKILL

技能说明

Score medical messages using urgency, sentiment, and patient context to produce priority rankings (P1/P2/P3).

使用场景

Produce deterministic priority scores for medical messages without mutating any state.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/medical-priority-scorer
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 19 kB
SKILL.md text/markdown
---
name: medical-priority-scorer
description: Score medical messages using urgency, sentiment, and patient context to produce priority rankings (P1/P2/P3).
license: MIT
metadata:
  author: "NAPSTER AI"
  maintainer: "NAPSTER AI"
  openclaw:
    requires:
      bins: []
---

# Medical Priority Scorer

Produce deterministic priority scores for medical messages without mutating any state.

## Quick Triggers

- Rank messages by medical urgency for callback priority
- Classify messages into P1/P2/P3 queue
- Score follow-up priority from triaged messages

## Recommended Chain

`medical-triage -> medical-priority-scorer -> medical-entity-extractor`

## Execute Workflow

1. Accept input from medical-triage containing triaged messages
2. Score each message with:
   - `urgency_score` in range `[0, 1]` (based on triage category)
   - `sentiment_score` in range `[-1, 1]` (anxiety, distress, frustration)
   - `recency_score` in range `[0, 1]` (how recent the message is)
   - `patient_context_score` in range `[0, 1]` (chronic conditions, known patient)
3. Compute `priority_score` on a 0-100 scale:
   - `priority_score = 100 * (0.50*urgency_score + 0.25*sentiment_score_risk + 0.15*recency_score + 0.10*patient_context_score)`
   - `sentiment_score_risk = max(0, -sentiment_score)` (negative sentiment = higher risk)
4. Assign buckets:
   - `P1` for `priority_score >= 75` (immediate attention)
   - `P2` for `priority_score >= 50 and < 75` (same-day)
   - `P3` for `< 50` (routine)
5. Produce plain-language `evidence` tokens that explain the score

## Input Format

```json
[
  {
    "id": "msg-123",
    "category": "urgent",
    "subject": "Medication side effects",
    "from": "patient@example.com",
    "date": "2026-02-27T10:30:00Z",
    "body": "I've been feeling dizzy since starting the new medication..."
  }
]
```

## Output Format

```json
[
  {
    "id": "msg-123",
    "priority_score": 78,
    "priority_bucket": "P1",
    "urgency_score": 0.8,
    "sentiment_score": -0.4,
    "recency_score": 1.0,
    "patient_context_score": 0.6,
    "evidence": "Urgent triage category + negative sentiment (concern) + very recent message + known patient"
  }
]
```

## Enforce Boundaries

- Never write to databases or files
- Never send messages or trigger outbound channels
- Never create reminders or execute actions
- Never bypass routing or approvals

## Handle Errors

1. Reject schema-invalid inputs
2. Return field-level reasons when scoring cannot be computed
3. Fail closed if required scoring features are missing

## Integration

This skill can be invoked via the OpenClaw CLI:

```bash
openclaw skill run medical-priority-scorer --input '[{"id":"msg-1","category":"urgent",...}]' --json
```

Or programmatically:

```typescript
const result = await execFileAsync('openclaw', [
  'skill', 'run', 'medical-priority-scorer',
  '--input', JSON.stringify(triagedMessages),
  '--json'
]);
```

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

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。