๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ ClawHub

Medication Manager

by @liucunguang

Family medication management skill using file-based storage (no database required). Supports medication entry via photo/image (prescription, medicine box), t...

๐Ÿ’ก Examples

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) โ€” โš ๏ธ ๅ„ฟ็ซฅๅฟ…ๅกซ๏ผŒ็”จ่ฏๅ‰‚้‡ๆŒ‰ไฝ“้‡่ฎก็ฎ— - ่ฟ‡ๆ•ๅฒ โ€” โš ๏ธ ๆœ€้‡่ฆ็š„ๅฎ‰ๅ…จ้—ฎ้ข˜ โ€” "ๆœ‰ๆฒกๆœ‰ไป€ไนˆ่ฏ็‰ฉ่ฟ‡ๆ•๏ผŸ" 3. For children, additionally ask: - ็–ซ่‹—ๆŽฅ็งๆƒ…ๅ†ต - ่ฟ‘ๆœŸๆ˜ฏๅฆ็”Ÿ็—…/็”จ่ฏ 4. For adults/elderly, additionally ask: - ๆ…ขๆ€ง็—…๏ผˆ้ซ˜่ก€ๅŽ‹ใ€็ณ–ๅฐฟ็—…็ญ‰๏ผ‰ - ้•ฟๆœŸๆœ็”จ็š„่ฏ็‰ฉ 5. Create data/members/{name}.md for each member 6. 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 "โฐ ็”จ่ฏๆ้†’\n\n๐Ÿ’Š {่ฏๅ“ๅ}\nๅ‰‚้‡๏ผš{ๅ‰‚้‡}\n\n่ฏทๆŒ‰ๆ—ถๆœ่ฏ๏ผ"

Supported channels (via --target):

| Channel | Target Format | Example | |---------|--------------|---------| | Feishu | feishu:{open_id} | feishu:ou_xxxxx | | Telegram | telegram:{chat_id} | telegram:-1001234567 | | QQ Bot | qqbot:c2c:{openid} | qqbot:c2c:xxxxx | | Discord | discord:{channel_id} | discord:123456789 | | Signal | signal:{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)

    View on ClawHub
    TERMINAL
    clawhub install medication-manager

    ๐Ÿงช Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    ๐Ÿ” Can't find the right skill?

    Search 60,000+ AI agent skills โ€” free, no login needed.

    Search Skills โ†’