Skip to main content

Open-source Grok Life fitness kit tracks 7-day averages, calorie floors and GLP-1 use

GitHubGitHubjohnnyg2692026-11-19

Life assistantSource read in fullRead first
GitHubGitHubjohnnyg2692026-11-19

Open original

Overview

A nutrition and fitness coach skill that installs as one bundle in Grok Bot, with a rulebook, charts, scoring, medication tracking, fonts, icons and sample data.

Workflow

  1. Trigger: The author put the full nutrition and fitness rules into a shareable skill pack. Grok Life kit contains files for the Grok Life bot to load on its computer on first run: a coaching rulebook (SKILL.md), chart and dashboard rendering, scoring scripts, medication tracking, fonts (SIL OFL) and Lucide icons. SKILL.md describes a shareable coach to replace MyFitnessPal and a rulebook behind every figure, with instructions to follow it verbatim. For a case outside the rules, follow section 7 on safety without improvising. The author says this is not medical advice and the bot is not a doctor. Cite supportable claims and describe other material as coaching practice if asked.
  2. Bot: Install the kit itself. The README has the bot download and unzip files on its cloud computer.

    curl -L https://github.com/johnnyg269/grok-life-kit/archive/refs/heads/main.tar.gz | tar -xz pip install matplotlib pillow numpy playwright playwright install chromium

    If shared libraries are missing, retry with playwright install-deps chromium (requires root). "Executable doesn't exist" means the playwright package and browser versions differ. Use python3 -m playwright install chromium for the matching version. Fonts ship in fonts/ and are embedded in every page. The self-test in SKILL.md is python render.py overview --out /tmp/t, which must print a PNG path. Without Chromium the script still runs, using a basic matplotlib chart for check-ins and plain Pillow layout for photos with a message in stderr. The author requires fixing installation before sending those images. Run scripts with full paths inside the skill folder.

  3. Bot: Onboard with two questions before giving numbers. First ask which of five modules to track: training, food and macros, steps and activity, health (weight/sleep/recovery/hydration), and peptides and medication. The last is only for people already taking GLP-1 or other peptides. The author says never to promote it and suggests the first four by default. Second, appearance: start with the light Lagoon palette without asking and offer dark once after the first chart. Save choices with config.py (python config.py init --modules <comma-separated list> and --theme dark only if explicitly requested). Turn off unselected modules entirely, including sections, tabs, questions and chart mentions. Tell users they can enable any module any time and retain data. Skip intake questions for off modules. Hide modules that need Apple Health until the first data arrive.
  4. Bot: Keep all user data as CSVs under a fixed directory. Use /workspace/macro-coach/ with one UTF-8 CSV per topic, headers, YYYY-MM-DD dates and 24-hour time. Store metric (kg/cm/ml) and convert on display based on targets.csv units. Append only, except to correct errors a user flags. Files: targets.csv (append on goal change and use the latest row no later than today), food_log.csv (one meal per row, source off, usda, label, estimate or manual, free-text amount and nutrition for the amount eaten instead of per 100 g), water.csv (one row per drink, sum per day), weight.csv (last entry for the day), workouts.csv (walks already count in steps and do not count as workouts), sleep.csv (date of waking, optional quality 1–5), steps.csv, measurements.csv (circumference), photos.csv (written by compare_photos.py), meds.csv (one injection/dose per row, lowercase compound keys such as tirzepatide, semaglutide or a custom name, fixed injection site keys for abdomen/thigh/arm), med_schedule.csv (free-text titration plan and overridable half-life and time to peak, both required for custom compounds), side_effects.csv (0–10 each for nausea, heartburn, food noise, appetite suppression, fatigue and constipation), and config.json (written by config.py, with modules, light/dark and palette).
  5. Bot: Log food in a fixed order and never invent branded nutrition. For a barcode photo, read it and check Open Food Facts first. Confirm amount eaten and log off. If unavailable or lacking nutrition, try USDA FoodData Central and then ask for a label photo. For a label photo, read nutrition per serving, ask how many servings and log label. For text alone, estimate with USDA values, give a one-line assumption and log estimate. Ask at most one question about an unclear portion. If precise branded nutrition is unavailable, say so and estimate from the closest generic food. After each entry tell the user the day's remaining calories and protein and one thing that would fit.
  6. Bot: Set calorie targets from formulas. Ask age, sex, height, weight, target weight, goal (loss, gain, maintenance or recomp for fat loss and muscle gain), activity level, training days per week and units. With the peptide and medication module on, ask compound (such as Zepbound, Wegovy or Ozempic), current dose, frequency, last injection time and site and log with meds.py. When off, do not bring it up, and suggest enabling it only if the user mentions it later. Mifflin-St Jeor estimates basal metabolism: men 10×kg + 6.25×cm − 5×age + 5, women replace +5 with −161. The author cites the Academy of Nutrition and Dietetics evidence review as saying this is most accurate for most adults among common equations, but individual errors are large and any estimate is a starting guess subject to data. If male/female options do not fit, ask which equation to use or average them and explain. Maintenance is basal metabolism × activity factor: 1.2 sedentary, 1.375 light, 1.55 moderate, 1.725 very active, 1.9 extremely active. Each has step and training day criteria. The author says users usually overestimate activity, so use one level lower if unsure and adjust at the 14-day review. Target fat loss is 0.5–1% of weight per week (default 0.5–0.75%, with 1% only for users with substantial fat), roughly 250–750 kcal/day below maintenance, capped at a 25% deficit. Aim for weekly weight gain of 0.25–0.5%, high end for beginners and low for experienced lifters. Maintenance is 0 change. Recomp targets roughly steady weight at maintenance or 100–200 below. The example is 180 lb × 0.75% weekly, or about 1.35 lb. Using about 3,500 kcal per lb of fat as a rough rule rather than a physical law gives a deficit of about 675 kcal a day, then adjust from weight trends. The author says recomp suits beginners, returning lifters and those with higher body fat, and requires heavy lifting, high protein and patience. Judge waist, photos and strength instead of the scale. Stop to clarify when goal and target conflict, such as weight loss with a higher target weight.
  7. Bot: Set protein and fat first and calculate the remaining carbs. Show the math. Protein is 0.7–1 g/lb (1.6–2.2 g/kg) of target weight, default 0.8 g/lb. Use target weight for large losses and the high end during aggressive cutting or if lean. The author cites the Morton 2018 meta-analysis (benefits from extra protein level off at about 1.6 g/kg with an upper confidence bound around 2.2) and the ISSN 2017 position stand (1.4–2.0 for active people). Minimum fat is about 0.3 g/lb (0.6 g/kg) of target weight, default 25–30% of calories. The author describes this as a coaching practice for hormones and vitamin absorption and says never go below it to make room for carbs. Divide remaining calories by 4 for carb grams. Protein and carbs are 4 kcal/g, fat 9 and alcohol 7. Give more carbs for hard training. Fiber is 14 g per 1,000 kcal, typically 25–38 g, increasing by 5 g per week to avoid bloating. Water is about 0.5 fluid ounces per pound of body weight (about 33 ml/kg) plus about 350 ml per 30 minutes of exercise. The author calls this a baseline and not a hard rule. Show calculations in fixed order: basal metabolism × factor = maintenance, then goal adjustment, final calories, grams and calories of each macro. Round calories to the nearest 25 and grams to the nearest 5. Safety ranges: minimum 1,200 kcal/day for women and 1,500 for men, maximum deficit 25%, maximum loss 1% weekly and maximum surplus +500 kcal. A floor is a safety threshold. If the calculation is lower, use the floor, explain and say a very low-calorie diet requires a doctor. Refuse requests below it and offer a slower rate. For BMI under 18.5 offer maintenance or gain only. Append targets.csv and schedule check-ins at the onboarding cadence.
  8. Bot: Review 7-day averages every 14 days. Water, salt, carbs, digestion and menstrual cycle can move daily weight 1–3 lb (about 0.5–1.5 kg). Do not react to one weigh-in. Use the last 7-day average if there are at least 4 weigh-ins. Review every 14 days on the same weekday. The weekly rate is (current 7-day average minus 7-day average from 14 days earlier) divided by 2. Wait at least 14 days for a new goal and require at least 10 weigh-ins and 10 logged days in the window. Say which data are missing and what to add. If the data look off for someone who menstruates, compare the same phase. If progress is in the right direction and within about ±25% of plan, keep targets and say so. For loss below 0.25% weekly or under half plan with at least 5 days logged per week, subtract 100–200 kcal a day from carbs and fats and keep protein. For loss over 1% weekly or more than 25% over plan, add 100–200 and check fatigue, sleep and strength. For gain below 0.15% a week, add 100–200, mostly carbs. For gain over 0.6%, subtract 100–200. If direction is reversed, run the plateau checklist before changing calories. For recomp, hold if weight stays within ±0.25% a week and waist is stable or falling. Cut 100 only after both rise 4 weeks. If fewer than 5 logged days a week or fewer than 4 weigh-ins, fix logging before changing calories. Change one thing at a time, at most once per 14 days and never below the floor. Append targets.csv and say what changed, why and when the next review is.
  9. Bot: Troubleshoot plateaus in seven ordered checks. Stop at the first cause. (1) Logging: at least 5 days and oils, sauces, drinks, snacks and weekend meals included? If major items are guesses, weigh the largest for three days. (2) Weigh-ins: same scale, morning after the bathroom and before eating, at least 4 measurements for the 7-day average. (3) Water: new training, starting creatine, high sodium, one intense week or cycle phase can retain 1–4 lb for 1–2 weeks. Wait another week. (4) Sleep: less than 6.5 hours on average can show up as slower fat loss and hunger. (5) NEAT and steps: steps often drop unnoticed by 1,500–3,000 per day while dieting. Compare the first and last two weeks. (6) Training: check whether strength holds. Falling strength can signal too large a deficit. (7) Time: a real plateau means the 7-day average is flat at least 3 weeks with clean logs, steps and sleep. Only then offer the user 100–200 fewer kcal a day or 2,000 more steps.
  10. Bot: Offer diet breaks for long deficits and increase intake at the end. After 8–12 consecutive weeks in deficit, or earlier with fatigue, poorer sleep, lost strength or mood problems, offer 1–2 weeks at maintenance with unchanged protein. The author reports the MATADOR study (Byrne 2018) alternated two weeks of dieting with two of maintenance and got similar or better fat loss for equal time in deficit, but took longer overall. The author notes the small evidence base and treats it as optional. Optional refeeds for lean users on long cuts are one or two days at maintenance every 1–2 weeks, with extra calories from carbs. The author calls the evidence weak and the main benefit adherence. Skip for users who feel guilt on high-calorie days. After dieting, increase 100–200 kcal weekly up to maintenance to learn the new baseline. Do not claim this repairs metabolism.
  11. Bot: Match the training plan to experience. Under 6 months or returning, 3 days a week: three full-body sessions. Six months to more than two years, 4 days: four upper/lower sessions. Six days with good sleep and no deep deficit: six push/pull/legs sessions. The author cites the ACSM 2009 position stand for 2–4 sets of 8–12 at moderate load for beginners, Schoenfeld 2017 for more hypertrophy with at least 10 hard sets per muscle a week, and Schoenfeld 2016 for twice weekly beating once weekly. Ask about injuries, available equipment and disliked movements. Swap exercises while preserving patterns, such as goblet for barbell squat, push-ups for bench and band for cable rows. RPE is 1–10. RPE 8 means 2 reps left and RPE 9 means 1. Most work sets use RPE 7–9, with RPE 10 failure only on the last set of an isolation movement. Rest 2–3 minutes for big lifts and 60–90 seconds for small ones. Warm up with 2 lighter sets of the first exercise. Templates include a 3-day novice full-body plan with around 50-minute sessions, 7 exercises and A/B weeks, and an intermediate upper/lower split. The archive captured only through Upper A / Lower A. Later sections on recovery, scoring, medication, photo comparisons, charts, dashboards and Apple Health shortcuts appear only in the file list.
  12. Check: The source gives no outcomes or measured results from the author. The repo has four self-test scripts, for meds, modules, photo comparison and first day, and charts from synthetic sample data. The SKILL.md install check runs python render.py overview --out /tmp/t and looks for a printed PNG path. This is an instruction for users, with no record of the author running it.

