我是学霸 — AI 辅助学习系统
Overview
Deploy and customize the "我是学霸" (I Am a Top Student) learning system. This skill provides the complete project files, teacher prompt rules, and setup guides needed to run a local AI-assisted learning platform for children.
The system includes:
- Browser Dashboard (dashboard.html) — Visual progress tracking, review tasks, topic graphs
- Data API (data_api.py) — Flask backend for data read/write
- AI Teacher Prompts (teachers/*.md) — Subject-specific persona prompts controlling how the AI tutors
- Ebbinghaus Review — Automatic spaced repetition scheduling (1-2-4-7-15-30 days)
When to Use
- Setting up the learning system for the first time
- Adding a new subject/teacher to the system
- Writing or editing AI teacher prompts
- Checking learning progress or review schedules
- Conducting diagnostic assessments
- Customizing teaching rules or subject positioning
Quick Start
To set up the system from the bundled assets:
- Copy all files from
assets/to a new project directory - Create the Windows launcher: run
create_launcher.bat(see script below) or manually create启动看板.bat - Install Python dependencies:
pip install flask flask-cors - Double-click
启动看板.bat(Windows) or runpython data_api.py - Open browser to
http://localhost:5177/ - Start learning via the dashboard
For detailed setup instructions, load references/setup-guide.md.
File Structure
assets/
├── dashboard.html # Visual learning dashboard
├── data_api.py # Flask API server
├── README.md # Project readme
├── 系统搭建指南.md # Detailed setup guide
├── teachers/
│ ├── math.md # Math teacher prompt
│ ├── chinese.md # Chinese teacher prompt
│ ├── english.md # English teacher prompt
│ └── science.md # Science teacher prompt
├── system/
│ ├── teacher-prompt-rules.md # Rules for writing teacher prompts
│ └── teacher-prompt-template.md # Blank template for new subjects
├── records/ # Learning records (per subject)
│ ├── math/
│ ├── chinese/
│ ├── english/
│ └── science/
└── review/ # Review scheduling data
├── next-review.json
├── errors-review.json
└── schedule.md
> Note: 启动看板.bat (Windows one-click launcher) is not bundled because some platforms block .bat uploads. Create it during initialization using the script below.
Initialization Script
When helping a user initialize the project, create the Windows launcher 启动看板.bat in the project folder with this content:
@echo off
chcp 65001 >nul
cd /d "%~dp0"
start "" "http://localhost:5177/"
python data_api.py
pause
For Mac/Linux users, create a shell script start.sh instead:
#!/bin/bash
cd "$(dirname "$0")"
python data_api.py &
sleep 2
open "http://localhost:5177/"
Adding a New Subject
To add a new subject (e.g., history, art):
- Load
assets/system/teacher-prompt-rules.mdfor the full specification - Copy
assets/system/teacher-prompt-template.mdas the starting point - Fill in all 9 required modules following the rules
- Save as
assets/teachers/<subject>.md - Create
assets/records/<subject>/directory withmastered.mdanderrors.md - Register the subject in
dashboard.html
Subject Positioning Types
Each subject must choose one positioning type:
| Type | Description | Example |
|---|---|---|
| 跳级衔接型 (Skip-ahead) | Lower grade mastered, teach higher directly | Math |
| 拓展提升型 (Extension) | Basics exist, need deepening | Chinese |
| 书面内容导向型 (Written-only) | Only reading/writing, no listening/speaking | English |
| 兴趣驱动型 (Interest-driven) | No fixed syllabus, follow curiosity | Science |
Global Constraints
All teacher prompts must respect these prohibitions:
| Subject | Never Teach |
|---|---|
| 语文 (Chinese) | Stroke order, writing sequence, grid placement |
| 英语 (English) | Pronunciation, phonics, listening, speaking, stroke order, grid placement |
| 数学 (Math) | Formulas/theorems not yet in the textbook |
| 科学 (Science) | Rote memorization, standard answers |
Resources
references/setup-guide.md
Complete installation and usage guide. Load this when helping a user set up the system for the first time.
assets/system/teacher-prompt-rules.md
The rule specification for writing teacher prompts. Load this when the user wants to add or edit a subject's teacher prompt.
assets/system/teacher-prompt-template.md
A blank template with placeholders for each of the 9 required modules. Copy this to create a new teacher prompt.
assets/teachers/*.md
Existing teacher prompts (math, chinese, english, science) that serve as examples.