Training Load, Fitness & Form (Banister Model)

    by Marek Switajski

    1

    This skill computes the model itself – transparent, reproducible, and for any training log, not just the data inside one platform.

    Free

    Security scanned

    Works with the AI Agents you already use

    Training Load, Fitness & Form (Banister Model)

    Example session with this skill installed

    Here is my training log for the last 10 weeks (einheiten.csv with date, duration in minutes and average heart rate). My lactate threshold is 170, max HR 188, resting HR 50. Where are my fitness, fatigue and form – am I rested enough after the taper for my race this weekend?

    • Read your context and instructions
    • Compiled the training load fitness
    • Generated the data export

    Summary

    Fitness (CTL) 25.5 · fatigue (ATL) 21.6 ·

    form +3.9 (+15 %) · ramp −2.0 CTL/week. The taper is working: fatigue dropped sharply over two weeks while fitness fell only slightly. You start the race in the "fresh" zone.

    Result (synthetic example data; the script prints German labels)

    $ python3 -I scripts/banister_fitness.py --csv einheiten.csv --lthr 170 --hfmax 188 --ruhe 50 --tage 7
    40 Einheiten mit Puls, 2030-01-08 bis 2030-03-17; Parameter LTHR 170, HFmax 188, Ruhepuls 50, b 1.92
    
    Stand 2030-03-17: Fitness (CTL) 25.5 · Ermüdung (ATL) 21.6 · Form +3.9 (+15 %) · Rampe -2.0 CTL/Woche
    
    Datum         Last    CTL    ATL   Form  Form %
    2030-03-11       0   26.9   27.1   -0.3      -1
    2030-03-12      19   26.7   26.1   +0.6      +2
    2030-03-13      20   26.5   25.3   +1.3      +5
    2030-03-14       0   25.9   21.9   +4.0     +15
    2030-03-15      24   25.8   22.1   +3.7     +14
    2030-03-16       0   25.2   19.2   +6.0     +24
    2030-03-17      37   25.5   21.6   +3.9     +15
    

    (Datum = date, Last = daily load, Ermüdung = fatigue, Rampe = ramp per week.)

    Interpretation

    MetricValueMeaning
    Form %+15 %fresh (+5 to +20 %): good for racing
    Ramp−2.0 / weekfitness declining slightly – typical for a taper, not a concern
    Fatigue21.6below fitness: the load of the build weeks has cleared

    Form in percent does not depend on the lactate threshold – even if your LTHR is a bit off, the conclusion "rested" holds. The CTL level, however, shifts with the threshold.

    Next steps

    1. Until race day, only short, easy sessions: form stays around +10 to +25 %.
    2. Beyond +25 % you start losing fitness – don't add another week without load.
    3. With --vergleich intervals_fitness.csv you can cross-check the calculation against your platform's curve.

    intervals_fitness.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    What it does

    The fitness, fatigue and form curves shown by today's training platforms all go back to Eric Banister's impulse-response model (1975): every workout is a load impulse, and the body answers with a slow response (fitness) and a fast one (fatigue). Performance is the difference. This skill computes the model itself – transparent, reproducible, and for any training log, not just the data inside one platform.

    • Training load per session (HRSS): from duration and average heart rate via Banister's TRIMP, normalised so that one hour at lactate threshold = 100 points
    • Fitness (CTL, 42-day), fatigue (ATL, 7-day), form and form %, plus the ramp rate (weekly change in fitness)
    • Optional import and cross-check: export load and daily CTL/ATL from intervals.icu and compare them with the skill's own calculation (correlation, RMSE, bias)

    Who it's for

    Runners, cyclists and trail runners who want to understand where their form curve comes from, compute load from their own training log, or plan a build-up and taper before a race.

    The model

    HRr   = (avg HR − resting HR) / (max HR − resting HR)
    TRIMP = duration[min] · HRr · 0.64 · e^(1.92·HRr)
    HRSS  = 100 · TRIMP / TRIMP(60 min at lactate threshold)
    CTL_t = CTL_{t−1}·e^(−1/42) + L_t·(1 − e^(−1/42))
    ATL_t = ATL_{t−1}·e^(−1/7)  + L_t·(1 − e^(−1/7))
    Form  = CTL − ATL
    

    Validated against a reference implementation

    TRIMP and the CTL/ATL recursion reproduce a widely used platform's values exactly. HRSS from average heart rate comes out about 8 % lower than from second-by-second data (Jensen's inequality – the weighting is convex); the fitness curves correlate at 0.99.

    Inputs

    • a simple table with datum, dauer_min, hf (date, duration in minutes, average HR)
    • a training log with date, duration and average HR
    • an export from intervals.icu (API key needed, only for export and cross-check)

    The scripts need only the Python standard library. The skill also spots common data traps – a recording left running after the workout, duplicate recordings – and explains them.

    Limitations

    Heart-rate based only, fixed time constants, average HR underestimates interval sessions. Not medical advice. Skill instructions and script output are in German. License: MIT.

    Heart-rate based only: sessions without heart rate don't count. Average HR underestimates interval sessions (about 8 % vs. second-by-second data). Fixed time constants (42/7 days) for everyone. Lactate threshold, max HR and resting HR must be known. Skill instructions and script output are in German. Not medical advice.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Software
    Python 3.8+Git

    intervals.icu API key (only for optional export and cross-check).

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    File Scopes

    *.csv
    .env

    Terminal: runs the two Python scripts. Read/write files: reads the training log or export (CSV) and optionally writes a daily series as CSV. Network and environment variables: only for the optional export from intervals.icu, using the API key from INTERVALS_API_KEY or a .env file. The key is never printed and only sent to intervals.icu.

    Listed3 days ago

    What's inside

    Frequently Asked Questions

    No. The calculation works with any simple table of date, duration and average heart rate. An intervals.icu API key is only needed if you want to export your data from there and cross-check the results.

    Platforms usually compute load from second-by-second heart rate, this skill from the session average. Because the TRIMP weighting is convex, the skill comes out about 8 % lower (Jensen's inequality), more for interval sessions. The shape of the fitness and form curves still matches closely (correlation 0.99). Larger gaps usually come from a recording left running after the workout – the skill detects and explains this.

    From your training platform's heart-rate settings, a field test or your watch. If the threshold is a bit off, only the fitness level shifts – form in percent stays the same, because the scaling factor cancels out.

    New in Research & Analysis

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.

    Free