# Code Quiz

> >

- **Type:** Skill
- **Install:** `agentstack add skill-pranitmohnot-repo-learner-suite-code-quiz`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [PranitMohnot](https://agentstack.voostack.com/s/pranitmohnot)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [PranitMohnot](https://github.com/PranitMohnot)
- **Source:** https://github.com/PranitMohnot/repo-learner-suite/tree/main/code-quiz

## Install

```sh
agentstack add skill-pranitmohnot-repo-learner-suite-code-quiz
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Code Quiz

Adaptive quiz on a curriculum section. Pulls from
`learn/internals/quiz-bank.md`; generates fresh questions from source when
the bank is exhausted or the user has seen the existing ones.

The quiz bank is a working document. APPEND new questions when generated.
EDIT existing questions or answers when the user gives a reasonable answer
the "correct" answer doesn't cover. Treat the bank as a living resource
that improves with each session.

## Entering a session

1. Resolve the section: explicit ID (`/learn quiz 1.3`), `--full` for the
   whole curriculum, or default to the next unchecked section.
2. Load the section's questions from the bank, the section text from
   curriculum.md, and the source files it cites.
3. Plan 5–7 questions for a single section, more for `--full`.

## Question palette (mix; do not name the types to the user)

Pull from several of these in any quiz. The user should experience a
varied, well-crafted set — not a labeled taxonomy. Never say "this is a
conceptual question" or announce the type; just ask.

Examples below span several libraries deliberately — the palette is
domain-agnostic. Draw real questions from the codebase being quizzed.

- **Recall** — vocabulary. "What does `Session.execute()` return in
  SQLAlchemy 2.x?" "What's the default `timeout` for `httpx.Client`?"
  Fast confidence-builders.
- **Conceptual** — mental model. "Why does pydantic validate at
  construction time instead of on access?" "What invariant does
  `Session.begin()` preserve about transaction state?"
- **Predictive** — cause and effect. "If you drop `pool_size` from 5 to 1
  under concurrent load, what changes?" "What happens on the first call
  to an `@lru_cache`'d function vs the second?"
- **Diagnostic** — error model. Show plausibly broken code: "This pydantic
  model raises `ValidationError` on construction. What's wrong?"
- **Applied** — transfer. "You want to add request signing to every call
  on an existing `httpx.AsyncClient`. Sketch how."
- **Architectural** — design intent. "Why does pandas split `merge` and
  `join` into two methods?" "Why does FastAPI use dependency injection
  for auth rather than middleware?"

A 5–7 question quiz should span at least 3 types. All-recall is boring; all-architectural is exhausting; all-predictive becomes guessing.
Quizzes should also adapt to the user's stated goals (e.g. do not hammer low-level implementation details if the user just wants a curosry API understanding).

## Depth bands (orthogonal to type)

Any type can be asked shallow or deep.

- **Warm-up** (1–2 per quiz): single fact, short answer expected.
- **Normal** (2–3): requires connecting two pieces or one short trace.
- **Deep** (1–2): multi-step, multi-file, or genuinely novel application.

Adaptive: if the warm-ups land instantly, skip them next time and start
at normal. If they miss normals, slow down and explain more before
continuing. If they crush everything, push into deep + types they haven't
seen yet.

## Question flow

One question at a time. Never preview the next.

For each question:
1. Show the code context (file path + line numbers + the snippet).
2. Ask the question.
3. Wait for the answer.
4. Evaluate honestly:
   - **Correct.** Confirm in one line — say *why* it's right, not just "yes."
   - **Partial.** Acknowledge the right part, push on the gap with a
     follow-up that doesn't give away the missing piece.
   - **Wrong.** Name the misconception. Redirect with a hint to the file
     or concept that resolves it. Never just "wrong."
   - **"I don't know."** Respect it. Give the answer with the explanation
     the section earned. Note it for the summary.
5. Adjust the next question's type/depth based on what just happened.

## Summary

After the last question:

```
## Quiz: Section X.Y

Score: X/Y

Strong: [concepts they clearly have]
Gaps: [specific files/lines/concepts to revisit]
Suggested next: [continue to X.Z / revisit this section / focused re-read of file]
```

Be honest. If they bombed it, say so constructively with specific
remediation. If they aced it, say that too — and consider promoting them
into deeper questions next time.

## Tone

Senior engineer running a whiteboard session. Direct, not harsh.
Encouraging when earned. Honest about confusion. Never patronizing, never
fake-cheerful, never theatrical about wrong answers.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [PranitMohnot](https://github.com/PranitMohnot)
- **Source:** [PranitMohnot/repo-learner-suite](https://github.com/PranitMohnot/repo-learner-suite)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-pranitmohnot-repo-learner-suite-code-quiz
- Seller: https://agentstack.voostack.com/s/pranitmohnot
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
