원클릭으로
test-intelligence-algorithms
Validates sports science algorithms (VDOT, TSS, TRIMP, FTP, VO2max, Recovery, Nutrition) for correctness
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Validates sports science algorithms (VDOT, TSS, TRIMP, FTP, VO2max, Recovery, Nutrition) for correctness
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when designing prompts for LLMs, optimizing model performance, building evaluation frameworks, or implementing advanced prompting techniques like chain-of-thought, few-shot learning, or structured outputs.
How to deploy Dravr infrastructure and apply Cloud Run config changes. Use when editing infra/ terraform, when a merged code change is live but a Cloud Run setting (cpu, memory, min/max instances, env var, scaling) hasn't taken effect, or when asked to plan/apply infra. Explains the two-pipeline model (app binary auto-deploys on push; terraform infra config is a separate manual apply) plus the cpu/cpu_idle guardrails.
Enforces zero-tolerance code quality policy using Clippy with strict lints, all warnings treated as errors
Write well-formatted notes to the dravr-vault Obsidian knowledge base. Use this skill whenever creating or updating an ADR, runbook, plan, API doc, guide, session output, or any structured document that should land in the vault — even when the user doesn't say "Obsidian" explicitly. Delegates to obsidian:obsidian-cli to write to the live vault and applies Dravr frontmatter and formatting standards.
Bootstrap Pierre server with database, admin user, coaches, and test users for development and testing
Validates coach markdown files for required frontmatter fields, sections, and naming conventions
| name | test-intelligence-algorithms |
| description | Validates sports science algorithms (VDOT, TSS, TRIMP, FTP, VO2max, Recovery, Nutrition) for correctness |
| user-invocable | true |
Validates sports science algorithms (VDOT, TSS, TRIMP, FTP, VO2max, Recovery, Nutrition) for mathematical correctness and physiological plausibility.
Run this skill:
tests/# Run all intelligence algorithm tests
cargo test intelligence -- --nocapture
# Fundamental algorithm validation
cargo test --test intelligence_tools_basic_test -- --nocapture
# Complex scenarios and edge cases
cargo test --test intelligence_tools_advanced_test -- --nocapture
# Test VDOT calculation
cargo test test_vdot -- --nocapture
# Test race predictions
cargo test test_race_prediction -- --nocapture
# Test training paces
cargo test test_training_paces -- --nocapture
Expected Values:
Beginner (5K in 30:00): VDOT ≈ 30-33
Intermediate (5K in 22:30): VDOT ≈ 45-48
Elite (5K in 16:00): VDOT ≈ 67-70
# Test Training Stress Score
cargo test test_tss -- --nocapture
# Test Chronic Training Load
cargo test test_ctl -- --nocapture
# Test Acute Training Load
cargo test test_atl -- --nocapture
# Test Training Stress Balance
cargo test test_tsb -- --nocapture
Expected Values:
Easy ride (IF=0.65, 60min): TSS ≈ 40
Threshold (IF=1.00, 60min): TSS = 100
VO2max interval (IF=1.15, 20min): TSS ≈ 44
Fresh athlete: CTL=80, ATL=40 => TSB=+40
Fatigued: CTL=70, ATL=100 => TSB=-30
# Test TRIMP calculation
cargo test test_trimp -- --nocapture
# Test gender differences
cargo test test_trimp_gender -- --nocapture
Expected Values:
Male, 60min @ 75% HRmax: TRIMP ≈ 90-110
Female, 60min @ 75% HRmax: TRIMP ≈ 80-95
# Test FTP estimation
cargo test test_ftp -- --nocapture
# Test 20-minute protocol
cargo test test_ftp_20min -- --nocapture
# Test 8-minute protocol
cargo test test_ftp_8min -- --nocapture
# Test ramp test
cargo test test_ftp_ramp -- --nocapture
Expected Values:
Beginner: FTP ≈ 150W (20min test: 158W × 0.95)
Intermediate: FTP ≈ 250W (20min test: 263W × 0.95)
Elite: FTP ≈ 380W (20min test: 400W × 0.95)
# Test VO2max estimation
cargo test test_vo2max -- --nocapture
# Test Cooper 12-minute test
cargo test test_cooper_test -- --nocapture
# Test VDOT to VO2max conversion
cargo test test_vdot_to_vo2max -- --nocapture
Expected Values:
Beginner: VO2max ≈ 35 ml/kg/min (Cooper: 1800m)
Intermediate: VO2max ≈ 49 ml/kg/min (Cooper: 2600m)
Elite: VO2max ≈ 67 ml/kg/min (Cooper: 3400m)
# Test recovery score calculation
cargo test test_recovery -- --nocapture
# Test sleep quality analysis
cargo test test_sleep_analysis -- --nocapture
# Test sleep stage scoring
cargo test test_sleep_stages -- --nocapture
Expected Values:
Well-rested: Recovery score > 70, Sleep quality > 80%
Adequate: Recovery score 50-70, Sleep quality 60-80%
Poor: Recovery score < 50, Sleep quality < 60%
# Test BMR/TDEE calculation
cargo test test_nutrition -- --nocapture
# Test macronutrient distribution
cargo test test_macros -- --nocapture
Expected Values:
Adult male (70kg, 30yo):
BMR ≈ 1700 kcal/day (Mifflin-St Jeor)
TDEE (moderate activity) ≈ 2600 kcal/day
tests/intelligence_tools_basic_test.rs - Basic algorithm teststests/intelligence_tools_advanced_test.rs - Advanced scenariossrc/intelligence/algorithms/ - Algorithm implementationssrc/intelligence/physiological_constants.rs - Bounds and constantsbook/src/intelligence-methodology.md - Research documentationrun-full-test-suite - Full test execution