plan-adjuster
根据最近的跑步、反馈和安全限制重新计算即将到来的训练。
📖 中文导读:根据最近的跑步、反馈和安全限制重新计算即将到来的训练。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: plan-adjuster description: Recomputes upcoming workouts based on recent runs, feedback, and safety limits. metadata: short-description: Adaptive adjustment of future sessions with change logs and recovery tips.
When Codex should use it
- Nightly job or immediately after a run is logged.
- When the user reports fatigue/injury or requests easier/harder weeks.
Invocation guidance
- Load
Plan,Workout,TrainingHistory, andRecentRunTelemetry[]. - Apply deterministic ceilings from
v0/lib/planAdaptationEngine.tsandv0/lib/plan-complexity-engine.tsbefore calling the model. - Return
Adjustment[], optionalRecoveryRecommendation, andconfidence.
Input schema (JSON)
{
"profile": UserProfile,
"currentPlan": Plan,
"trainingHistory": TrainingHistory,
"feedback": { "rpeTrend"?: number, "soreness"?: string, "sleepQuality"?: string }
}
Output schema (JSON)
{
"appliedAt": string,
"updates": Adjustment[],
"recovery"?: RecoveryRecommendation,
"confidence": "low" | "medium" | "high",
"safetyFlags"?: SafetyFlag[]
}
Integration points
- API:
v0/app/api/plan/adjust(to add), or chat-triggered adjustments. - Logic:
v0/lib/planAdjustmentService.ts,v0/lib/planAdaptationEngine.ts. - UI: Plan/Today screens (badge adjusted sessions) and notifications via
v0/lib/email.ts.
Safety & guardrails
- Never rewrite completed history; adjust only future sessions.
- If fatigue/injury signals present, lower intensity/volume and consider rest-day insertion.
- Emit
SafetyFlagon unsafe load proposals; clamp to deterministic caps.
Telemetry
- Emit
ai_skill_invokedandai_adjustment_appliedwithadjustments_count,confidence,safety_flags.