Goal analyzer

From vitaclaw/vitaclaw · View interactive version

Goal analyzer is an AI agent skill from the GitHub repository vitaclaw/vitaclaw. Analyzes health goal data, identifies goal patterns, evaluates goal progress, and provides personalized goal management recommendations. Supports SMART goal validation, habit tracking, motivation assessment, achievement systems, obstacle identification, and correlation analysis with nutrition, exerc

How to use this skill

Skill file

Health Goal Analyzer Skill

Analyzes health goal data, identifies goal patterns and progress, evaluates goal achievement, and provides personalized goal management recommendations.

Features

1. SMART Goal Validation

Validates whether a newly set goal conforms to the SMART principles.

Validation Dimensions:

Output:

Example Assessment:

{
  "goal": "Lose 5 kg in 6 months",
  "smart_scores": {
    "specific": 5,
    "measurable": 5,
    "achievable": 4,
    "relevant": 5,
    "time_bound": 5
  },
  "overall_score": 4.8,
  "grade": "A",
  "assessment": "Excellent SMART goal",
  "suggestions": [
    "Set interim milestones (lose 1.5-2 kg every 2 months)",
    "Pair with an exercise plan and dietary adjustments"
  ]
}

2. Goal Progress Tracking

Tracks and analyzes goal completion progress.

Tracking Content:

Output:

Progress Ratings:


3. Habit Building Analysis

Analyzes habit formation status and consistency.

Analysis Content:

Habit Formation Stages:

Output:

Example Analysis:

{
  "habit": "morning-stretch",
  "current_streak": 21,
  "longest_streak": 21,
  "completion_rate": 95.2,
  "strength_score": 7.5,
  "stage": "Consolidation phase",
  "assessment": "Habit is about to form, keep going!",
  "next_milestone": 30,
  "suggestions": [
    "Keep it up, approaching the 30-day milestone",
    "Consider adding a new related habit"
  ]
}

4. Motivation Assessment & Management

Evaluates and manages user motivation levels.

Assessment Content:

Motivation Boosting Strategies:

Output:

Motivational Advice Examples:


5. Achievement System Management

Manages the basic achievement system for unlocking and progress.

Achievement Types:

Achievement Tracking:

Output:


6. Obstacle Identification & Recommendations

Identifies factors blocking goal achievement and provides solutions.

Obstacle Types:

Output:


7. Data Correlation Analysis

Correlates health goals with other health data for analysis.

Correlation Dimensions:

Analysis Methods:

Output:

Example Correlation:

{
  "goal": "weight-loss",
  "correlations": [
    {
      "factor": "daily_calories",
      "correlation": -0.75,
      "strength": "Strong negative correlation",
      "insight": "Daily calorie intake strongly negatively correlated with weight loss progress; reducing intake accelerates progress"
    },
    {
      "factor": "exercise_frequency",
      "correlation": 0.68,
      "strength": "Strong positive correlation",
      "insight": "Exercise frequency strongly positively correlated with weight loss progress; recommend maintaining 4+ sessions per week"
    },
    {
      "factor": "sleep_duration",
      "correlation": 0.45,
      "strength": "Moderate positive correlation",
      "insight": "Sleep duration affects weight loss; recommend ensuring 7-8 hours of sleep"
    }
  ],
  "recommendations": [
    "Focus on controlling calorie intake while maintaining current exercise frequency",
    "Optimize sleep duration to enhance weight loss effectiveness"
  ]
}

8. Visualization Report Generation

Generates HTML interactive reports with ECharts charts.

Report Types:

A. Progress Trend Report
B. Habit Heat Map Report
C. Multi-Goal Comparison Report
D. Motivation Trend Report
E. Comprehensive Report

Report Features:

ECharts Chart Configuration:

