/agents-for-learning:ask-questionfrom agents-for-learning
Diagnostic questioning to find the user's knowledge gaps before teaching. Use this skill whenever the user wants to learn something new, says they don't understand a concept, asks "why does X work this way", wants to test their knowledge, or when you need to assess where they stand before building lessons. Also trigger when the user mentions quizzes, self-assessment, knowledge checks, or wants to figure out what they don't know. Pairs with the classroom skill — run diagnostics first, then build targeted lessons.
Ships in agents-for-learning. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Diagnose the user's understanding through targeted questions before building lessons. The goal is not to test for a grade — it's to find the exact boundary between what they know and what they don't, so classroom can build lessons that start in the right place.
Everyone's knowledge has gaps in different places. A student who can solve integrals might not understand why $\sin(30^{\circ}) = 0.5$. Another might know the unit circle cold but struggle with identities. Teaching the same lesson sequence to both wastes time and breeds frustration. Ten well-chosen questions reveal where each learner's understanding breaks down, and that boundary is where learning actually happens.
When the user says they want to learn something (e.g., "I want to understand why sin 30° = 0.5"):
Parse what the user wants to learn. Extract:
For "why sin 30° = 0.5", the prerequisite chain might be:
Create 10 questions, escalating from foundational (level 1) to advanced (level 10). Each question probes one link in the prerequisite chain.
Question format for Vimwiki output:
=== Question 1 (Level 1: Foundations) ===
What is a ratio?
a) A type of fraction that compares two quantities
b) The result of adding two numbers
c) A way to measure angles
d) The area of a shape
%% correct: a
%% concept: ratios
Example explanation-style question:
=== Question 7 (Level 7: Analysis) ===
In your own words, explain why $\sin(30^{\circ})$ equals exactly $0.5$
and not an approximation. What geometric fact makes this exact?
%% type: explanation
%% concept: 30-60-90 triangle properties
%% key_points: equilateral triangle, bisection, side ratio 1:√3:2
Present questions one at a time using the ask_question tool (the interactive modal). This is the core interaction loop:
For explanation-style questions, evaluate the user's response against the key points. Partial credit is fine — note which key points they hit and which they missed.
After the questions, produce a summary. This goes into both the conversation (so the user sees it) and the tracking files (so classroom can use it).
The summary identifies:
classroom should begin building lessonsAll Q&A data is tracked in qa_log.json in the same directory as the wiki files:
{
"sessions": [
{
"id": "session-001",
"date": "2025-01-17",
"target_concept": "why sin(30°) = 0.5",
"domain": "trigonometry",
"questions": [
{
"level": 1,
"question": "What is a ratio?",
"type": "multiple_choice",
"concept": "ratios",
"options": ["A type of fraction...", "The result of...", "A way to...", "The area of..."],
"correct_answer": "a",
"user_answer": "a",
"correct": true,
"feedback": "Correct — a ratio compares two quantities."
},
{
"level": 7,
"question": "Explain why sin(30°) equals exactly 0.5...",
"type": "explanation",
"concept": "30-60-90 triangle properties",
"key_points": ["equilateral triangle", "bisection", "side ratio 1:√3:2"],
"user_answer": "Because the triangle has sides 1 and 2",
"points_hit": ["side ratio 1:√3:2"],
"points_missed": ["equilateral triangle", "bisection"],
"correct": false,
"feedback": "You're on the right track with the side ratio..."
}
],
"summary": {
"solid_ground": ["ratios", "right triangle basics", "sine definition"],
"boundary": "level 6-7 (application to specific triangles)",
"gaps": [
{
"area": "30-60-90 triangle construction",
"detail": "Knows the ratio but not why it comes from bisecting an equilateral triangle",
"severity": "moderate"
}
],
"recommended_start": "30-60-90 triangle geometry — build up from equilateral triangles"
}
}
]
}
After completing a diagnostic session, update the weakness_areas in progress.json (the file shared with classroom):
{
"weakness_areas": [
{
"area": "30-60-90 triangle construction",
"detail": "Knows the ratio but not why it comes from bisecting an equilateral triangle",
"severity": "moderate",
"discovered": "2025-01-17",
"addressed_in": null
}
]
}
If progress.json doesn't exist yet, create it with the weakness data. classroom will fill in the rest when it builds lessons.
Respect the same LaTeX configuration as classroom. Check the topics file for the %% latex: setting:
vimwiki (default): $...$ inline, {{$...}}$ blockstandard: $...$ inline, $$...$$ blockUse LaTeX in questions wherever math is involved — the user reads these in Vim, so they need to render properly.
The typical flow is:
qa_log.json and updates progress.jsonBut the flow is flexible:
classroom without a diagnostic — that's fine, classroom will teach at the configured levelask-question again after some lessons to check progress — the new session appends to qa_log.jsonSometimes the user doesn't want a quiz — they just want to understand something. Read the room:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub coderj001/agents-for-learning --plugin agents-for-learning6 skills in this plugin
/classroomCreate interactive Vimwiki lessons from topics. Use this skill whenever the user wants to learn something, create a lesson, build a study guide, structure learning material, break down a topic into chunks, or create educational wiki content. Also trigger when the user mentions topics files, lesson plans, study sessions, or wants to organize knowledge into digestible pieces. Works with Vimwiki format and LaTeX math. Pairs with the ask-question skill for diagnostic-first learning./quizTest the user's retention after teaching by re-examining previously diagnosed knowledge gaps. Use this skill whenever the user says "quiz me", "test me", "check if I remember", "did I learn it", "am I ready", or wants to verify that taught concepts actually stuck. Also trigger when the user has completed teach sessions and wants to close the loop, or after some time has passed since learning and they want to see if they retained the material. This skill pulls questions from past `ask-question` diagnostic sessions — it re-tests the exact gaps that were found, not random topics. Pairs with `ask-question` (which finds gaps), `teach` (which fills gaps), and `classroom` (which provides reference material)./skill-creatorCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy./teachLive interactive Socratic tutoring targeted at the user's diagnosed knowledge gaps. Use this skill whenever the user says "teach me", "explain this to me", "help me understand", "walk me through", "I still don't get", "tutor me", or anything that requests a live, back-and-forth learning session rather than a static lesson file. Also trigger when the user wants guided practice, worked examples with feedback, or wants to be coached through problems step by step. This is the interactive counterpart to `classroom` (which builds wiki files) — use `teach` for live dialogue, `classroom` for static reference material. Pairs with `ask-question` (which diagnoses gaps first) and `quiz` (which tests retention after teaching)./writing-for-agentsWriting documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.