Architecture Prompt — v6

QuranFlow Architecture Design Process — v6

What This Document Is

This is a guided design process for producing a single, implementation-ready architecture specification for the QuranFlow iOS app redesign. It walks through analysis stages that build on each other, culminating in one deep architecture proposal.

This is NOT an exploration of multiple concepts. We have already explored three architecture proposals (Weekly Rhythm, Dashboard Command Center, Guided Journey), built a mockup of the first, and reviewed it. This process takes everything we've learned and produces the definitive architecture.

Don't skip stages. Each one produces insights the next stage needs.


Execution Instructions

This process is designed to be executed as 5 sequential agents in Claude Code. Each phase is a separate agent with its own context window, maximizing depth and quality.

Directory Structure

/Users/kamran/GitHub/QuranFlow-App-Usability/
├── reviews/                              ← Source documents (READ ONLY)
│   ├── QuranFlow-User-Capability-Map.md
│   ├── PM-Discussion-Dec2-Lejla.md
│   ├── QuranFlow App - Usability & Design Audit - Nov 27.md
│   ├── QuranFlow-Architecture-Proposals.md
│   ├── DESIGN-REVIEW-of-Exploration-A.md
│   └── reference-docs/
│       ├── App-Redesign-Field-Guide-WWDC25.md
│       ├── Quran Flow Program Description (3).md
│       └── Quran Flow - program overview.md
├── reviews/prompts/
│   └── QuranFlow-Architecture-Design-Prompt-v6.md  ← This file
└── reviews/v6-output/                    ← Output directory (WRITE HERE)
    ├── phase-1-problem-brief.md          ← Agent 1 writes here
    ├── phase-2-design-principles.md      ← Agent 2 writes here
    ├── phase-3-learnings.md              ← Agent 3 writes here
    ├── phase-4-architecture.md           ← Agent 4 writes here
    └── phase-5-validation.md             ← Agent 5 writes here

Agent Execution Sequence

Each agent should be run sequentially using the Task tool with subagent_type: "general-purpose".

Agent 1 — Phase 1: Problem Synthesis

Agent 2 — Phase 2: Design Principles

Agent 3 — Phase 3: Learnings from Previous Attempt

Agent 4 — Phase 4: Architecture Specification

Agent 5 — Phase 5: Validation

After All Agents Complete

Assemble the final document from the 5 phase outputs:

Quality Notes


Your Role

You are an iOS product designer with deep expertise in information architecture, learning apps, and accessibility. You are designing a production architecture — not a concept exploration. Your output will be used directly to build high-fidelity mockups.

The Organizing Principle (Locked)

Weekly Rhythm: "The app follows my weekly learning cycle."

This principle was selected through systematic evaluation of 6 alternatives. It directly addresses the core disorientation problem and matches the program's actual structure (15-week semesters, weekly submission cycles). You are not re-evaluating this choice. You are designing the best possible architecture around it.

However, you should incorporate the strongest ideas from the other two proposals (Dashboard Command Center and Guided Journey) where they strengthen the Weekly Rhythm architecture.

What the Output Must Be

A single architecture specification document with enough detail that a designer/developer could build mockups directly from it. This means:


Design Philosophy

Before any analysis, establish the frame.

What Success Looks Like

A successful QuranFlow architecture means:

The ultimate test: No one should ever need to email asking "when does semester start?" or "what week am I on?" The app answers this instantly.

The Core Trade-off

QuranFlow serves two competing user needs:

Need Description Optimizing For
Guidance Tell me exactly what to do next Reduces anxiety, increases completion, helps beginners
Flexibility Let me explore, catch up, browse freely Supports varied schedules, empowers advanced users

The Weekly Rhythm principle leans toward guidance, but the architecture must accommodate flexibility. Be explicit about where you land on this spectrum for each screen.

Key Architectural Decisions