// Progress trend line chart
{
  type: 'line',
  xAxis: { type: 'category', data: ['Jan', 'Feb', 'Mar', ...] },
  yAxis: { type: 'value', name: 'Completion %' },
  series: [{
    name: 'Goal Progress',
    type: 'line',
    data: [0, 15, 35, 50, 70, 85, 100],
    smooth: true,
    markLine: {
      data: [{ yAxis: 50, name: '50% Milestone' }]
    }
  }]
}

// Habit heat map
{
  type: 'heatmap',
  xAxis: { type: 'category', data: ['Mon', 'Tue', ...] },
  yAxis: { type: 'category', data: ['Week 1', 'Week 2', ...] },
  visualMap: {
    min: 0, max: 1,
    inRange: { color: ['#ebedf0', '#216e39'] }
  },
  series: [{
    type: 'heatmap',
    data: [[0, 0, 1], [1, 0, 1], [2, 0, 0], ...]
  }]
}

// Goal achievement ring chart
{
  type: 'pie',
  radius: ['50%', '70%'],
  series: [{
    type: 'pie',
    radius: ['50%', '70%'],
    data: [
      { value: 70, name: 'Completed' },
      { value: 30, name: 'Remaining' }
    ],
    label: { formatter: '{b}: {c}%' }
  }]
}

Output:


Medical Safety Boundaries

Scope Statement

Danger Signal Recognition

Extreme Goal Warnings:

Unhealthy Behavior Indicators:

Referral Recommendations:


Output Format

Goal Analysis Report

# Health Goal Analysis Report

## Goal Overview
- Goal: Lose 5 kg in 6 months
- Start date: 2025-01-01
- Target date: 2025-06-30
- Current date: 2025-03-20

## SMART Assessment
- Specific: 5/5
- Measurable: 5/5
- Achievable: 4/5
- Relevant: 5/5
- Time-bound: 5/5

**Overall Score: A (4.8/5)**

## Progress Analysis
- Current progress: 70%
- Completed: 3.5 kg / 5.0 kg
- Time progress: 27% (79 days / 180 days)
- Progress rating: Excellent (ahead of schedule)

### Trend Analysis
- Average rate: 0.77 kg/month
- Estimated completion: 2025-05-20 (40 days early)
- Progress trend: Steady increase

## Habit Tracking
### Morning Stretch Habit
- Current streak: 21 days
- Longest streak: 21 days
- Completion rate: 95.2%
- Habit stage: Consolidation phase
- Next milestone: 30 days

## Motivation Assessment
- Current motivation: 8/10
- Motivation trend: Stable
- Motivation status: Good

## Data Correlation Analysis
### Strongly Correlated Factors (Impact > 60%)
1. Daily calorie intake (negative correlation -0.75)
2. Weekly exercise frequency (positive correlation +0.68)
3. Sleep duration (positive correlation +0.45)

### Recommendations
- Maintain current calorie intake level
- Continue 4x/week exercise frequency
- Optimize sleep duration to 7-8 hours

## Obstacle Identification
Primary obstacle: Diet control during social activities

Solutions:
- Plan meals before social events
- Choose healthy restaurants
- Control portion sizes appropriately

## Achievement Unlocked
- 21-Day Streak - Morning stretch habit achieved!
- Halfway There - Weight loss goal 50% complete!

## Next Steps
1. Maintain current progress
2. Focus on social event diet control
3. Continue building the morning stretch habit
4. Prepare for the 30-day milestone

Technical Implementation Notes

Data Reading

Data Processing

SMART Validation Algorithm

def validate_smart_goal(goal):
    scores = {
        'specific': check_specificity(goal),
        'measurable': check_measurability(goal),
        'achievable': check_achievability(goal),
        'relevant': check_relevance(goal),
        'time_bound': check_time_bound(goal)
    }
    overall = sum(scores.values()) / len(scores)
    grade = get_grade(overall)
    return scores, overall, grade

HTML Report Generation


When using this skill, always prioritize the user's health and safety!

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.