一键导入
quiz-engine
Implement or extend quiz functionality and answer checking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement or extend quiz functionality and answer checking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage the project backlog — add, list, filter, update, prioritize, and suggest work items
Daily session wrapper — start with backlog, work, commit, retro
End-of-session retrospective — summarize work, update backlog statuses, update MEMORY.md
Commit, branch, PR, self-review, fix — then stop for human approval before merge
Pre-flight for parallel work — pick items, check file overlap, set statuses, generate terminal commands
Manage project backlog — add, list, filter, update, prioritize, suggest
| name | quiz-engine |
| description | Implement or extend quiz functionality and answer checking |
| user-invocable | true |
Implement or extend quiz functionality. Key files: src/types/quiz.ts, src/lib/quiz-engine.ts, src/lib/answer-check.ts, src/hooks/useQuiz.ts.
| Type | exercise_type | Answer input | Notes |
|---|---|---|---|
| Type answer | type_answer | Text field | Most common; EN→DA or DA→EN |
| Cloze | cloze | Text field | One blank per sentence; unambiguous answer |
| Multiple choice | multiple_choice | Button pick | 4 options; distractors same POS |
| Word order | word_order | Drag/tap chips | Exactly one correct arrangement |
| Error correction | error_correction | Text field | Exactly one grammatical error |
| Matching | matching | Pair selection | DA <-> EN pairs |
| Conjugation | conjugation | Multiple fields | All tense forms for one verb |
checkAnswer() from src/lib/answer-check.ts — never compare strings with ==={ isCorrect, isAlmostCorrect, closestMatch } — show "almost" feedback when edit distance = 1src/data/seed/user_cards in Supabase after every ratinguseQuiz hook manages quiz sessions; useStudy hook manages SRS reviews — never mix themgenerateWordExercises(word, allWords, types) in quiz-engine.ts produces type_answer + multiple_choice + gender + conjugation exercises from a Word row. Distractors are picked from same POS first.
useRef(Date.now()) on question mount, delta on submit)shuffle() from quiz-engine.ts)