These are the choices that define the architecture. Take a clear stance on each and explain your reasoning:

  1. What earns a spot on the tab bar? The skeleton. Wrong choices here can't be fixed with good screens.
  2. What dominates the home screen? The first impression. Does the user see their current week? A task list? Status cards?
  3. Are submissions and feedback unified or separate? The mockup kept Submit as a standalone tab. The original spec unified it into Learn. What's right?
  4. Where does the schedule live? Currently buried. How prominent should it be?
  5. How does the app handle "you're behind"? Guilt-inducing? Encouraging? Hidden?
  6. Where does feedback history live? Its own tab? Inside the learn flow? A progress section?
  7. How does onboarding work? What happens the first time someone opens the app?

How We Validate

An architecture works if it passes these tests:


Reference Materials

Read these files in order. Each one provides a different lens on the problem.

Base path: /Users/kamran/GitHub/QuranFlow-App-Usability

# File (absolute path) Read For Key Extractions
1 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/QuranFlow-User-Capability-Map.md Task inventory, priority tags, gap analysis All [Core] tasks (these must be ≤2 taps). Section 1.4 (disorientation problem). Section 7 (gap analysis).
2 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/PM-Discussion-Dec2-Lejla.md PM perspective, undocumented features, root causes The "foolproof" requirement. Schedule buried 5 clicks deep. Accidental submissions. No TA communication.
3 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/QuranFlow App - Usability & Design Audit - Nov 27.md Screen-by-screen problems, P0 issues, severity ratings 6 P0 issues. Current screen inventory. What's broken and how badly.
4 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/reference-docs/Quran Flow Program Description (3).md The weekly rhythm, student journey, program structure The 15-week cycle. The submission → feedback loop. Level progression. Year 2 differences.
5 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/reference-docs/Quran Flow - program overview.md Additional program context Supplementary program details.
6 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/reference-docs/App-Redesign-Field-Guide-WWDC25.md Design principles, diagnostic tests, quality bar The 3 Questions. Tab worthiness test. Squint test. Screen anatomy. Progressive disclosure.
7 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/QuranFlow-Architecture-Proposals.md Previous architecture proposals (A, B, C) What was proposed. What was recommended. Trade-offs identified. Elements from B and C worth preserving.
8 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/DESIGN-REVIEW-of-Exploration-A.md Mockup implementation assessment What worked (~80% alignment). What's missing. Gap analysis. Coverage stats. Specific screen-by-screen feedback.

Phase output files (written during execution, read by subsequent phases):

# File (absolute path) Written By Read By
P1 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-1-problem-brief.md Agent 1 Agents 2, 3, 4
P2 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-2-design-principles.md Agent 2 Agents 3, 4
P3 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-3-learnings.md Agent 3 Agent 4
P4 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-4-architecture.md Agent 4 Agent 5
P5 /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-5-validation.md Agent 5 Final assembly

Phase 1: Synthesize the Problem

Goal: Produce a clear, fresh problem statement and requirements summary by reading the source documents.

Agent reads: Files #1-5 from the reference materials table Agent writes: /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-1-problem-brief.md

Tasks

  1. Read files #1-5 from the reference materials table
  2. Synthesize into a problem brief in your own words

Output: Problem Brief

Write a concise brief covering:

The Disorientation Problem (2-3 sentences)

The Weekly Rhythm (bullet list)

Task Inventory Organize all [Core] and [Supporting] tasks from the Capability Map into a table:

Priority Task Current State
[Core] ... ...

Hidden Features Table

Feature Current Location Why It's Hidden
... ... ...

Student Lifecycle Phases Identify and briefly describe each phase a student goes through, from enrollment to graduation/Year 2 transition.


Phase 2: Design Principles & Quality Bar

Goal: Internalize the WWDC25 Field Guide principles and establish the quality bar this architecture must meet.

Agent reads: File #6 (WWDC25 Field Guide) + Phase 1 output (P1) Agent writes: /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-2-design-principles.md

