Add Diet & Exercise Tracking and Cookbook recipes#12
Open
jeremyandrews wants to merge 11 commits into
Open
Conversation
…event-prep modes Diet tracking recipe (diet-tracking.md): - Added colored emoji bar dashboard with floor/ceiling metric rules - Added adaptive calorie targets (base + exercise × burn rate) - Added weight tracking section with phases, progress bars, trends - Added fancy HTML dashboard (Chart.js weight visualization) - Added event-prep modes (carb load, diet break, refeed) - Added food identification rule (reuse recent entries to prevent drift) - Added weekly accountability report format (Great/Good/Bad/Ugly) - Added goals section with general-purpose examples - Fixed sample dashboard bar colors to match floor/ceiling rules Diet Dashboard Guidelines (template): - Complete rewrite with colored bar specification - Added adaptive calorie formula documentation - Added weight tracker cross-reference - Added fancy HTML dashboard rendering rules - Added event-prep mode target overrides Weight Tracker Guidelines (new template): - Phase model (loss, maintenance, gain) - Pace bar algorithm: range-as-subset visualization (20 blocks) - Progress bars toward user-defined goals - Body composition bars (fat/lean pace, single-block highlight) - Design history documenting 5 iterations of bar rendering - 10 regression prevention rules for bar rendering Recipe index (index.md): - Updated diet tracking description to reflect new features
Fancy-Dashboard-Build.md is the single source of truth for generating Dashboard-Fancy.html. It documents the two-layer architecture (static HTML rebuilt on weigh-in, diet-today.js rewritten on every food/exercise log), the exact window.DIET_TODAY field-name contract, when to rebuild vs. rewrite, static/dynamic section specs, error isolation rules, bar rendering algorithms (range-as-subset pace, single-block composition, fill-to-position progress), the verification step, and coach's notes continuity rules. Coach-Notes-Log.md is a rolling 30-day log of notes rendered on the fancy dashboard, used to maintain consistency and prevent advice from contradicting itself across days. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…line - Add hydration artifact exclusion rules to Data Pipeline: entries with '⚠️ hydration artifact' in Notes are excluded from the composition window; BIA readings within 4 hours of heavy exercise should be flagged; composition window requires ≥10 clean entries after exclusion - Clarify Progress Bars section: two bars for two goals, never collapsed - Update Fancy Dashboard section: add trajectory line spec (four reference weights: start, goal 1, goal 2, projected date weight), add pointer to Fancy-Dashboard-Build.md as single source of truth Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
New guidelines file covering the full per-log-event flow: (1) parse, (2) estimate, (3) update journal, (4) append xlsx, (5) rewrite diet-today.js, (6) show ASCII dashboard, (7) fancy dashboard auto-updates — no HTML rebuild on food/exercise logs. Also documents: - Tiered exercise adjustment: ≤1,500 cal burned → 7%, >1,500 → 10% - Full window.DIET_TODAY object shape with exact field names - Alcohol rules: separate 'Alcohol' meal entry + next-day journal note - Carb-load day protocol: 2,400–2,600 cal window, 400–500g carbs, ≤50g fat ceiling, three-point cross-check, mode banner
Replace the inline 'Fancy Dashboard (Optional)' section with a one-line pointer to Knowledge/Jesse-Guidelines/Fancy-Dashboard-Build, which is the single source of truth. Keeps all ASCII dashboard rules intact.
… rule diet-tracking.md: - New intro describing two-layer architecture and all major features - Expanded What You Get: HTML dashboard, Coach-Notes-Log, tiered adaptive targets, carb-load protocol, alcohol enforcement - Updated vault structure: Dashboard-Fancy.html and diet-today.js at root, Diet-Logging-Flow.md, Fancy-Dashboard-Build.md, Coach-Notes-Log.md - Configuration section now references template files rather than inlining full file content; updated instruction file snippet with correct names - How It Works: replace three-view sync with two-layer architecture; add carb-load, alcohol, and weigh-in flows; document diet-today.js rewrite on every food/exercise log - Tips: update adaptive target description to tiered rates; fix file refs - New Debugging section: stale bars, field name mismatch, Chart.js errors, textContent destroying child elements cookbook.md: - Add lookup-before-advising rule for equipment with tool reference files
Creates template/Knowledge/Cookbook/Pantry/Garden.md as a living seasonal inventory with per-item harvest log tables that build multi-year harvest patterns. Items with no "Last harvest" in the current year are available for ingredient-driven meal design. Updates Cookbook-Guidelines.md: adds Pantry/ to the directory structure and updates ingredient-driven meal design step 1 to check Garden.md before other inventory sources. Updates docs/src/recipes/cookbook.md: adds Pantry/ to vault structure diagram, updates mkdir setup command, updates instruction file snippet to mention garden inventory check, and adds a "Garden & Orchard Inventory" section explaining the harvest log format, seasonal availability logic, and diet tracker integration.
…g, and missing guidelines New template files: - Projects/Diet/Journal.md and Timeline.md (entity-journal pattern) - Dashboard-Fancy.html (generalized HTML dashboard shell) - diet-today.example.js (sample data file showing the contract) - Diet-Dashboard-Display.md (read-only status display guidelines) - Sunday-Weekly-Diet-Analysis.md (weekly accountability report format) Updated: - diet-tracking.md: add proposed-diet-today.js lifecycle section, add Viewing in a Browser section (miniserve + symlinks) The HTML dashboard template is stripped of personal data and renders sections conditionally — metrics, weight chart, progress bars, and coach's notes only appear when their respective data files exist. All data files are optional except diet-today.js.
…p wizard - Macro model: floors/ceilings/windows with rationale; goal chips and a bottom legend on every bar; fat rendered as a window (red when too low). - Calorie target: exercise add-back with a tracker-overestimation haircut (discount 25%, add back 50%), replacing the tiered 7/10% formula. - Day-Style Registry: dayStyle machine field plus a canonical registry (normal, endurance, refeed, sick, carb-load, fasting); HTML STYLE_PROFILES kept in sync; back-compat resolution for old data files. - Setup wizard: new guideline deriving calorie/macro targets from BMR (Katch-McArdle when body-fat known, else Mifflin-St Jeor), inclusive sex handling, and a self-correcting calibration loop. - Time-gated low flags (default 16:00); floor-miss trend monitoring (3 of 7 days) surfaced in coach notes and the weekly report. - Docs: getting-started/setup-wizard section, macro model, calorie formula, and day styles documented; recipe contract reconciled to the targets shape.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two optional recipes — Diet & Exercise Tracking and Cookbook — that work independently but complement each other when both are enabled. Designed for any health tracking goal: weight loss, athletic training, sleep improvement, body recomposition, managing a health condition, or general wellness.
Diet & Exercise Tracking
Daily nutrition and exercise tracking with four synced views and a project journal for long-term context:
Projects/Diet/YYYY-MM-DD.mdwith structured meal tables and running totalsfood-log.xlsxandexercise-log.xlsxfor long-term trend analysis← low/← high), adaptive calorie targets after exercise, and net calorie trackingDashboard-Fancy.htmlwith Chart.js weight trend, macro bars, exercise journal, food log, progress bars, coach's notes, and body composition metrics. Static shell loads external JS data files — daily logging only rewrites small JS files, not the whole pageThe HTML dashboard can be served locally via any static file server (e.g.,
miniservewith a symlink directory to avoid exposing the full vault). See the recipe doc for setup.Project structure follows the entity-journal pattern:
Projects/Diet/Overview.md(user-defined targets and goals),Journal.md(running log), andTimeline.md(milestones). Users define their own calorie targets, macro splits, day types, weight phases, and event-prep modes — nothing is hardcoded to a specific sport or goal.Weekly accountability: Sunday routine generates a four-section report (Great, Good, Bad, Ugly) with ranked improvement suggestions based on actual data, saved to
Knowledge/Health/Weekly-Diet-Analysis/.Sample chat dashboard (training day, after lunch):
Cookbook
A living personal cookbook (unchanged from previous description — family reviews, verdict-based filing, tool references, ingredient-driven meal design).
Integration
When both are active, meal logging from tracked recipes auto-populates nutrition data, and meal suggestions consider remaining macro budget. Either works standalone.
Files
Test plan