Install
openclaw skills install tcm-clinic-enA full-featured management tool for solo Traditional Chinese Medicine (TCM) practitioners. Manages patient records, medical charts (Four Diagnostic Methods, pattern differentiation, prescriptions), herbal inventory (stock-in, stocktake, low-stock alerts), appointment scheduling, and financial bookkeeping with statistics. Data stored in Excel format. Use when: the user mentions patients, medical records, prescriptions, herbs, inventory, appointments, scheduling, billing, finances, clinic, consultation fees, or needs day-to-day clinic management. NOT for: academic TCM theory discussions, formula research, or herb pharmacology analysis.
openclaw skills install tcm-clinic-enThis Skill provides lightweight, full-process management for a solo TCM (Traditional Chinese Medicine) practitioner, covering five modules:
| Module | Trigger Words |
|---|---|
| 🏥 Patient Records | new patient, register patient, find patient, search patient |
| 📋 Medical Charts | write chart, four examinations, pattern differentiation, prescription, medical history |
| 🌿 Herbal Inventory | stock in, restock, check inventory, low stock alert, dispense |
| 📅 Appointments | appointment, schedule, today's appointments, booking |
| 💰 Finances & Billing | charge, bill, billing, statistics, monthly report, financial report |
All data is stored as structured Excel files in the clinic_data/ directory.
Route the user's intent to the corresponding module:
User Request
├── Patient-related? → Patient Management Module
│ ├── "new patient" / "register patient" → Create patient record
│ ├── "find patient" / "search patient" → Search by name/phone/ID
│ ├── "update patient" → Update patient record
│ └── "patient list" / "all patients" → Output patient summary
├── Medical chart-related? → Medical Records Module
│ ├── "write chart" / "new chart" → Add medical record (incl. four examinations, pattern differentiation, prescription)
│ ├── "view chart" / "medical history" → Query historical visit records by patient
│ └── "update chart" → Modify existing record
├── Herb-related? → Herbal Inventory Module
│ ├── "stock in" / "restock" / "purchase" → Add new herb or increase stock
│ ├── "check inventory" / "herb stock" → Query inventory status
│ ├── "low stock" / "out of stock" → Low-stock alert report
│ ├── "stock out" / "dispense" → Reduce stock
│ └── "stocktake" / "inventory check" → Generate inventory count sheet
├── Appointment-related? → Appointment Scheduling Module
│ ├── "appointment" / "booking" / "schedule" → Add appointment
│ ├── "today's appointments" / "today's patients" → View today's schedule
│ └── "change appointment" / "cancel appointment" → Modify appointment status
├── Finance-related? → Financial Module
│ ├── "charge" / "bill" / "fee" → Add financial record
│ ├── "check accounts" / "income" / "transactions" → Query financial records
│ ├── "statistics" / "report" / "monthly report" → Generate income statistics
│ └── "patient charges" / "outstanding balance" → Query patient charge summary
└── Combined request? → Multi-module Workflow
├── "consultation" → Appointment → Medical Chart → Billing (one-stop)
├── "clinic report" / "business analysis" → Comprehensive business data report
└── "today's summary" → Daily summary across all modules
On first use or when the user requests "initialize", execute:
python3 SKILL_DIR/scripts/clinic_manager.py init
This creates the clinic_data/ directory in the current working directory, containing 5 empty data tables (header rows only).
Use the bash tool to execute commands in the following format:
python3 SKILL_DIR/scripts/clinic_manager.py <module> <action> [options...]
SKILL_DIRmust be replaced with the actual installation path of the Skill. For example:~/.codebuddy/skills/tcm-clinicor~/.openclaw/workspace/skills/tcm-clinic
# Initialize
python3 SKILL_DIR/scripts/clinic_manager.py init
# Patient management
python3 SKILL_DIR/scripts/clinic_manager.py patients add --name "John Smith" --gender "Male" --phone "555-0100"
python3 SKILL_DIR/scripts/clinic_manager.py patients search --name "John"
python3 SKILL_DIR/scripts/clinic_manager.py patients list
# Medical records
python3 SKILL_DIR/scripts/clinic_manager.py records add --patient-id "P20260402001" --complaint "Headache for 3 days" --diagnosis "Wind-cold headache"
python3 SKILL_DIR/scripts/clinic_manager.py records search --patient-id "P20260402001"
# Herbal inventory
python3 SKILL_DIR/scripts/clinic_manager.py herbs add --name "Astragalus (Huangqi)" --quantity 500 --unit "g" --category "Qi tonic" --purchase-price 0.15 --min-stock 100
python3 SKILL_DIR/scripts/clinic_manager.py herbs update --herb-id "H001" --quantity -50
python3 SKILL_DIR/scripts/clinic_manager.py herbs alerts
python3 SKILL_DIR/scripts/clinic_manager.py herbs list
# Appointments
python3 SKILL_DIR/scripts/clinic_manager.py appointments add --patient-id "P20260402001" --time-slot "Morning"
python3 SKILL_DIR/scripts/clinic_manager.py appointments today
# Financial statistics
python3 SKILL_DIR/scripts/clinic_manager.py finance add --patient-id "P20260402001" --type "Consultation fee" --amount 50 --payment-method "WeChat Pay"
python3 SKILL_DIR/scripts/clinic_manager.py finance summary --period day
python3 SKILL_DIR/scripts/clinic_manager.py finance summary --period month --month 2026-04
clinic_data/ directory exists; if not, prompt user to initializelast_visit_date and visit_countWhen the user initiates a "consultation" request, execute in order:
P + YYYYMMDD + 3-digit sequence (e.g., P20260402001)R + YYYYMMDD + 3-digit sequenceA + YYYYMMDD + 3-digit sequenceF + YYYYMMDD + 3-digit sequenceH + 3-digit sequence (e.g., H001, no date prefix)Before performing data operations, read references/data-schema.md for complete field definitions (field name, type, required/optional, value ranges).
Main data tables:
clinic_data/patients.xlsx — Patient information (name, gender, age, contact, constitution type, allergies, etc.)clinic_data/medical_records.xlsx — Medical records (four examination findings, pattern differentiation, prescription, medical advice)clinic_data/herbs_inventory.xlsx — Herbal inventory (herb name, specification, stock quantity, price, expiry date, minimum stock)clinic_data/appointments.xlsx — Appointments (date, time slot, patient, status)clinic_data/finances.xlsx — Financial records (visit ID, fee type, amount, payment method)$120.50 or ¥120.50)YYYY-MM-DD format