Tasks

  1. Read file #6 (WWDC25 Field Guide)
  2. Read the Phase 1 problem brief for context
  3. Apply the diagnostic tests to QuranFlow's current problems (not the current app — you're diagnosing the problems the architecture must solve)
  4. Establish specific, testable quality criteria

Output: Design Principles Summary

The 3 Questions Test (What the Architecture Must Answer)

Question The Architecture Must Provide How
Where am I? ... ...
What can I do? ... ...
Where can I go? ... ...

Tab Worthiness Criteria Establish the rules you'll use to evaluate tab bar candidates.

Content Principles Which WWDC25 principles are most important for QuranFlow and why?


Phase 3: Learn from Previous Attempt

Goal: Extract concrete, actionable learnings from the existing Proposal A and its mockup implementation.

Agent reads: Files #7-8 (Architecture Proposals, Design Review) + Phase 1 and 2 outputs (P1, P2) Agent writes: /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-3-learnings.md

Tasks

  1. Read Phase 1 and Phase 2 outputs for context
  2. Read file #7 (Architecture Proposals) — focus on Proposal A but note valuable elements from B and C
  3. Read file #8 (Design Review of Exploration A)
  4. Synthesize what worked, what didn't, and what questions emerged

Output: Learnings Report

What Worked in Proposal A (Preserve These) List the specific design decisions and patterns that proved effective in the mockup.

What Didn't Work (Fix These) List the specific gaps, misalignments, and weaknesses the design review identified.

Elements from Proposals B and C Worth Incorporating What ideas from the rejected proposals should be folded into the architecture?

Open Design Questions List the unresolved questions that emerged from the mockup experience. These are the decisions Phase 4 must make.

Coverage Gaps Note which areas of the User Capability Map are at 0% or low coverage and need to be designed in Phase 4.


Phase 4: Design the Architecture

Goal: Produce the definitive architecture specification for QuranFlow.

Principle: Weekly Rhythm — "The app follows my weekly learning cycle."

Scope: The complete student lifecycle, from pre-semester through graduation.

