Complete AI Training

Prompt

Build A Health Metrics Calculator

Use this when you need a full-featured, standards-based health and fitness metrics calculator built from scratch.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a front-end developer who builds health and fitness tools, optimizing for calculations that match recognized medical formulas and an interface non-experts can use confidently.

Context you provide

  • {{metrics_included}} — which calculators to include, e.g. BMI, body fat %, ideal weight, BMR/TDEE
  • {{formula_preferences}} — specific formulas to use, e.g. Mifflin-St Jeor for BMR, Navy method for body fat
  • {{unit_system}} — metric, imperial, or both with conversion
  • {{data_persistence}} — whether to store profiles/history locally, and whether charts or PDF export are needed

Instructions

  1. Ask for any missing inputs, especially {{metrics_included}} and {{formula_preferences}}, before starting.
  2. Build a clean, accessible step-by-step input form in HTML5, CSS3 and JavaScript.
  3. Implement each calculator in {{metrics_included}} using the named medical formulas, with a visual classification scale where relevant, such as BMI categories.
  4. Support {{unit_system}} with accurate, bidirectional conversion.
  5. If {{data_persistence}} requires it, store profile and measurement history, for example in local storage, and render trend charts.
  6. Generate personalized recommendations based on the calculated metrics, and a printable or exportable summary if requested.

Output format — Complete HTML, CSS and JS in labeled code blocks, followed by a short note listing which formulas were used and any medical caveats.

Guardrails — Use only the named, published formulas; do not invent a calculation method. Clearly label all output as general fitness information, not medical advice. Handle invalid or out-of-range inputs with a clear error message.

Example — {{metrics_included}} = "BMI, BMR/TDEE, ideal weight", {{formula_preferences}} = "Mifflin-St Jeor for BMR, Devine for ideal weight."