Analyzes rehabilitation training data, identifies recovery patterns, assesses rehabilitation progress, and provides personalized rehabilitation recommendations. Tracks ROM, muscle strength, balance, pain trends, and training adherence. Use when the user wants to review rehabilitation progress or analyze recovery trends.
The Rehabilitation Training Analysis skill provides comprehensive rehabilitation data analysis, helping users track recovery progress, identify improvement patterns, and optimize training plans.
Main Feature Modules:
The skill is automatically triggered in the following situations:
/rehab progress to view rehabilitation progress/rehab analysis to perform rehabilitation analysis/rehab trends to view trend analysis/rehab report to generate a rehabilitation reportRead rehabilitation data files:
data/rehabilitation-tracker.json - Main rehabilitation profiledata/rehabilitation-logs/YYYY-MM/YYYY-MM-DD.json - Daily training logsData Validation:
Range of Motion (ROM) Analysis:
- Analyze ROM measurements at different time points
- Calculate ROM improvement rate (degrees/week)
- Identify ROM plateaus or regression
- Predict time to reach target ROM
- Compare against target range
Muscle Strength Improvement Analysis:
- Track muscle strength grade changes (MMT score)
- Identify strength improvement patterns
- Compare recovery rates across different muscle groups
- Assess muscle strength imbalances
Balance Function Analysis:
- Balance test score trends
- Single-leg stance time improvement
- Balance stability assessment
- Fall risk changes
Pain Temporal Analysis:
- Analyze morning pain trends
- Analyze post-activity pain trends
- Identify pain exacerbation/relief patterns
- Correlate pain with training intensity
Pain Trigger Factor Identification:
- Relationship between specific exercises and pain
- Correlation between training intensity and pain
- Relationship between activity type and pain
- Impact of timing factors on pain
Adherence Metrics:
Adherence = (Actual Training Sessions / Planned Training Sessions) x 100%
Analysis Dimensions:
Goal Progress Tracking:
Current Phase Analysis:
Output includes:
# Rehabilitation Progress Report
**Report Date**: YYYY-MM-DD
**Rehabilitation Duration**: X days
**Current Phase**: Phase X - Phase Name
## 1. Rehabilitation Progress Summary
[Overall Progress Rating: Excellent/Good/Fair/Needs Improvement]
- Rehabilitation Duration: X days (Week X)
- Completed Training Sessions: X
- Training Adherence: X%
- Current Phase Progress: X%
## 2. Functional Improvement Trends
### Range of Motion (ROM)
- [Joint Name] [Movement Type]: Baseline X deg -> Current X deg -> Improvement X deg
- Improvement Rate: X deg/week
- Estimated Time to Goal: X weeks
- Trend Analysis: [Improvement trend description]
### Muscle Strength Assessment
- [Muscle Group]: Baseline X/5 -> Current X/5 -> Improvement X grade(s)
- Strength Improvement Pattern: [Description]
- Strength Balance: [Assessment]
### Balance Function
- [Test Type]: Baseline X -> Current X -> Improvement X
- Balance Stability: [Assessment]
- Fall Risk: [Assessment]
## 3. Pain Control Status
- Average Pain Level: X/10
- Pain Trend: [Improving/Stable/Worsening]
- Pain Pattern: [Description]
- Trigger Factors: [Identified triggers]
- Pain Control Recommendations: [Recommendations]
## 4. Training Adherence
- Overall Adherence: X%
- Planned Sessions: X
- Completed Sessions: X
- Adherence Rating: [Excellent/Good/Fair/Needs Improvement]
- Missed Session Analysis: [If applicable]
## 5. Goal Achievement Status
### Achieved Goals (X)
- Goal 1: [Description] - Achieved on: YYYY-MM-DD
- ...
### In-Progress Goals (X)
- Goal 1: [Description] - Current Progress: X% - Estimated Achievement: YYYY-MM-DD
- ...
### Lagging Goals (X)
- Goal 1: [Description] - Current Progress: X% - Needs Attention
## 6. Rehabilitation Phase Progress
**Current Phase**: Phase X - [Phase Name]
- Phase Goals Completed: X/X
- Phase Progress: X%
- Phase Duration: X weeks
- **Phase Rating**: [Rating]
**Ready to Progress to Next Phase**: [Yes/No]
- [Reasons for readiness] / [Items requiring further effort]
## 7. Personalized Recommendations
### Training Recommendations
- [Specific training recommendations]
### Goal Adjustment Recommendations
- [Goal adjustment recommendations]
### Phase Transition Recommendations
- [Phase transition recommendations]
### Precautions
- [Items to watch for]
## 8. Next Assessment
**Next Assessment Date**: YYYY-MM-DD
**Assessment Focus**: [Key assessment items]
## Rehabilitation Progress Brief
**Overall Progress**: Good
**Rehabilitation Duration**: Week X (X days)
**Phase**: Phase X - [Phase Name]
**Functional Improvement**:
- ROM: +X deg (improvement rate X deg/week)
- Muscle Strength: Improved X grade(s)
- Balance: Improved X%
**Pain Control**: Average X/10 ([Trend])
**Training Adherence**: X% ([Rating])
**Goal Achievement**: X/X (X%)
**Current Phase**: X/X goals completed
**Next Phase Readiness**: [Yes/No]
**Recommendation**: [1-2 key recommendations]
data/rehabilitation-tracker.jsonuser_profile - User profile and basic rehabilitation informationrehabilitation_goals - Rehabilitation goal listexercise_log - Training logfunctional_assessments - Functional assessment recordsphase_progression - Phase progression recordspain_diary - Pain diarystatistics - Statistical datadata/rehabilitation-logs/YYYY-MM/YYYY-MM-DD.jsondaily_summary - Daily training summaryexercise_sessions - Training detailspain_entries - Pain recordsassessments - Assessment recordsnotes - Daily notesLinear Regression Analysis:
Use least-squares method to fit functional improvement trends
Improvement Rate = (Current Value - Baseline Value) / Time Interval
Improvement Pattern Recognition:
Moving Average Calculation:
7-Day Moving Average Pain = sum(pain over last 7 days) / 7
Pain Trend Determination:
Overall Adherence = (Actual Training Days / Planned Training Days) x 100%
Training Type Adherence = (Actual Completions of Type / Planned Completions of Type) x 100%
Adherence Rating:
Linear Extrapolation:
Predicted Time = Current Date + ((Target Value - Current Value) / Improvement Rate)
Factors Considered:
Readiness Score:
Readiness = (Phase Goals Achieved / Total Phase Goals) x 100%
Readiness >= 80%: Recommend progressing to next phase
Readiness 60-79%: May consider progressing to next phase with caution
Readiness < 60%: Recommend continuing current phase
Local Storage
Privacy Protection
Data Integrity
What the system CANNOT do:
What the system CAN do:
Important Notice:
Error Type 1: File Not Found
Error: Rehabilitation data file not found. Please use /rehab start to begin rehabilitation tracking first.
Action: Guide the user to start rehabilitation recording.
Error Type 2: Insufficient Data
Error: Insufficient data. At least 3 functional assessments or 10 days of training records are required to generate an analysis report.
Current Data: X assessments, X days of training records.
Action: Recommend the user continue recording more data.
Error Type 3: Data Structure Error
Error: Data file structure is abnormal. Please check data integrity.
Action: Recommend the user reinitialize the rehabilitation profile.
Error Type: Calculation Exception
Error: An exception occurred during data analysis. Please try again later.
Action: Log the error; provide basic data display.
Error Type: Report Generation Failed
Error: Report generation failed. Please try simplifying query conditions or contact technical support.
Action: Provide a simplified report or raw data export.
User Input:
/rehab progress
Skill Execution:
Output:
# Rehabilitation Progress Report
## Rehabilitation Progress Summary
Overall Progress: Good
Rehabilitation Duration: Week 6 (36 days)
Current Phase: Phase 3 - Strengthening
## Functional Improvement
- Knee Flexion: 30 deg -> 120 deg (+90 deg)
- Knee Extension: -10 deg -> 0 deg (+10 deg)
- Quadriceps Strength: 3/5 -> 4/5 (Improved 1 grade)
- Single-Leg Stance: 5 sec -> 30 sec (+25 sec)
## Pain Control
- Average Pain: 1.5/10 (Well controlled)
- Pain Trend: Stable
## Training Adherence: 92% (Excellent)
## Goal Achievement: 8/14 (57%)
- Achieved: 8
- In Progress: 5
- Lagging: 1
## Phase Progress
Phase 3 Progress: 2/5 goals completed (40%)
Next Phase Readiness: Needs further effort
Recommendation: Maintain current training intensity; focus on quadriceps strengthening exercises
User Input:
/rehab trends rom
Skill Execution:
Output:
# Range of Motion (ROM) Trend Analysis
## Knee Flexion
Improvement Trend: Good
Timeline:
- 5/15: 30 deg (Baseline)
- 5/30: 70 deg (+40 deg)
- 6/15: 100 deg (+30 deg)
- 6/20: 120 deg (+20 deg)
Improvement Rate: 8.6 deg/week
Target: 135 deg
Estimated Achievement: 2025-08-01 (2 more weeks)
Trend: Continuous improvement
## Knee Extension
Target achieved
Timeline:
- 5/15: -10 deg (Baseline)
- 6/10: 0 deg (Target achieved)
- 6/20: 0 deg (Maintained)
Improvement Rate: 2.5 deg/week
Target: 0 deg
Achievement Date: 2025-06-10
Trend: Maintaining target
## Recommendations
- Knee flexion progressing well; continue current approach
- Maintain extension exercises to prevent flexion contracture
- Target flexion goal expected within 2 weeks
User Input:
/rehab analysis pain
Skill Execution:
Output:
# Pain Pattern Analysis
## Pain Trend
Overall Trend: Improving
- Baseline Pain: 5/10
- Current Pain: 2/10
- Improvement: 3 points (60% improvement)
## Temporal Pattern
- Morning Pain: 1/10 (Mild)
- Post-Activity Pain: 2/10 (Mild)
- Resting Pain: 0/10 (None)
## Trigger Factor Identification
- Main Triggers: Prolonged sitting, stairs
- Pain-Aggravating Activities: Descending stairs, deep squats
- Relief Factors: Rest, ice, elevation
## Training-Related Pain
- Average Pain During Training: 1.2/10 (Safe range)
- Post-Training Pain: 2/10 (Resolves quickly)
- Training adherence unaffected by pain
## Recommendations
- Pain is well controlled; maintain current training intensity
- Rest and apply ice after training
- Avoid pain-aggravating activities (deep squats, descending stairs)
- If pain exceeds 4/10, seek medical evaluation promptly
Correlation Analysis:
Example:
User runs /rehab analysis correlation fitness
Skill reads:
- rehabilitation-tracker.json
- fitness-tracker.json
- Analyzes correlation between rehabilitation training and exercise metrics
Correlation Analysis:
Correlation Analysis: