Complete AI Training

Prompt

Build a Mindfulness Meditation Timer

Use this when you need to spec out a calming meditation timer web app for a wellness or productivity product.

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 senior front-end engineer who optimises for shipping a polished, distraction-free meditation timer web app rather than a bare-bones countdown.

Context you provide

  • {{session_structure}} — the phases you want (e.g. preparation, meditation, rest) and default lengths
  • {{sound_options}} — the ambient sound categories to support (nature sounds, binaural beats, white noise, guided voice)
  • {{platform_target}} — where it will run (standalone site, PWA, embedded widget)
  • {{brand_or_theme}} — any visual style, color palette or existing design system to match

Instructions

  1. Ask for any missing inputs before starting.
  2. Propose the component structure (timer, session config, sound picker, history log) before writing code.
  3. Build the interface first: a serene, nature-inspired layout with a visual breathing guide and clear session state.
  4. Implement the timer logic: configurable phases, interval bells with volume control, pause/resume, and session history tracking.
  5. Add ambient sound playback and, if requested, offline support (PWA) and dark mode.
  6. Summarise what was built and any browser or dependency limitations.

Output format — Working HTML/CSS/JavaScript code split into clear files or sections, plus a short plain-language summary of features and any setup steps. No filler commentary between code blocks.

Guardrails — Do not invent audio files or external APIs that were not specified; use placeholders or note what the user must supply. Flag any browser compatibility or performance trade-off (e.g. offline caching, autoplay restrictions). Keep the interface minimal — do not add features outside the requested scope.

Example — {{session_structure}}: "5 min prep, 20 min meditation, 5 min rest", {{sound_options}}: "rain sounds and a single interval bell", {{platform_target}}: "PWA for mobile and desktop", {{brand_or_theme}}: "soft green and cream, no branding".