with one click
quiz-engine
Implement or extend quiz functionality and answer checking
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Implement or extend quiz functionality and answer checking
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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)