Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计通过

medication-manager药物经理

Agent Skill

medication-manager 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,982

周安装

123

GitHub Stars

公开资料未说明

下载量

974
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:medication-manager(药物经理)
来源仓库:https://github.com/liucunguang/medication-manager
安装命令:
openclaw skills install medication-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install medication-manager

简介

medication-manager 提供基于文件的家庭药物管理系统,无需数据库即可管理处方与药箱。

  • 支持通过照片识别处方、设置服药提醒及记录用药历史,适合个人健康管理。
  • 可导入图像或手动录入信息,自动生成用药计划和剩余量预警。
  • 安装前请确认本地存储路径权限,云功能需额外授权,建议备份数据以防丢失。
  • 功能依赖图像识别准确率,复杂处方建议人工复核,避免误读导致用药风险。

SKILL.md

name
medication-manager
description
>

Medication Manager

Family medication management with file-based storage. No database required — works anywhere.

Overview

FeatureHow
Medication catalogMarkdown files in data/medications/
Member profilesMarkdown files in data/members/
Batch trackingEmbedded in medication files
Expiry alertsscripts/check_expiry.py or manual scan
RemindersYour platform's cron/reminder system (configurable)
NotificationsOpenClaw cron, webhooks, email, local OS — you choose
Media archivedata/media/ with date-based folders

Quick Start

Step 1: Set Up Family Member Profiles

This is always the first step. Before recording any medications, create profiles for each family member.

See references/member-profile.md for the complete template, role-specific fields, and data collection guide.

Setup flow (follow this every time):

  1. Ask about family members: "家里有几位成员?分别是谁?(大人/小孩/老人)"
  2. For each member, collect minimum info:

- 姓名 — who is this person? - 角色 — 成人 / 儿童 / 老人 - 出生日期 — for age calculation (儿童: calculate exact months) - 体重 (kg) — ⚠️ 儿童必填,用药剂量按体重计算 - 过敏史 — ⚠️ 最重要的安全问题 — "有没有什么药物过敏?"

  1. For children, additionally ask:

- 疫苗接种情况 - 近期是否生病/用药

  1. For adults/elderly, additionally ask:

- 慢性病(高血压、糖尿病等) - 长期服用的药物

  1. Create data/members/{name}.md for each member
  2. Confirm the profiles with the user before proceeding

Minimal profile (user can fill in details later):

# {姓名}

| Field | Value |
|-------|-------|
| Name | {姓名} |
| Role | 成人 / 儿童 / 老人 |
| Birth Date | YYYY-MM-DD |
| Weight | {kg} |
| Allergies | {list or "无已知过敏"} |

Step 2: Configure Notifications

Before setting reminders, configure how the user wants to be notified.

This skill does not hardcode any notification channel. The user chooses their own method.

Option A: OpenClaw Built-in Cron (Recommended for OpenClaw users)

If running on OpenClaw, the cron system supports all configured channels automatically.

# Example: daily 8am reminder via current channel
openclaw cron add \
  --name "med-{member}-{drug}" \
  --schedule "0 8 * * *" \
  --agent-id your-agent \
  --message "⏰ 用药提醒\
\
💊 {药品名}\
剂量:{剂量}\
\
请按时服药!"

Supported channels (via --target):

ChannelTarget FormatExample
Feishufeishu:{open_id}feishu:ou_xxxxx
Telegramtelegram:{chat_id}telegram:-1001234567
QQ Botqqbot:c2c:{openid}qqbot:c2c:xxxxx
Discorddiscord:{channel_id}discord:123456789
Signalsignal:{phone}signal:+86138xxxx
Tip: Omit --target to send to the current conversation (auto-detected).

Option B: Webhook (DingTalk, WeChat Work, Slack, etc.)

If the user has a webhook URL, send a POST request with the reminder message. See references/notifications.md for full templates.

See references/notifications.md for:

  • All notification options with full examples
  • Notification content templates
  • Agent implementation guide
  • Troubleshooting

What the agent should do:

  1. Detect the user's current channel from conversation context
  2. Ask: "你希望通过什么方式接收用药提醒?" and offer options
  3. If OpenClaw → use cron with auto-detected target
  4. If webhook → ask for the webhook URL
  5. Store the notification config in the member profile
  6. Always test — send one test notification to confirm it works

Step 3: Set Up Data Directory

Create the storage structure:

data/
├── medications/        # One .md per medication
├── members/            # One .md per family member (created in Step 1)
├── prescriptions/      # Prescription records (optional)
├── logs/               # Medication intake logs (YYYY-MM-DD.md)
├── config/             # Optional: notification config
│   └── notifications.yaml
└── media/              # Photos of prescriptions/boxes
    └── YYYY-MM-DD/

Step 4: Add Medications

When a user describes or sends a photo of a medication:

  1. Analyze with vision model (if photo)
  2. Extract: generic name, brand name, spec, manufacturer, batch no, expiry, dosage
  3. Confirm details with user
  4. Create a markdown file: data/medications/{generic_name}.md
  5. Set up reminders if requested (using configured notification method)

Medication File Template

