Skip to content
Back to skills

Create Learning Pack

ASecurity

Generate a private learning pack (a multiple-choice question bank + manifest) for this quizmill app. Use when the user wants practice questions about any topic — "make me a pack about X", "I want to learn / revise / get quizzed on Y", "turn these notes into practice questions".

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add quizmill/quizmill --skill create-learning-pack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Learning Pack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Learning Pack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/quizmill-create-learning-pack/badge)](https://www.skillsdirectory.com/skills/quizmill-create-learning-pack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-learning-pack
description: >
  Generate a private learning pack (a multiple-choice question bank +
  manifest) for this quizmill app. Use when the user
  wants practice questions about any topic — "make me a pack about X",
  "I want to learn / revise / get quizzed on Y", "turn these notes into
  practice questions".
---

# Create a learning pack

A learning pack is a directory of JSON files (a manifest and a question
bank, plus optional scenarios, concept cards and an `assets/` folder of
images) that turns this app into a practice app for any topic. Packs are **private by default** —
they live in the gitignored `packs/` workspace and never get committed.

The format is specified by the Zod schemas in `tools/pack/schema.ts`
(read it before writing files — it is the source of truth). The
committed demo pack at `content/pack-demo/` is a complete worked
example.

## Workflow

1. **Scope the pack with the user.** You need: the topic, the audience
   /level (beginner? practitioner? exam-prep?), roughly how many
   questions (default 30–50), and 2–6 categories that partition the
   topic. If the user gave a document/notes/URL, ground questions in it
   and put the reference in each question's `sourceRef`.

2. **Write the pack** to `packs/<pack-id>/`:
   - `pack.json` — manifest: `schemaVersion: 2`, `id`, `title`,
     `description`, `homeSubtitle`, `themeColor` (hex), `categories`
     (key/label/shortLabel/optional `icon`/optional weight). Keys are
     kebab-case slugs. Give each category a bespoke `icon` (a single
     emoji that fits the category — e.g. `"🪐"`, `"🚀"`); it appears on
     the category card and its mastery sticker. Omit it and the app
     falls back to a generic emoji by order.
    Optional `upgrade: { title, url, price?, blurb? }` — for a pack that
    points learners at a fuller edition, companion pack, course, app, or
    related site. The app renders it as a card on Home (below the
    categories) and in Settings, linking to `url` (must be `https://`)
    with `?ref=<pack-id>-home` / `-settings` appended so the destination
    can tell where the tap came from. Leave it out when the pack has no
    related offering, and never add one to the demo pack.
   - `questions.json` — array of questions: slug `id` (unique,
     prefix with the pack id), `categoryKey` (must match a manifest
     category), `difficulty` 1–5, `prompt` (≥10 chars), 2–6
     `options` keyed A–F, an answer key, `explanation` (≥40 chars),
     `source` (`"generated"` for LLM-authored), optional `sourceRef`,
     `reviewStatus` (`"draft"` until a human has checked it), optional
     `tags`. The answer key is either `correctKey` (a single letter,
     the usual case) **or** `correctKeys` (an array of 2+ letters for
     a "select all that apply" question) — never both. Multi-answer
     questions are graded all-or-nothing (every correct option must be
     chosen and no other), so add `Select all that apply.` (or `Select
     TWO.`) to the prompt; the app shows a matching hint and checkbox
     options. Note `prompt`/`options`/`explanation` render minimal
     markdown — backticks/code blocks and bare URLs only, **no** `**bold**`
     or `*italic*` (the asterisks show literally).
   - `scenarios.json` — optional; only when several questions genuinely
     share a narrative setup (give them a `scenarioId`). Otherwise `[]`
     or omit.

3. **Quality bar** (this is the point — don't skimp):
   - Every answer must be defensibly correct — the one `correctKey`, or
     *each* of the `correctKeys`. If you are not certain an answer is
     correct, verify it (search, read the source doc) or drop the
     question. For multi-answer questions, be just as sure about which
     options are *wrong* — a single misjudged distractor makes the whole
     question ungradeable.
   - Distractors must be *plausible* — common misconceptions,
     near-misses, true-but-irrelevant statements. Never joke options.
   - The explanation teaches: why the answer is right AND why the
     tempting distractor is wrong. Markdown backticks/code blocks and
     bare URLs render properly.
   - Prefer putting each option's verdict on the option itself: an
     optional `explanation` (1–300 chars, one short sentence) on an
     option shows inline under it once the answer is checked — "Second
     from the Sun, not first" sits next to the wrong pick instead of
     buried in the paragraph below. Keep the question's `explanation`
     for the full reasoning; leave an option bare when there is nothing
     worth saying about it.
   - Spread difficulty: ~20% level 1–2, ~60% level 3, ~20% level 4–5.
   - Shuffle which letter is correct — do not let "C" dominate.

4. **Validate, fix, repeat** until clean:
   ```
   npm run pack:validate packs/<pack-id>
   ```
   It cross-checks ids, category references, scenario references,
   weights, and the optional manifest blocks (`exam`, `games`,
   `progression`, `upgrade` — e.g. an `upgrade.url` that isn't https),
   and exits non-zero with per-question errors.

5. **Activate and show it**:
   ```
   npm run pack:use packs/<pack-id>
   npm run dev
   ```
   The app at http://localhost:3000 is now the user's practice app for
   that topic. (`pack:use` snapshots the pack into the gitignored
   `content/pack/`; the original under `packs/` remains the editable
   source.)

6. **Remind the user**: packs are private (gitignored). To keep one
   long-term, store the `packs/<pack-id>/` directory somewhere safe
   (e.g. a private repo). To deploy it as its own app, run `pack:use`
   then `npm run build` and host the static `out/` anywhere — see the
   README's "Deploying a pack" section.

## Publishing a pack

If the user wants to share the pack, push the `packs/<pack-id>/`
directory to its own GitHub repo (add a README; see
`quizmill/pack-claude-cert` for the shape). Anyone can then install it
with `npm run pack:use <owner>/<repo>` — private repos work for anyone
whose `git clone` has access. Public packs can be listed in
`npm run pack:list` via a PR to `tools/pack/registry.json`.

If questions derive from someone else's bank: confirm the upstream
license permits redistribution (drop the questions if there is none),
set each question's `sourceRef` to the upstream URL (the app links it
in the answer panel), and reproduce upstream license texts in the pack
repo (NOTICE.md).

## Iterating on an existing pack

Edit the files under `packs/<pack-id>/`, re-run `pack:validate`, then
`pack:use` again. Adding questions later is normal — ids must stay
stable so the user's attempt history keeps pointing at the right
questions, so never renumber existing questions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.