Build a modern, cross-platform Progressive Web App (PWA) called "MicroHabit" (or similar) designed to teach users micro-skills in 5 to 20 days through daily 5-minute actionable practice sessions.
### 1. CORE CONCEPT & VALUE PROPOSITION
- **Micro-skills:** Skills that take between 5 to 20 days to learn (e.g., How to Journal Clearly, Card Shuffling, Breathwork, Speed Reading Basics, Touch Typing, Public Speaking Warmups).
- **Daily Structure:** Each skill is broken down into sequential 5-minute daily guided practice sessions based on evidence-backed learning frameworks (Spaced Repetition, Micro-learning, Active Recall).
- **Distinctive Color Themes:** Every individual skill must dynamically assign and apply a unique, dedicated color palette across its entire UI workflow (cards, timers, progress rings, callouts).
---
### 2. CORE FEATURES & KEY MODULES
#### A. Micro-Skill Discovery & Library
- Library of categorized micro-skills with filters (e.g., Mindset, Dexterity, Productivity, Communication).
- Skill Cards showing: Skill Title, Estimated Days (5–20 days), Dynamic Skill Color, Difficulty, and "Proven Framework" badge.
- Detail View: Web-approved, scientifically backed method breakdown (e.g., "The Feynman Technique for Journaling") and curriculum overview.
#### B. Daily 5-Minute Guided Practice Engine (Interactive Session)
- Full-screen distraction-free player for the daily 5-minute session.
- **Stage 1 (Minute 1):** Quick Learning Concept / Web-approved technique (Text + visual/gif/video demo).
- **Stage 2 (Minutes 2-4):** Interactive Active Practice (Live 3-minute timer with progress ring, ambient sound toggle, and step-by-step checklist).
- **Stage 3 (Minute 5):** Daily Reflection & Log (Quick note/journaling box or check-in prompt).
- **Completion State:** Confetti animation, updated streak, and shareable progress card.
#### C. Dynamic Color-Coding System
- Database schema supports `theme_color` (hex value/CSS variables) per skill.
- When entering a skill context, CSS variables (`--primary-skill-color`, `--accent-skill-color`) update seamlessly across headers, buttons, timers, and progress indicators.
---
### 3. USER FLOWS & UX SPECIFICATION
#### Flow 1: Onboarding
1. **Welcome Screen:** High-impact value proposition.
2. **Goal Selection:** User selects 1–2 initial categories of interest.
3. **First Skill Pick:** Prompt user to select their first 5-day or 10-day micro-skill.
4. **Schedule Set:** Set daily reminder notification time.
5. **Account Creation:** Auth via Google/Apple or Email (Clerk / Supabase Auth).
#### Flow 2: Dashboard & Daily Hub
- **Active Skill Hero Card:** Large hero card in the skill's specific color displaying current day (e.g., "Day 3 of 7"), remaining minutes, and a prominent "Start Today's 5-Min Session" CTA button.
- **Streak Tracker:** Flame icon with current active days, heat map grid, and total skills mastered.
- **Skill Library:** Grid of other locked/unlocked micro-skills.
#### Flow 3: Monetization & Payments
- **Freemium Model:**
- Free Tier: Access to 3 starter micro-skills, basic streak tracking.
- Pro Tier ($4.99/mo or $39.99/yr): Unlimited skills, AI personalized skill generator, custom reminders, offline mode.
- **Paywall Triggers:** Unlocking premium skills or attempting to start a second simultaneous skill.
---
### 4. MODERN UI/UX DESIGN SYSTEM & PRINCIPLES
- **Design Style:** Clean, minimalist, modern SaaS aesthetic with dark/light mode toggle.
- **Visuals:** High-contrast typography (Inter/Geist font), smooth micro-interactions (Framer Motion), soft rounded corners (`rounded-2xl`).
- **Mobile-First Responsive Layout:** Bottom navigation bar on mobile (Home, Discover, Progress, Profile) and side drawer on desktop.
---
### 5. RECOMMENDED TECH STACK (FOR LONG-TERM SCALABILITY)
Generate the codebase structured for the following modern stack:
- **Frontend Framework:** Next.js 14+ (App Router, React 18, TypeScript) or React Native with Expo (if mobile-first).
- **Styling & UI:** Tailwind CSS, Shadcn/UI, Lucide Icons, Framer Motion.
- **Backend & Database:** Supabase (PostgreSQL for user data, skill schemas, active enrollment, and completion logs) with Row Level Security (RLS).
- **Authentication:** Clerk or Supabase Auth (OAuth + Passwordless Magic Link).
- **State & Data Fetching:** TanStack React Query + Zustand (for active timer states).
- **Payments:** Stripe Checkout / RevenueCat (for mobile in-app subscriptions).
- **Automations & Emails:** Resend (daily reminder emails) + n8n or Supabase Cron (scheduled notification triggers).
- **Analytics:** PostHog (event tracking for daily session completion rates).
---
### 6. DATABASE SCHEMA SPECIFICATION (SUPABASE POSTGRES)
Provide implementation logic and database tables for:
1. `profiles`: `id`, `email`, `streak_count`, `last_active_date`, `is_pro`
2. `skills`: `id`, `title`, `description`, `duration_days`, `category`, `color_hex`, `proven_method_source`
3. `skill_days`: `id`, `skill_id`, `day_number`, `instruction_text`, `practice_prompt`, `timer_seconds`
4. `user_skill_progress`: `id`, `user_id`, `skill_id`, `current_day`, `completed_at`, `status` (`in_progress`, `completed`)
Build out the initial React components for the Dashboard, Daily Session Player with Timer, and Skill Discovery page with working Tailwind CSS styling.
Welcome Screen
Comments (0)
No comments yet. Be the first!
Sign in to leave a comment
Preview data'Changes will reset when this preview closes.'
MindsetIn progress
Micro-skill
How to Journal Clearly
7 daysProgramme
BeginnerLevel
MindsetTrack
3of 7 days
Proven frameworkMethod source: The Feynman Technique
Learning Path
Curriculum Overview
One five-minute session per day, each building on the last. Expand any day to see the concept, the objective, and the practice prompt.
You will set up a single dedicated page and learn the three-line structure that keeps a journal useful instead of decorative.
1Pick one fixed time and place for the daily page.
2Open with a three-line frame: what happened, what it meant, what is next.
3Write the date and one sentence of context before anything else.
Today’s practice
Write a three-line entry about today. Keep the pen moving the whole five minutes and do not edit as you go.
7 days totalA Beginner Mindset path
35 minutes5 minutes of practice each day
In progressDay 3 of 7 reached
Progress3 / 7 days
Evidence-backed
Proven Framework
The learning method behind this skill, and the principles that keep each five-minute session effective.
The Feynman Technique for How to Journal Clearly
Learning method
How to Journal Clearly is built on The Feynman Technique, an evidence-backed approach that turns a large skill into a short daily practice. Each session follows the same structure — concept, guided practice, reflection — so the habit compounds. The routine is designed to stay honest about what you can already explain, and it never asks for more than five focused minutes at a time.
SourceThe Feynman TechniqueAn explanation-first study method built around teaching concepts back in plain language.
Key Principles
Explain it simplyWrite each entry as if teaching the idea to someone who has never heard it before.
Find the gapsNotice where an explanation stalls or turns vague, and mark that as the day’s focus.
Return to the sourceRevisit the day’s prompt before writing to ground the entry in one clear idea.
Refine in plain languageRewrite the rough passage until it reads clearly without any jargon.
7 days at one session per day · about 5 minutes each
Your session
Ready for day 4?
7 days at 5 focused minutes each — today’s guided practice is ready when you are.
No comments yet. Be the first!