@celljs/ta-edu 0.0.0-stage → 4.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md ADDED
@@ -0,0 +1,13 @@
1
+ # Cell - Ta Edu
2
+
3
+ The education package of Ta (built in and off by default, `pi.offByDefault`: turned on by picking Education when Ta first asks, from Industries in the market, or in Settings → Extensions): an assistant each for students, parents, teachers and class teachers of primary and secondary school. Design and research of the field: [docs/design/ta-edu.md](../../docs/design/ta-edu.md).
4
+
5
+ - **Who you are**: asked once above the double's message box (student, parent, teacher, class teacher, then the stage), or in Settings → Ta → Education, with subjects and textbooks; several may be picked.
6
+ - **Assistants**: each identity picked has a row of the list of conversations (`registerHomeItems`, pinned at first): Study buddy, Homework coach, Teaching assistant, Class assistant. Opened, it is that identity's own conversation (`group: @celljs/ta-edu`, its role marked `[ta:edu]`, written from the stage, subjects and textbooks set now), always the same one.
7
+ - **The + menu** of each assistant's conversation has what it does most (`registerComposerAddon`).
8
+ - **Quiz cards** (```ta-quiz`): choice, true or false, fill in the blank, answered in the card and checked at once; wrong answers go to the mistakes, asked again in another form after 1, 3, 7, 14 and 30 days, the student's row saying how many are due today. A teacher's set (`reveal: true`) shows its answers.
9
+ - **Learning cards** (```ta-learning`): mastery by point, weak points, what to do next as buttons.
10
+ - **Skills**: edu-tutor, edu-quiz, edu-parent, edu-grading, edu-lesson, edu-homeroom.
11
+ - **Safety**: a primary pupil uses the study buddy once a parent or teacher turned it on; no homework written for students; a crisis is referred, not handled; what is of students and families stays on this computer.
12
+
13
+ Kindergarten and university (with graduate school) are other packages.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # Cell - Ta Edu
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Ta 的教育行业包(随 Ta 内置、默认关闭:`pi.offByDefault`;首次在分身对话里选「教育」,或在扩展市场的「行业」、设置 → 扩展 里开启):给中小学里的学生、家长、老师、班主任各一个助手。设计与行业调研见 [docs/design/ta-edu.md](../../docs/design/ta-edu.md)。
4
+
5
+ - **身份**:分身对话的输入框上方问一次"你是?"(学生 / 家长 / 老师 / 班主任)和学段(小学 / 初中 / 高中),也可以在 设置 → Ta → 教育 里改,可多选,并填学科、教材版本。
6
+ - **助手**:选了的身份在对话列表里各有一行(`registerHomeItems`,默认置顶):学习伙伴、辅导助手、教学助手、班级助手。点开是这个身份自己的对话(`group: @celljs/ta-edu`,角色带 `[ta:edu]` 标记,按当前的学段、学科、教材写成),以后总是回到这一个。
7
+ - **+ 菜单**:每个助手的对话里有它常做的事(`registerComposerAddon`),例如学生的拍题讲解、考考我、复习错题,老师的批改作业、出一套题、试卷分析、每周学情小结(Ta 建成定时任务)。
8
+ - **题目卡**(```ta-quiz`):选择、判断、填空,在卡片里作答,马上判对错并显示讲解;答错的进错题本,隔 1、3、7、14、30 天出变式题再考(间隔复习),学生那一行显示今天该复习几道(带黄点)。全部做完有"讲讲我错的"。老师出的题 `reveal: true`,直接显示答案。
9
+ - **学情卡**(```ta-learning`):每个知识点的掌握程度、薄弱点、接下来可以做的事(按钮)。
10
+ - **技能**:edu-tutor(引导式讲题)、edu-quiz(出题与两种卡片)、edu-parent、edu-grading(批改与试卷分析)、edu-lesson(教学设计)、edu-homeroom(家长沟通、评语、班会、通知)。
11
+ - **安全**:小学生使用学习伙伴要家长或老师确认开启(《中小学生成式人工智能使用指南(2025 年版)》);学生不代写作业;心理危机只转介不处理;学生、成绩、家庭的信息只在本机。
12
+
13
+ ## 数据
14
+
15
+ 包数据(`pi.storage`):`settings`(身份、学段、学科、教材、是否允许小学生、是否问过)、`chats`(每个身份的会话文件)、`mistakes`(错题,最多 300 道)、`answers`(卡片里答过的,最近 200 张卡)。
16
+
17
+ 幼儿园和大学(含研究生)的身份与要做的事差别大,各自另做一个包。
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "@celljs/ta-edu",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "4.26.0",
4
+ "description": "A pi package for Ta: school education, an assistant for students, parents, teachers and class teachers, question cards with spaced review of mistakes",
5
+ "keywords": [
6
+ "pi-package",
7
+ "ta-industry"
8
+ ],
9
+ "homepage": "https://github.com/cellbang/ta",
10
+ "bugs": {
11
+ "url": "https://github.com/cellbang/ta/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/cellbang/cell.git"
16
+ },
17
+ "license": "MIT",
18
+ "files": [
19
+ "web",
20
+ "skills",
21
+ "!**/*.map"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc -b && bun build web-src/index.tsx --format esm --target browser --outfile web/index.js",
25
+ "clean": "rm -rf lib web *.tsbuildinfo",
26
+ "test": "bun test ./lib",
27
+ "watch": "tsc -b -w --preserveWatchOutput"
28
+ },
29
+ "devDependencies": {
30
+ "@celljs/ta-protocol": "4.26.0",
31
+ "@celljs/ta-web": "4.26.0",
32
+ "@types/react": "^19.3.0"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "pi": {
38
+ "title": {
39
+ "en": "Education",
40
+ "zh-CN": "教育",
41
+ "zh-TW": "教育",
42
+ "ja-JP": "教育"
43
+ },
44
+ "summary": {
45
+ "en": "For school: a study buddy that guides students to work it out, a coach for parents, help for teachers with marking, questions and test analysis, and for class teachers with parents and report comments.",
46
+ "zh-CN": "给学校里的人用:引导学生自己做出来的学习伙伴,帮家长看懂作业的辅导助手,帮老师批改、出题、分析试卷,帮班主任回家长消息、写评语。",
47
+ "zh-TW": "給學校裡的人用:引導學生自己做出來的學習夥伴,幫家長看懂作業的輔導助手,幫老師批改、出題、分析試卷,幫班導師回家長訊息、寫評語。",
48
+ "ja-JP": "学校のみんなに:自分で解けるまで導く学習パートナー、宿題が分かる保護者サポート、採点・出題・テスト分析を手伝う授業アシスタント、保護者対応や所見を手伝うクラスアシスタント。"
49
+ },
50
+ "icon": "BookOpen",
51
+ "web": [
52
+ "./web/index.js"
53
+ ],
54
+ "skills": [
55
+ "./skills"
56
+ ],
57
+ "offByDefault": true
58
+ }
59
+ }
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: edu-grading
3
+ description: Helps a teacher mark homework and tests (photos of students' work, a score sheet of a test), find the causes of mistakes, what the class shares and who needs attention, and write the outline to go over it in class or a report of a test. Use it whenever a teacher wants work marked or a test or class analysed.
4
+ ---
5
+
6
+ # Marking and analysis
7
+
8
+ AI counts, the teacher decides: say what you are sure of and what you are not, and leave the judgement to the teacher.
9
+
10
+ ## Marking work (photos)
11
+
12
+ 1. Transcribe each student's answers; say which parts are unreadable rather than guessing.
13
+ 2. Each question: right, wrong or partly right (with the points of the teacher's marking scheme when given). For open answers (essays, proofs) give the points met and missed, and a score only if the teacher gave the rubric.
14
+ 3. Causes of mistakes, grouped: the concept not understood; a method not mastered; reading the question; calculation; writing (steps, units, form).
15
+ 4. What the class shares: the questions most got wrong and why; the students who need help (by name only as the teacher gave them).
16
+ 5. An outline to go over it: the points in order, a question to start each, a variation to check, what to give for homework.
17
+ 6. A `ta-learning` card of the class's mastery by point when there are enough answers.
18
+
19
+ ## A test (a score sheet)
20
+
21
+ Read the file in the working directory (Excel, CSV) yourself, with a script when it is large. Then:
22
+
23
+ - Each question: score rate, and discrimination (the top 27 % against the bottom 27 %) when there are students' scores by question.
24
+ - By point and by class: where the year group is weak, which class differs and on what.
25
+ - Students: those near a grade boundary (the teacher says which), those whose results dropped, by name only as in the file.
26
+ - What to do: what to go over, which students to group, which questions to set (offer a `ta-quiz` set in levels).
27
+
28
+ Keep the data on this computer; write the report as a file only when the teacher asks.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: edu-homeroom
3
+ description: Helps a class teacher with the work around the class (replies to parents' messages, report comments, a class meeting, a notice to parents, a talk with a student, a record of what happened). Use it whenever a class teacher asks for help with parents, students or the running of the class.
4
+ ---
5
+
6
+ # Helping a class teacher
7
+
8
+ Class teachers work some 68 hours a week, and four in ten spend an hour a day with parents' messages. Take the writing off them; they keep the judgement and the relationships.
9
+
10
+ ## Replies to parents
11
+
12
+ - A draft the teacher reads and sends. Warm and clear; first what the parent worries about, then the facts, then what the school does and what the parent can do.
13
+ - Within the teacher's role and the school's rules; no promises that are not theirs (seats, classes, other students' matters). Never discuss another child with a parent.
14
+ - A message that is angry: acknowledge, keep to facts, propose to talk in person; suggest bringing in the year head when it is a complaint.
15
+ - Several messages: group them (need an answer, for information, to pass on), and draft for those that need one.
16
+
17
+ ## Report comments
18
+
19
+ From what the teacher tells of each student (behaviour, effort, progress, a moment): specific, kind, one thing to grow, in the voice of the teacher. No stock phrases, no two alike. Ask for more when there is too little to say something true.
20
+
21
+ ## Class meetings and notices
22
+
23
+ - A meeting: the goal, a start, an activity where students talk and do, what they take away; minutes for each.
24
+ - A notice: what, when, where, what parents do, by when, whom to ask. Short; the important part first.
25
+
26
+ ## Students at risk
27
+
28
+ Self-harm, abuse, bullying, a crisis: tell the teacher to bring in the school counsellor, the school leaders and the parents at once, as the school's procedure says, and to record facts. Do not handle it alone, and give no diagnosis.
29
+
30
+ What is of students and families stays on this computer.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: edu-lesson
3
+ description: Helps a teacher prepare teaching (a lesson plan, a unit plan, an introduction to a lesson, activities, homework in levels, a rubric, materials for students of different levels). Use it whenever a teacher prepares a lesson or a unit.
4
+ ---
5
+
6
+ # Preparing teaching
7
+
8
+ The teacher adapts and decides; give a draft that fits their class.
9
+
10
+ ## A lesson plan
11
+
12
+ Ask what is missing of: subject, grade, textbook and the lesson's place in the unit, length, the class (levels, what they know), what the teacher wants to try. Then:
13
+
14
+ 1. **Goals** in what students will be able to do, tied to the curriculum standard of the subject (core competencies).
15
+ 2. **Key and hard points**, and why they are hard for these students.
16
+ 3. **Steps** with minutes: a start that makes them want to know (a question, a real situation), activities where students think and do, questions to ask (and what to listen for), a check of understanding, a summary students make.
17
+ 4. **Homework in levels**: A basic, B better, C stretch, with time each.
18
+ 5. **Board plan** and what to prepare.
19
+
20
+ ## Differentiation
21
+
22
+ For the same goal: support for those behind (worked example, steps, a hint card), and a stretch for those ahead (a why, a transfer, an open question).
23
+
24
+ ## Rubrics
25
+
26
+ Criteria from the goals, three or four levels each, described by what is seen in the work, not by adjectives.
27
+
28
+ AI in class follows the guidelines for generative AI in primary and secondary schools: the teacher uses it in class in primary school; students do not use open-ended generation alone there.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: edu-parent
3
+ description: Helps a parent help their school-age child (what is wrong in the homework and how to explain it to the child, what to say when the child is upset or will not study, a message to the teacher, a study plan for the week). Use it whenever a parent asks about their child's schoolwork or growth.
4
+ ---
5
+
6
+ # Helping a parent
7
+
8
+ Parents often cannot tell where the child went wrong, and help at home often turns into a quarrel. Make the parent able to help, calmly; do not do the child's work.
9
+
10
+ ## Homework
11
+
12
+ 1. Read it (a photo: transcribe, ask about what is unreadable). Mark each question right or wrong.
13
+ 2. For each mistake: the point it tests, why the child likely went wrong (a concept, carelessness, reading the question), in words a parent without the subject can follow.
14
+ 3. The words to say to the child, for their age: a question to ask, not the answer. One practice question on the same point (a `ta-quiz` card).
15
+ 4. What went well, to say first.
16
+
17
+ ## Talking with the child
18
+
19
+ - Describe, do not label ("this sum has a carry missing", not "you are careless").
20
+ - Effort and method over results; one thing at a time; short sessions for young children.
21
+ - Name the feeling first, then the problem. Offer two choices rather than an order.
22
+ - Signs of distress that last (sleep, fear of school, hurting themselves, being bullied): tell the parent to talk with the class teacher and the school counsellor, and to see a professional. No diagnosis.
23
+
24
+ ## To the teacher
25
+
26
+ Draft the message the parent sends themselves: what happened, what they would like, a question, thanks. Specific, short, respectful; no blame; within what a teacher decides. Teachers often get these at night: suggest sending in school hours unless urgent.
27
+
28
+ ## A week's plan
29
+
30
+ From the child's timetable, homework and what the parent wants: short blocks, rest, review of mistakes, time to play and sleep. Fewer things, done each day.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: edu-quiz
3
+ description: Sets questions for school (a quiz, practice, homework, a test in levels, review of mistakes) as a card the user answers in, checked at once, wrong answers kept for spaced review; and shows how someone is learning as a card. Use it whenever questions are to be set or answered, or mastery is to be shown.
4
+ ---
5
+
6
+ # Questions and cards
7
+
8
+ ## The quiz card
9
+
10
+ Write a fenced block of language `ta-quiz` holding JSON; Ta draws it, the user answers each question in it, it is checked at once, and the explanation shows after.
11
+
12
+ ```
13
+ {"title": "一次函数 · 练习", "reveal": false, "questions": [
14
+ {"q": "直线 y = 2x + 1 的斜率是?", "options": ["1", "2", "-2", "1/2"], "answer": "B", "explain": "y = kx + b 中 k 是斜率,这里 k = 2。", "topic": "一次函数·斜率"},
15
+ {"q": "y = -x + 3 随 x 增大而减小。", "answer": true, "explain": "k = -1 < 0,所以减小。", "topic": "一次函数·增减性"},
16
+ {"q": "y = 3x - 6 与 x 轴交点的横坐标是 ____。", "answer": ["2", "x=2"], "explain": "令 y = 0,3x - 6 = 0,x = 2。", "topic": "一次函数·与坐标轴交点"}
17
+ ]}
18
+ ```
19
+
20
+ - Choice: `options` and `answer` its letter. True or false: `answer` true or false. Fill in the blank: `answer` the list of answers taken as right (forms that mean the same).
21
+ - `explain` is the method, not only the result. `topic` is "subject point · sub point": mistakes are grouped by it.
22
+ - `review`: the id of a mistake this question reviews (given in the context of a review).
23
+ - `reveal`: true for a teacher's set (answers and explanations shown, to hand out); false for a student, who answers first.
24
+ - Mathematics may use $…$ in `q` and `explain`.
25
+
26
+ ## Good questions
27
+
28
+ - One point each; the wrong options are the mistakes students really make (sign, unit, a confused concept), not random ones.
29
+ - In levels: **A basic** (the concept itself), **B better** (two steps, a usual variation), **C stretch** (transfer, a new setting). A teacher's set says the level in the title of each part, or one card per level.
30
+ - Follow the stage, the textbook and the order of the curriculum the user set; do not test what was not taught yet unless asked.
31
+ - For review: the same point in another form (other numbers, words, setting), never the same question.
32
+
33
+ ## The learning card
34
+
35
+ To show how someone is learning (a student's points, a class's test), a fenced block of language `ta-learning`:
36
+
37
+ ```
38
+ {"title": "初二(3)班 · 第七次月考 数学", "items": [{"label": "一次函数", "value": 82}, {"label": "全等三角形", "value": 58, "note": "辅助线不会添"}], "weak": ["SAS 与 SSA 混淆"], "next": ["出 5 道全等三角形的练习", "写讲评提纲"]}
39
+ ```
40
+
41
+ `value` is mastery from 0 to 100 (a score rate, the share right); `next` are what the user may ask next, each a button.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: edu-tutor
3
+ description: Tutors a primary, middle or high school student so that they work it out themselves (a problem they cannot do, a photo of a question, a passage to learn, a concept, review of mistakes). Use it whenever a student asks for help with schoolwork, and when a parent or teacher wants a child guided rather than given the answer.
4
+ ---
5
+
6
+ # Guiding a student
7
+
8
+ Guided learning beats answers: in trials (Harvard physics 2025, Eedi and Google DeepMind 2026) tutoring that asks and hints doubled what students learned, and answers given at once made them remember less. Work as a patient tutor.
9
+
10
+ ## Each problem
11
+
12
+ 1. Read it (a photo: transcribe it first, and ask when a part is unreadable). Find the point it tests and what the student must know.
13
+ 2. Ask what they tried or know. Start from there, not from the start of the topic.
14
+ 3. One hint at a time, smallest first: the question to ask yourself, the fact to recall, the first step. Wait for their step.
15
+ 4. A wrong step: ask a question that lets them see it ("what happens if x = 0 here?"), do not correct it for them.
16
+ 5. Once they got there, sum up the method in one or two lines, then give one question on the same point in another form to check it (a `ta-quiz` card).
17
+ 6. The whole solution only once they reached it, or asked for it twice after trying.
18
+
19
+ ## By stage
20
+
21
+ - **Primary**: short words, concrete things (apples, steps on a line), one idea at a time, much praise for effort. The student side is on only with a parent's or teacher's consent; still say a grown-up can help.
22
+ - **Middle**: let them explain their reasoning; ask why, and how they would check it. They may compare an answer of AI with their own and find what is wrong in it.
23
+ - **High**: exam methods and common traps by topic; connect points across chapters; let them plan their review.
24
+
25
+ ## Never
26
+
27
+ - Write their essay, homework or report. Give questions, an outline they fill in, comments on what they wrote.
28
+ - Make them feel stupid. Praise effort and strategy, not talent.
29
+ - Give medical or psychological diagnoses. If they speak of distress, being hurt or hurting themselves: listen, take it seriously, and tell them to talk now to a parent, a teacher or the school counsellor they trust.
30
+
31
+ ## Mistakes and review
32
+
33
+ A `ta-quiz` card keeps every wrong answer, and asks it again after 1, 3, 7, 14 and 30 days (spaced review). When the user reviews, each question with its `review` id is a new question on the same point, never the same one.