Agent reads: ALL source files (#1-8) + ALL previous phase outputs (P1, P2, P3) Agent writes: /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-4-architecture.md

IMPORTANT: This is the most critical phase. The agent should read the three previous phase outputs FIRST to absorb the problem synthesis, design principles, and learnings. Then read whichever source files it needs to reference directly. The architecture must resolve all open questions identified in Phase 3.

4.1 Concept & Philosophy (1 page)

Articulate the architecture's organizing principle in plain language:

4.2 Navigation Structure

Tab Bar Design:

Tab Icon Suggestion Contains Why Tab-Worthy
... ... ... ...

For each tab:

Justify your tab bar against the Tab Worthiness Test.

4.3 Screen Specifications

For EACH screen in the app, provide:

[Screen Name]

Purpose: One sentence — what is this screen for?

Content (top to bottom): Describe what the user sees in the order they'd scan it. Be specific about:

States:

State What Changes Example
Default / Active Week ... Week 8, lesson available, no submission yet
Submission Pending ... Recording sent, awaiting feedback
Feedback Ready ... New feedback badge, CTA to review
All Done for Week ... All tasks complete, relaxed state
Behind ... Missed submission, encouraging nudge
Pre-Semester ... Before Week 1, countdown and orientation
Empty / First Use ... No data yet

Behaviors:

Connection to other screens:

4.4 Critical User Flows

Walk through these scenarios step-by-step. For each flow:

Flow 1: First-time student opens the app (onboarding)

Flow 2: Watch this week's lesson

Flow 3: Submit weekly recording

Flow 4: Check and respond to feedback

Flow 5: Find and join a live session

Flow 6: Catch up after missing a week

Flow 7: Pre-semester experience

Flow 8: End-of-semester assessment and graduation

4.5 Surfacing Strategy

Show how EVERY currently-hidden feature becomes findable:

Currently Hidden New Location Taps to Reach How User Discovers It
Quran Coach (TA)
Weekly schedule
Session recordings
Mushaf font setting
Support/help
Feedback archives
Student level
Submission history
Semester start date
Resources

4.6 State Management

Describe how the app's state changes in response to events:

Temporal Events:

User Actions:

External Events:

For each event, describe: what changes on which screens, what notifications appear, what state indicators update.

4.7 Edge Cases & Empty States

Design for these specific scenarios:

Pre-Semester Student:

Week 1 Student (First Day):

Caught-Up Student:

Behind Student:

End-of-Semester Student:

Year 2 Transition:

4.8 Onboarding Flow

Design the complete first-time user experience:

What triggers it: First app launch after enrollment

What it must accomplish:

  1. Orient the student (what is QuranFlow, how does it work)
  2. Introduce their Quran Coach
  3. Set up mushaf font preference (default should be correct, but give option)
  4. Show semester timeline and when things start
  5. Explain the weekly cycle (briefly)
  6. Set notification preferences

Constraints:

4.9 End-of-Semester & Graduation

Design the experience for the final weeks:

EOC Assessment:

Results:

Graduation:


Phase 5: Validate the Architecture

Goal: Verify the architecture against all quality criteria before finalizing.

Agent reads: Phase 4 output (P4) + File #1 (User Capability Map) + File #6 (WWDC25 Field Guide) Agent writes: /Users/kamran/GitHub/QuranFlow-App-Usability/reviews/v6-output/phase-5-validation.md

Tasks

  1. Read the Phase 4 architecture specification thoroughly
  2. Read the User Capability Map for the [Core] task checklist
  3. Read the WWDC25 Field Guide for the validation tests
  4. Run the validation checklist
  5. Verify [Core] task coverage
  6. Check P0 issue resolution
  7. Audit tap counts

Output: Validation Report

Validation Checklist

Test Result Evidence
Orientation test ✓/✗ How the architecture answers "what week am I on?"
First task test ✓/✗ How a new user completes their first submission
Return test ✓/✗ What a returning user sees without scrolling
Recovery test ✓/✗ Path to support (tap count)
Tab bar test ✓/✗ Each tab is a destination
3 Questions test ✓/✗ Home screen answers all three
Lifecycle test ✓/✗ Pre-semester, active, and end-of-semester handled
Behind test ✓/✗ Behind student experience

[Core] Task Coverage

Task Screen Taps to Reach Status
Know what week I'm on
Know when semester starts
Access this week's lesson
Watch instruction videos
View Quranic text
Record my recitation
Submit to Quran Coach
Know when feedback is ready
Listen to TA feedback
See weekly schedule
Know timezone/timing
Join a live session
Understand app structure
Receive/act on notifications

P0 Issues Resolution

P0 Issue How Architecture Addresses It
Video playback failure
Missing submission history
Broken notifications
Non-standard Quranic font
Inadequate profile
No timezone on live sessions
Feedback hard to find

Tap Count Audit

Action Target Actual Pass?
All [Core] tasks ≤2 taps
Find support ≤2 taps
Find schedule 1 tap
Submit recording ≤4 taps
Check feedback ≤3 taps

Final Deliverable Structure

The complete output should be organized as:

# QuranFlow Architecture Specification v2

## Executive Summary
[1 page: the architecture at a glance — tab bar, organizing principle, how it solves disorientation]

## Problem Brief
[Output from Phase 1]

## Design Principles
[Output from Phase 2]

## Learnings from Previous Attempt
[Output from Phase 3]

## Architecture Specification

### Concept & Philosophy
[Section 4.1]

### Navigation Structure
[Section 4.2]

### Screen Specifications
[Section 4.3 — this will be the longest section]

### Critical User Flows
[Section 4.4]

### Surfacing Strategy
[Section 4.5]

### State Management
[Section 4.6]

### Edge Cases & Empty States
[Section 4.7]

### Onboarding
[Section 4.8]

### End-of-Semester & Graduation
[Section 4.9]

## Validation Report
[Output from Phase 5]

## Appendix: Source Material Key Extracts
[Brief reference to key data points from each source document]

Process Checklist