quiz-gen
Generates scenario-based multiple-choice quiz questions from research content
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
Generates scenario-based multiple-choice quiz questions from research content
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
The SOLE WRITER to the V3.0 mem0 second brain. Invoked agentically by the executive at write moments โ post-run, post-retro, post-spec-merge, manual /harvest. Decides which facts to classify into which memory type (principle/semantic/procedural/episodic/reflective), validates against the schema, and calls the deterministic plumbing in references/ via Bash. Blocks until writes are durable (poll event endpoint for SUCCEEDED). Never invoked from worker code.
Consult the V3.0 mem0 second brain agentically during executive planning, work selection, pre-spawn memory pack building, and failure diagnosis. Use this skill whenever the executive needs to remember prior runs, retros, or learned principles. Read-only โ never writes. Drives the unified `mem0` CLI via Bash, orchestrating multiple iterative search queries (mem0 does not do multi-hop graph traversal natively, so iterative search IS the multi-hop).
Hook D โ Failure-Diagnosis memory consultation. Runs at executive Phase 7 (after 3+ consecutive failures on a work item) BEFORE the failure-diagnosis skill itself runs. Consults the second brain for similar prior failures and successful retry strategies, then hands enriched context to the failure-diagnosis skill. Read-only. Invokes the memory-reader skill.
Hook E โ Post-Retrospective Harvest. Runs after a retrospective markdown doc completes (per-run or weekly). Reads the retro fully and decides which durable lessons (reflective, semantic, procedural memories) to write to the second brain. Typically 3โ8 writes per weekly retro, 0โ3 per per-run retro. Invokes the memory-harvester skill for the actual writes.
Hook C โ Post-Run Harvest. Runs after a worker completes (executive Phase 6 success path). Decides agentically which facts from the run to write to the second brain โ typically 0โ3 memory writes per run (one episodic, optionally a semantic or procedural). Invokes the memory-harvester skill to do the actual writes (with event-polling for durability).
Hook B โ Pre-Spawn Memory Pack build. Runs before each worker spawn (executive Phase 4 prep). Reads the second brain for project-specific memories and produces a Memory Pack markdown block that worker-spawner injects into the worker's generated CLAUDE.md. Workers consume this as static markdown โ they never call mem0 themselves. Read-only. Invokes the memory-reader skill.
| name | quiz-gen |
| description | Generates scenario-based multiple-choice quiz questions from research content |
Generate scenario-based multiple-choice quiz questions that test understanding, not memorization.
{{RESEARCH_DIR}} โ Directory containing all research markdown files.{{SYNTHESIS_PATH}} โ Path to the synthesis report markdown file.{{OUTPUT_PATH}} โ File path where the quiz JSON for this domain will be written.{{DOMAIN_ID}} โ The domain ID to generate questions for (e.g. build-deployments).{{DOMAIN_TITLE}} โ Human-readable domain title (e.g. Build and Deployments).{{QUESTIONS_PER_DOMAIN}} โ Number of questions to generate for this domain (default: 8).Read source material for this domain only.
{{SYNTHESIS_PATH}} โ find the section for {{DOMAIN_TITLE}} to identify priority topics and key concepts.{{RESEARCH_DIR}} matching {{DOMAIN_ID}}_*.md. Read up to 5 of the highest-priority files for this domain.{{DOMAIN_ID}}.Generate exactly {{QUESTIONS_PER_DOMAIN}} questions for {{DOMAIN_TITLE}}.
Write scenario-based questions.
Cross-reference topics.
references array should list all topic IDs that the question touches.Write the output JSON to {{OUTPUT_PATH}}.
Write a JSON file to {{OUTPUT_PATH}} with this structure:
{
"generatedAt": "ISO 8601 timestamp",
"totalQuestions": 0,
"difficultyDistribution": {
"easy": 0,
"medium": 0,
"hard": 0
},
"questions": [
{
"id": "q-001",
"topic": "Topic area name",
"difficulty": "easy | medium | hard",
"scenario": "A company is migrating their monolithic application to a microservices architecture. They need to ensure that services can discover each other dynamically as instances scale up and down. The team wants minimal operational overhead.",
"question": "Which approach best addresses the team's requirements for service discovery?",
"options": [
{
"label": "A",
"text": "Option text here",
"isCorrect": false
},
{
"label": "B",
"text": "Option text here",
"isCorrect": true
},
{
"label": "C",
"text": "Option text here",
"isCorrect": false
},
{
"label": "D",
"text": "Option text here",
"isCorrect": false
}
],
"rationale": "B is correct because [cite source from research, e.g. 'per the official docs [1] in topic X']. A is incorrect because... C is incorrect because... D is incorrect because...",
"sourceRefs": ["topic-id:1", "topic-id:3"],
"references": ["topic-id-1", "topic-id-2"]
}
]
}
[n] matching the source numbers in the relevant research file. Include the sourceRefs array with entries in "topic-id:source-number" format (e.g., "prompt-engineering:1" means source [1] from the prompt-engineering research file).isCorrect: true.q-001, q-002, etc.topic field should match a topic title from the research files.references array should use topic IDs from the topic tree.