用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/huifer/wellally-health-skills --skill goal命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | goal |
| description | Health goal and habit management with SMART goal setting, progress tracking, and visualization reports |
| argument-hint | <操作类型,如:set weight-loss 5公斤 2025-06-30/progress 3.5公斤/habit record 早上拉伸/review/report> |
| allowed-tools | Read, Write |
| schema | goal/schema.json |
Set health goals, track progress, build habits, and generate visualization reports.
用户输入 -> 识别操作类型 -> 解析信息 -> 检查完整性 -> SMART验证 -> 生成JSON -> 保存数据
| Input Keywords | Operation Type |
|---|---|
| set | Set goal |
| progress | Update progress |
| habit | Record habit |
| review | View goals and progress |
| report | Generate visualization report |
| achieve | View achievement system |
| complete | Complete goal |
| adjust | Adjust goal |
| Type | Keywords |
|---|---|
| weight-loss | Lose weight, weight loss goal |
| weight-gain | Gain weight, muscle gain goal |
| exercise | Exercise, workout, fitness |
| diet | Diet, nutrition, meal |
| sleep | Sleep, rest |
| health-metric | Blood pressure, blood sugar, health metric |
Goal Validation:
✓ Specific: Clear goal content
✓ Measurable: Has quantifiable metrics
✓ Achievable: Realistic and feasible
✓ Relevant: Health-related
✓ Time-bound: Has deadline
If validation fails, user will be prompted to adjust goal
{
"goal_id": "goal_20250101_001",
"type": "weight-loss",
"title": "减重5公斤",
"description": "在6个月内减重5公斤",
"start_date": "2025-01-01",
"target_date": "2025-06-30",
"current_value": 0,
"target_value": 5,
"unit": "公斤",
"status": "in_progress",
"progress_percentage": 0,
"smart_verified": true,
"action_plan": [
"每周运动4次",
"减少500卡路里摄入",
"每天吃5份蔬果"
{
"habit_id": "habit_20250101_001",
"name": "morning-stretch",
"title": "早上拉伸",
"description": "每天早上7点拉伸10分钟",
"frequency": "daily",
"trigger": "起床后",
"streak": 7,
"longest_streak": 21,
"total_completions": 45,
"created_at": "2025-01-01T00:00:00.000Z"
}
完整 Schema 定义参见 schema.json。
data/goal-tracker.json| Achievement | Unlock Condition |
|---|---|
| First Goal | Complete first health goal |
| 7-Day Streak | Complete any habit for 7 consecutive days |
| 21-Day Streak | Complete any habit for 21 consecutive days |
| 30-Day Streak | Complete any habit for 30 consecutive days |
| Halfway | Complete 50% of any goal |
| Goal Complete | Complete a health goal |
| Early Finish | Complete goal ahead of schedule |
| Exceed Goal | Exceed goal target |
// Predict completion date based on current progress
function predictCompletion(goal) {
const daysPassed = getDaysBetween(goal.start_date, new Date());
const daysRemaining = getDaysBetween(new Date(), goal.target_date);
const progressPerDay = goal.current_value / daysPassed;
const predictedDays = (goal.target_value - goal.current_value) / progressPerDay;
const predictedDate = addDays(new Date(), predictedDays);
return {
predicted_date: predictedDate,
on_track: predictedDate <= goal.target_date,
days_ahead: getDaysBetween(predictedDate, goal.target_date)
};
}
1. 识别操作类型
2. 解析输入参数,提取所有可用信息
3. 检查必填字段,如有缺失则询问用户
4. 对目标进行SMART原则验证
5. 生成符合 schema.json 的 JSON
6. 保存到数据文件
7. 向用户确认保存成功,并显示摘要和建议
8. 如达成成就,自动解锁并提示
用户: 设定目标 减重5公斤 2025年6月30日
AI: ✅ 目标设定成功
目标信息:
类型: 减重目标
目标: 减重5公斤
开始日期: 2025-01-01
目标日期: 2025-06-30
SMART验证: ✅ 通过
✓ 具体: 明确减重5公斤
✓ 可衡量: 可追踪体重变化
✓ 可实现: 现实可行
✓ 相关: 与健康相关
✓ 有时限: 6个月期限
行动计划建议:
• 每周运动4次,每次30分钟
• 每天减少500卡路里摄入
• 每天吃5份蔬果
• 戒烟限酒
已保存至健康目标
用户: 记录习惯 早上拉伸 完成
AI: ✅ 习惯记录已更新
习惯: 早上拉伸
连续天数: 8天
最长连续: 21天
总完成次数: 46次
🎉 新成就解锁: 连续7天!
继续保持!还有13天解锁"连续21天"成就
用户: 目标进度报告
AI: 📊 健康目标进度报告
减重目标:
进度: 3.5/5公斤 (70%)
预计完成: 2025年5月20日 (提前41天)
状态: 进展顺利 ✅
运动目标:
进度: 2/4次 (50%)
本周完成: 2次
状态: 需要努力 ⚠️
习惯追踪:
• 早上拉伸: 7天连续 ✅
• 餐前喝水: 5天连续
[生成完整可视化报告...]
AI-driven health analysis system including comprehensive analysis, risk prediction, intelligent Q&A, and report generation.
Manage allergy records including drug, food, and environmental allergies with severity tracking and medical alert integration.
Track and assess child developmental milestones based on ASQ-3 and Denver II standards. Use when user mentions development, milestones, motor skills, language, social skills, or cognitive development.
基于 SOC 职业分类