Spec-kit workflow command: speckit-onboard-quiz
/onboard quiz [--feature <name>] [--topic <spec|workflow|architecture>]
--feature: restrict the quiz to a specific feature (default: all open features)--topic: thematic area — spec, workflow, architecture (default: mixed)You are executing the /onboard quiz command of the spec-kit-onboard extension. Follow the steps below.
commands/start.md--feature was provided: read features/<feature>/spec.md and features/<feature>/tasks.md.speckit/extensions.jsonquiz_history and quiz_questions_history from the profile to avoid repeating questions.Generate exactly 5 questions. Absolute rules:
Rule 1 — No generic questions. Every question MUST reference a specific artifact from the project: file name, task ID, feature name, spec line, installed extension name. Questions like "What is a spec?" are forbidden. Instead: "What is the main acceptance criterion for task T-003 in features/auth/tasks.md?"
Rule 2 — Distribution of types. Distribute the 5 questions among the 3 types below. Do not use more than 3 questions of the same type:
Rule 3 — No repetition across sessions.
Before generating each question, check quiz_questions_history[] in the profile. Each entry has the shape:
{
"question_id": "sha256-of-artifact+topic",
"artifact": "features/auth/tasks.md",
"topic": "T-003 acceptance criteria",
"asked_on": "ISO8601"
}
If a candidate question targets the same artifact + topic combination as any entry in quiz_questions_history, skip it and generate a different question. This guarantees no question is repeated across any number of sessions.
Rule 4 — Level calibration.
junior: verifiable fact questions predominate; multiple choice with 4 optionsmid: balanced mix; accepts short open answers in addition to multiple choicesenior: inference and consequence questions predominate; open answersMultiple choice format:
(a) [option] (b) [option] (c) [option] (d) [option]
Always include one correct option and three plausible distractors based on the real artifacts.
Display the header:
✦ quiz — 5 questions about the project
For each question (one at a time):
Question N/5
─────────────────────────────────────────
[question text]
[options, if multiple choice]
Your answer:
Wait for the user's response.
After each response, provide immediate feedback:
If correct:
✓ Correct. [1-line explanation with artifact reference: file + line/section if possible]
If incorrect:
✗ Incorrect. The correct answer is [answer].
[2–3 line explanation referencing the exact artifact]
→ /onboard explain [relevant artifact] to learn more.
After the 5th question:
✦ result — [score]/5
[list of questions with ✓ or ✗ and the topic of each]
[contextual message based on score]
Messages by score range:
If score < 3, list: → /onboard explain [gap artifact] for each wrong answer.
Update the active developer profile:
quiz_history[]:{
"date": "[ISO8601]",
"score": 0,
"total": 5,
"gaps": ["[topic/artifact of each wrong answer]"]
}
quiz_questions_history[]:{
"question_id": "[sha256-of-artifact+topic or deterministic hash]",
"artifact": "[artifact path or concept name]",
"topic": "[brief topic description, e.g. 'T-003 acceptance criteria']",
"asked_on": "[ISO8601]"
}
last_updated.navigator: if score == 5, move "navigator" from locked to earned (if not already earned).If navigator was unlocked:
🏅 Badge unlocked: navigator — Perfect quiz score!
quiz_questions_history, it must never be asked again for that developer./onboard mentor or /onboard explain <gap>.