name: jlpt-n5-grammer-sentence-building-question-creator description: Generate JLPT N5 sentence building (starQuestion) questions in JSON format. Use this skill when the user asks to create, generate, or produce N5 sentence building questions, word-order exercises, or scrambled sentence questions. Output is a JSON object containing a "questions" array with starQuestion type items, each including sentencePrefix, sentenceSuffix, 4 scrambledWords, starPosition, and correctOrder. Trigger on requests like "N5 cümle birleştirme sorusu üret", "create N5 sentence building questions", "generate word order questions", "JLPT N5 mondai2 soru oluştur", or "scrambled sentence questions".
JLPT N5 Sentence Building Question Creator
Generate N5-level sentence building (starQuestion) questions as JSON.
References
- Output format & field rules: See references/json-schema.md
- N5 grammar points and word-order rules: See references/n5-grammar-points.md
Workflow
- Determine the grammar target(s) — from user request or source documents in context.
- Read
references/json-schema.mdfor field specifications. - Read
references/n5-grammar-points.mdfor word-order rules and scramble patterns. - Generate each question:
- Write a natural N5-level sentence split into:
sentencePrefix+ 4 words +sentenceSuffix. - The 4 words in
scrambledWordsmust be in a shuffled order (not the correct order). - Set
correctOrderas the array of indices mapping scrambled positions to the correct sequence. - Set
starPosition(0–3) indicating which slot in the correct order is the marked answer. - Set
idasn5_grammer_sentence_building_XXXwhere XXX is a zero-padded sequential number. Continue from the last existing ID in the file.
- Write a natural N5-level sentence split into:
- Append generated questions to the existing questions array in
backend/grammar/data/n5_sentence_building.json. Read the file first, then add new questions to the end of thequestionsarray. - Validate: After saving, run the
jlpt-grammer-sentence-building-question-testerskill to validate the JSON file. If any questions fail, fix them and re-run the tester until all pass. - Upload prompt: After all questions pass validation, ask the user whether to upload to Firebase. If yes, run:
python3 backend/grammar/scripts/upload_grammar_questions.py n5 --type sentence-building - Output a summary of what was generated, validated, and (optionally) uploaded.
Quality rules
- All vocabulary must be within N5 scope.
- Sentences should reflect real daily-life contexts.
scrambledWordsmust NOT be in the correct order — always shuffle.correctOrdermust be a valid permutation of [0, 1, 2, 3].- The reconstructed sentence (prefix + ordered words + suffix) must be grammatically correct and natural.
- Ensure only one valid word order exists for each question.
- Default quantity: 5 questions unless user specifies otherwise.