Key points and results

  • The coaching rules are explicit. SKILL.md gives both Mifflin-St Jeor equations, activity factors (1.2–1.9), protein 0.7–1 g/lb of target weight, fat floor 0.3 g/lb, fiber 14 g per 1,000 kcal, calorie floors of 1,200 for women and 1,500 for men, maximum deficit 25%, and maximum loss 1% weekly. Responses show the math in a fixed format and round calories to 25 and grams to 5.
  • Choose modules as needed, with no promotion of peptides. Onboarding offers five. Unselected modules disappear. The medication module is only for users already on GLP-1 or other peptides. The author explicitly says not to promote it, defaulting to the first four modules.
  • Use the safety section when rules do not cover a case. SKILL.md says use section 7 without improvising. The bot is no doctor and gives no medical advice. Cite claims with evidence (Mifflin-St Jeor, Morton 2018, ISSN 2017, ACSM 2009, Schoenfeld 2016/2017 and MATADOR/Byrne 2018). Identify other claims as coaching practice if asked.
  • The author says users overestimate activity. Choose a factor one level lower if unsure and use the 14-day review to correct it. The source gives no comparison figures.
  • Use trends over daily readings. Water, salt, carbs, digestion and cycle phase can shift a day by 1–3 lb. Require 4 weigh-ins for a 7-day average and review on the same weekday every 14 days. Change one thing and adjust targets at most once in 14 days.
  • Troubleshoot before cutting calories for a plateau. Check logging, weigh-in quality, retention, sleep, steps, training and elapsed time in order. Stop at the first cause. Only subtract 100–200 kcal or add 2,000 steps after at least 3 weeks of a flat 7-day average with clean data.
  • No measured outcomes. This is the author's skill pack and rulebook with no firsthand outcomes or comparison numbers. Sample data and photos are synthetic according to the author.
  • The archive cuts off at the training templates. After SKILL.md section 3.3 there are only file list items for recovery, scoring, medication details, photo comparison, charts, dashboards and Apple Health shortcuts.

Source

Platform
GitHub
Author
johnnyg269
Published
Categories
Life assistant

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.