# {Generic Name} ({Brand Name})

## Basic Info
| Field | Value |
|-------|-------|
| Generic Name | {name} |
| Brand Name | {name} |
| Specification | {spec} |
| Manufacturer | {manufacturer} |
| Approval No | {批准文号} |
| Drug Type | 处方药 / OTC / 外用药 |
| Category | 抗生素 / 感冒药 / 退烧药 / etc. |
| Indications | {适应症} |
| Contraindications | {禁忌} |
| Storage | {储存条件} |

## Batches
| Batch No | Mfg Date | Expiry | Qty | Unit | Location | Status |
|----------|----------|--------|-----|------|----------|--------|
| {batch} | {date} | {date} | {n} | 盒/支/瓶 | {location} | active |

## Usage Notes
- Adult dose: {dosage}
- Child dose: {dosage by weight}
- Food: before/after meals
- Special notes: {warnings}

## History
| Date | Member | Action | Notes |
|------|--------|--------|-------|
| YYYY-MM-DD | {name} | added/prescribed | {source} |

Notification Settings

Core Workflows

Photo Entry (prescription / medicine box)

User sends image → Analyze with vision model → Extract medication info
→ Confirm with user → Create/update medication .md file → Set reminders if requested

Steps:

  1. Use your platform's image analysis tool to read the photo
  2. Extract: generic name, brand name, spec, manufacturer, batch no, expiry, dosage
  3. Confirm details with user (especially for prescriptions)
  4. Save photo to data/media/YYYY-MM-DD/
  5. Create or update the medication markdown file
  6. Ask if reminders are needed → use configured notification method

Text Entry

User describes medication → Parse → Confirm → Create .md file

Use structured extraction from user's text description. Always confirm before creating.

Set Reminder

Get member + medication + schedule → Check notification config
→ Create platform-specific reminder → Record in member file → Test it
  1. Read member file for notification settings
  2. If no notification config exists → ask the user to configure first (see Step 2)
  3. Query medication file for drug info
  4. Determine reminder schedule based on dosage instructions
  5. Create reminder using the configured method:

- OpenClaw cron: openclaw cron add --name "..." --schedule "..." --message "..." - Webhook: POST JSON to the webhook URL

  1. Test — send one notification immediately to confirm delivery
  2. Record the reminder details in the member's notification settings
  3. Confirm with the user: "提醒已设置,{时间}会收到通知"

Expiry Check

python3 /path/to/medication-manager/scripts/check_expiry.py /path/to/data/medications/

Or manually scan medication files for expiry dates. Alert levels:

LevelThresholdAction
🔴 ExpiredPast dateNotify immediately, mark as expired
⚠️ 7 daysWithin 7 daysDaily reminder to use or dispose
🟡 30 daysWithin 30 daysWeekly reminder
🔶 90 daysWithin 90 daysMonthly review

Query Inventory

Scan all files in data/medications/ for:

  • Active batches with quantity > 0
  • Sort by expiry date (soonest first)
  • Filter by category if requested

Log Medication Intake

When a family member takes a medication:

  1. Append entry to data/logs/YYYY-MM-DD.md:
   | Time | Member | Medication | Dose | Status | Notes |
   |------|--------|-----------|------|--------|-------|
   | 08:15 | 张三 | 氨氯地平 | 5mg | ✅ taken | 饭后 |
  1. Update batch quantity in the medication file (decrement)
  2. Flag if dose was missed or skipped

Reference Data

ReferencePathPurpose
Member profilesreferences/member-profile.mdTemplate & collection guide
Notificationsreferences/notifications.mdAll notification options & templates
Storage layoutreferences/storage-layout.mdFile organization & naming
Drug interactionsreferences/drug-interactions.mdCheck when multiple drugs prescribed
Pediatric dosagereferences/pediatric-dosage.mdCalculate child doses by weight
Setup guidereferences/setup.mdInstallation & first use

Important Rules

  • Always confirm medication details before saving
  • Configure notifications first — reminders are useless if they can't reach the user
  • Test notifications — always send a test notification after setup
  • Children dosing: always verify weight and age, ask about allergies
  • Expiry alerts: proactively notify when drugs expire or near expiry
  • Antibiotics: flag prescription antibiotics, remind about completing full course
  • Drug interactions: check reference when multiple drugs prescribed together
  • Special drugs: flag controlled substances (精二药品, etc.)
  • Privacy: do not share personal health information

Platform Adapters

This skill is platform-agnostic. The notification layer adapts to whatever the user has:

PlatformMethodSetup
OpenClaw (any channel)Built-in cronAuto-detected, no config needed
Feishumessage tool or cronSet --target "feishu:{open_id}"
TelegramBot API or cronSet --target "telegram:{chat_id}"
QQ Botqqbot_remind / qqbot_cronSet target via cron
WebhookPOST JSONProvide webhook URL

Full details: references/notifications.md

Data Migration

If you have existing medication data (e.g., from a spreadsheet or another system):

  1. Convert each medication to the markdown template above
  2. Place files in data/medications/
  3. Run the expiry check script to validate dates

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.78%
按下载量换算699

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills