Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / education / AGENTS.md

AGENTS.md3.7 KiBRenderedCodeRaw
1# AGENTS.md — education/ (':education')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `education/` + allowed shared modules. Do not root-scan.
4
5_Install: ./install education (dev by default)._
6<!-- last-reviewed: 2026-10-16 -->
7- Gradle: :education / dir: education/
8- Package roots present: ui, data
9- Entry files: MainActivity.kt + EducationApplication.kt (no Route.kt — shell + course/unit/lesson/quiz flow)
10- Deps: :library:room, :youpipe:extractor, :library:network
11- Metadata: metadata_data/education.md (present)
12- Rust: no / screenshotTest: yes
13
14## Overview
15**Purpose:** Kids' learning app — age-banded K2 + explorer curriculum (lessons, quizzes, tracing, drag-match) with badges/streaks, parent gate, offline progress; video lessons stream via `:youpipe:extractor`.
16**Key features:** Bundled curriculum (`content/` model + validator) → course/unit/lesson/quiz pages; learner progress + deadlines in Room; video player pages stream Khan/YouTube; narrator + downloader helpers.
17**Entry points:** `EducationApplication.kt` → `MainActivity.kt` → `ui/Shell.kt` → `ui/HomePage.kt` → `util/EducationViewModel.kt` → `data/EducationRepository.kt`.
18**Gotchas:**
19- `content/` and `util/` are NOT closed package roots — pending migration; don't add more files there
20- Curriculum content is validated (`ContentValidator`) — content edits must pass validation, not just compile
21- Video is the only network use — everything else must work fully offline (classroom mode)
22
23## Key files
24### Root — app init + entry (no Route.kt)
25- com/vayunmathur/education/EducationApplication.kt
26- com/vayunmathur/education/MainActivity.kt
27### content/ — curriculum model (pending migration to closed roots)
28- com/vayunmathur/education/content/ContentModel.kt
29- com/vayunmathur/education/content/ContentRepository.kt
30- com/vayunmathur/education/content/ContentValidator.kt
31- com/vayunmathur/education/content/Question.kt
32### data/ — learner progress (Room)
33- com/vayunmathur/education/data/EducationDatabase.kt
34- com/vayunmathur/education/data/EducationRepository.kt
35- com/vayunmathur/education/data/Learner.kt
36- com/vayunmathur/education/data/SkillProgress.kt
37- com/vayunmathur/education/data/Deadline.kt
38### util/ — ViewModel + helpers (pending migration to closed roots)
39- com/vayunmathur/education/util/EducationViewModel.kt
40- com/vayunmathur/education/util/EducationUiContract.kt
41- com/vayunmathur/education/util/EducationDownloader.kt
42- com/vayunmathur/education/util/EducationAchievements.kt
43- com/vayunmathur/education/util/Narrator.kt
44- com/vayunmathur/education/util/VideoExtractor.kt
45### ui/ — shell, courses, K2, quizzes, video, parents
46- com/vayunmathur/education/ui/Shell.kt
47- com/vayunmathur/education/ui/HomePage.kt
48- com/vayunmathur/education/ui/CoursePage.kt
49- com/vayunmathur/education/ui/UnitPage.kt
50- com/vayunmathur/education/ui/LessonPage.kt
51- com/vayunmathur/education/ui/QuizPage.kt
52- com/vayunmathur/education/ui/QuizQuestionInputs.kt
53- com/vayunmathur/education/ui/ResultsPage.kt
54- com/vayunmathur/education/ui/ExplorerHomePage.kt
55- com/vayunmathur/education/ui/ExplorerCoursePage.kt
56- com/vayunmathur/education/ui/K2HomePage.kt
57- com/vayunmathur/education/ui/K2LessonPage.kt
58- com/vayunmathur/education/ui/K2QuizPage.kt
59- com/vayunmathur/education/ui/K2RewardPage.kt
60- com/vayunmathur/education/ui/K2DragMatch.kt
61- com/vayunmathur/education/ui/TracingCanvas.kt
62- com/vayunmathur/education/ui/VideoPlayerPage.kt
63- com/vayunmathur/education/ui/BadgesPage.kt
64- com/vayunmathur/education/ui/ParentPage.kt
65- com/vayunmathur/education/ui/ParentGatePage.kt
66- com/vayunmathur/education/ui/Common.kt
67
68## Verify (this module only)
69```
70./gradlew :education:compileDevKotlin
71./gradlew :education:lint
72./gradlew :education:checkMetadata
73```