Ai analyzer

From lingxling/awesome-skills-cn · View interactive version

Ai analyzer is an AI agent skill from the GitHub repository lingxling/awesome-skills-cn. AI驱动的综合健康分析系统,整合多维度健康数据、识别异常模式、预测健康风险、提供个性化建议。支持智能问答和AI健康报告生成。

How to use this skill

Skill file

AI健康分析器

基于AI技术的综合健康分析系统,提供智能健康洞察、风险预测和个性化建议。

When to Use

核心功能

1. 智能健康分析

2. 健康风险预测

3. 个性化建议引擎

4. 自然语言交互

5. AI健康报告生成

使用说明

触发条件

当用户提到以下场景时,使用此技能:

通用询问:

风险预测:

智能问答:

报告生成:

执行步骤

步骤 1: 读取AI配置
const aiConfig = readFile('data/ai-config.json');
const aiHistory = readFile('data/ai-history.json');

检查AI功能是否启用,验证数据源配置。

步骤 2: 读取用户档案
const profile = readFile('data/profile.json');

获取基础信息:年龄、性别、身高、体重、BMI等。

步骤 3: 读取健康数据

根据配置的数据源读取相关数据:

// 基础健康指标
const indexData = readFile('data/index.json');

// 生活方式数据
const fitnessData = readFile('data-example/fitness-tracker.json');
const sleepData = readFile('data-example/sleep-tracker.json');
const nutritionData = readFile('data-example/nutrition-tracker.json');

// 心理健康数据
const mentalHealthData = readFile('data-example/mental-health-tracker.json');

// 医疗历史
const medications = exists('data/medications.json') ? readFile('data/medications.json') : null;
const allergies = exists('data/allergies.json') ? readFile('data/allergies.json') : null;
步骤 4: 数据整合和预处理

整合所有数据源,进行数据清洗、时间对齐和缺失值处理。

步骤 5: 多维度分析

相关性分析: 计算睡眠↔情绪、运动↔体重、营养↔生化指标等关联

趋势分析: 使用线性回归、移动平均等方法识别趋势方向

异常检测: 使用CUSUM、Z-score算法检测异常值和变化点

步骤 6: 风险预测

基于Framingham、ADA、ACC/AHA等标准进行风险预测:

步骤 7: 生成个性化建议

根据分析结果生成三级建议:

步骤 8: 生成分析报告

文本报告: 包含总体评估、风险预测、关键趋势、相关性发现、个性化建议

HTML报告: 调用 scripts/generate_ai_report.py 生成包含ECharts图表的交互式报告

步骤 9: 更新AI历史记录

记录分析结果到 data/ai-history.json

数据源

| 数据源 | 文件路径 | 数据内容 |

|--------|---------|---------|

| 用户档案 | data/profile.json | 年龄、性别、身高、体重、BMI |

| 医疗记录 | data/index.json | 生化指标、影像检查 |

| 运动追踪 | data-example/fitness-tracker.json | 运动类型、时长、强度、MET值 |

| 睡眠追踪 | data-example/sleep-tracker.json | 睡眠时长、质量、PSQI评分 |

| 营养追踪 | data-example/nutrition-tracker.json | 饮食记录、营养素摄入、RDA达成率 |

| 心理健康 | data-example/mental-health-tracker.json | PHQ-9、GAD-7评分 |

| 用药记录 | data/medications.json | 药物名称、剂量、用法、依从性 |

| 过敏史 | data/allergies.json | 过敏原、严重程度 |

算法说明

相关性分析

异常检测

风险预测

安全与合规

必须遵循

隐私保护

相关命令

技术实现

工具限制

此Skill仅使用以下工具:

性能优化

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.