ai-diabetes-coach

AI 糖尿病康复管理助手 — 血糖记录、风险分级、个体化饮食/运动建议、胰岛素参考计算。基于 ADA 2025 指南。安全增强设计。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ai-diabetes-coach" with this command: npx skills add chen-feng123/ai-diabetes-coach

AI 糖尿病康复管理助手 (AI Diabetes Coach)

基于 ADA 2025 指南的糖尿病康复管理工具。安全优先设计。

功能

  • 血糖记录与实时建议(危急值自动阻断,强制就医引导)
  • 个体化饮食建议(基于当前血糖和三餐类型)
  • 运动安全建议(依据血糖水平分档)
  • 胰岛素参考剂量计算(含低血糖风险动态修正)
  • 7天风险评估报告(低血糖/高血糖频率分析)
  • 用户个体化参数管理(目标血糖/校正因子/碳水比)

快速开始

# 1. 设置 API 密钥(必须)
export API_KEY=your_strong_secret_key

# 2. 安装依赖
pip install flask

# 3. 启动服务
python diabetes_coach.py

# 服务运行在 http://localhost:5000
# 所有请求需在 Header 添加 X-API-Key: your_strong_secret_key

本服务要求 API 鉴权,启动前必须先设置 API_KEY 环境变量。 本地测试可设置 ENABLE_AUTH=false 跳过鉴权。 数据存储在内存中,重启后丢失。

API 概览

路径方法说明
/api/healthGET健康检查
/api/profileGET/POST获取/更新用户参数
/api/recordPOST添加血糖记录
/api/advice/glucosePOST实时血糖建议
/api/insulin/calculatePOST胰岛素剂量计算
/api/risk/<user_id>GET风险报告
/api/summary/<user_id>GET最近记录与建议

安全特性

  1. 危急血糖值(<2.8 或 >20.0 mmol/L)拒绝生成常规建议,强制要求就医
  2. 所有胰岛素建议包含低血糖风险动态修正
  3. 输入白名单与严格类型校验
  4. 敏感操作记录审计日志
  5. 用户参数范围裁剪
  6. 所有响应附带医疗免责声明
  7. API 可选密钥鉴权(生产环境启用)

合规声明

本工具不提供医疗诊断,所有输出必须经医生审核后使用。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Data Classification

用于数据分类、数据分级、数据分类分级任务。用户要求对单一数据字段名、字段列表、数据库表 SQL/DDL 文件进行数据分类、数据分级或数据分类分级时使用;支持普通数据分类分级、GB/T 43697-2024 通用数据分类分级、金融数据分类分级、JR/T 0197-2020 金融数据安全级别,以及“通用数据标签 +...

Registry SourceRecently Updated
General

Flight Disruption Compensation Kit

Guides air passengers through documenting flight disruptions, checking compensation and duty-of-care eligibility under major regulatory frameworks, and prepa...

Registry SourceRecently Updated
General

Job Offer Evaluation Kit

Compare job offers with structured compensation, benefits, risk, career-fit, and life-fit frameworks. Provides comparison tools only; no financial, tax, lega...

Registry SourceRecently Updated
General

Medical Bill Review Kit

Organizes medical bills and EOBs into a reviewable inventory, provides an error-spotting checklist for common billing mistakes, and prepares structured commu...

Registry SourceRecently Updated