Problèmes d'entraînement interactifs

VérifiéPrudence

Extrait des exercices d'un cours (PDF, TD, diapos) et les transforme en fiches marimo interactives : énoncé d'abord, indices, puis solution complète vérifiée en code.

Spar Skills Guide Bot
ContenuAvancé
09/11/2026
Claude Code
#practice-problems#marimo#education#assessment#problem-extraction

Recommandé pour

Synthèse automatique

Transforme des énoncés d'exercices issus de supports de cours en fiches de pratique interactives marimo, avec l'énoncé d'abord, puis des indices et une solution complète expliquée.

Points forts

  • Met en place une boucle pédagogique problème d'abord avec indices, solution détaillée, cellule de vérification et référence à la page source.
  • Extrait les problèmes de PDF, feuilles d'exercices et diapositives via des agents question-banker parallèles, en signalant les pages manuscrites ou riches en figures à contrôler.
  • Gère les questions notées en ne montrant que des indices et un vérificateur, avec la solution complète masquée jusqu'à la date de libération.
  • S'aligne sur les conventions de marimo-notes et s'intègre aux notes de synthèse et au flux study-pack.

Limites

  • Dépend fortement des skills marimo-notes et model-routing, ainsi que de leurs scripts et agents ; le skill n'est pas autonome.
  • Contient des conventions propres à certains cours, notamment la méthode Orange-book pour MA2403, qui ne se généralisent pas forcément.
  • La vérification des énoncés et des PNG signalés reste manuelle, et le contrôle des dates d'évaluation repose sur des informations externes.
Quand l'utiliser

À utiliser lorsqu'on veut transformer un ensemble d'exercices, de diapositives ou d'annales en pratique interactive marimo, notamment avant un examen ou un séminaire.

Quand l'éviter

À éviter pour produire un guide d'étude complet ou un examen blanc couvrant plusieurs notes (préférer study-pack), ou lorsque la source n'est pas autorisée par le cours.

Analyse de sécurité

Prudence
Score qualité78/100

The content is an elaborate but transparent authoring guide for building marimo practice notebooks; it contains no destructive commands, no credential or data exfiltration, and no obfuscated payloads. The only real concerns are capability-vs-manifest mismatch (undeclared shell/subagent use), dependence on local paths and scripts that are not shipped, and reliance on the agent's own judgment about which questions are assessed coursework. All of these are legitimate-use concerns rather than malicious ones, hence caution rather than risky.

Points d'attention
  • •Manifest declares no allowed-tools, but the body instructs the agent to run shell/Python commands (`.venv/Scripts/python.exe skills/marimo-notes/scripts/build_notes.py …`, `scripts/extract_slide_examples.py`, `new_note.py`, `add_quiz_summary.py`) and to dispatch multiple subagents — this execution/subagent capability is not reflected in the declared tools and should be declared before listing.
  • •No destructive, exfiltration, network-fetch, obfuscation, or safety-disabling instructions were found; the powerful actions are all local file generation and build/QA automation.
  • •The skill explicitly handles assessed/coursework material and implements a date-gated solution unlock plus hint-only checkers. The safeguards are sound and integrity-positive, but correct behaviour depends on the agent reliably classifying what is 'assessed', a judgment risk worth flagging.
  • •References private/local infrastructure by absolute-looking paths and personal tooling (e.g. `Statistical Distributions and Inference/marimo-notes/W1_L3_discrete_and_normal_practice.py`, `_tools/orange_tables.py`, course codes MA2403/AF2007). These are not bundled, so an agent outside that environment will hit missing files.
  • •Instructions delegate work to local scripts (`.venv/Scripts/python.exe skills/marimo-notes/scripts/build_notes.py`, `scripts/extract_slide_examples.py`) and to sub-agents (question-banker, notebook-drafter, doc-extractor) — the safety of those scripts/skills must be assessed separately, since this file only describes invoking them.
  • •Hard-coded Windows relative paths (`.venv/Scripts/python.exe`) and cross-skill references (`skills/marimo-notes/...`) are assumed to exist; nothing here fetches remote content or transmits data.
  • •No obfuscated payloads, no `curl | sh`, no destructive filesystem operations, no credential/token handling, and no instruction to disable safety controls. The only 'gating' logic is marimo cell visibility for pedagogical answer-hiding, which is benign.
Comment cette analyse est faite

Exemples

Chapter practice from a problem sheet
Make practice problems from Chapter 4 of the MA2403 problem sheet. Show each problem first, then hints, then the full worked solution in the Orange-book style.
Lecture slide examples as practice
Turn the Example and Try it slides from today's lecture into a marimo practice note, one item per example, with hints, a tabulated variant and the full solution.
Quiz me from a PDF
Quiz me on the exercises in this PDF: present each problem first, let me attempt it, then reveal hints and the complete explained solution.

name: practice-problems description: | Practice problems, problem first: extracts problems from a source (a seminar or problem sheet, textbook exercises, lecture slides, a past paper, a handout) and turns each one into an interactive marimo practice item. The reader sees the problem and attempts it first (a marimo-learn widget, a graded form, a Tangle/explorer variant, or a studio page). Hints come next, then the complete explained solution with a green verification cell, the common mistakes and the source page. Assessed questions get a hint and checker only, with the solution date-gated. Use this skill whenever the user asks for practice problems, practice questions, exercises, drills, "problems from chapter N", "make me questions from this sheet/PDF", "quiz me on …", worked problems they can try first, a problem set, extra practice before an exam or seminar, "practice from the lecture slides", "the slide examples as problems", or a practice note per lecture, in any course (MA2403, MA1115, AF2007, FDS, Bloomberg). For MA2403, solutions are worked the Orange-book way (formula page, table, row and column, interpolation) and then checked in code. Builds on marimo-notes (format, build) and model-routing (who reads the source); for whole study guides or mock exams across many notes use study-pack instead.

Practice problems: ask first, then explain fully

The note format, glossary, ⟦links⟧ and build come from marimo-notes. Widget signatures are in skills/marimo-notes/references/teaching-widgets.md §2–§5, and the assessed-work gate is in skills/marimo-notes/references/teaching-patterns.md §Assessed work. This skill adds the problem-first loop and how to get the problems out of a source.

1. Scope and placement (ask only if unclear)

  • Source: which file(s) and pages or question numbers. Only course-sanctioned sources (the dropped book is never used).
  • Assessed? Is any question from coursework, marked homework or a quiz before its deadline, word-for-word or near it? Check the handbook, Blackboard dates and the course hub's deadlines. Assessed means hint + checker, with the full solution behind --unlock.
  • Where it goes:
    • a few problems tied to one note go into that note's Self-Check section;
    • a set goes into a new G<n>_<scope>_practice_problems.py (new_note.py --kind guide), linked from the hub and from each source note's Practice line;
    • lecture-slide examples go into one <lecture-note stem>_practice.py per lecture note, linked from the end of that note and from its hub row (§2b).

2. Extract the problems (cheap models)

  • Each source PDF gets one question-banker agent (haiku), all in parallel. The brief gives the path, the page range and the output path in the scratchpad. It returns one row per problem: id | page | verbatim statement (LaTeX) | given data | printed answer (if any) | type | topic | difficulty | assessed flag | figure PNG path.
  • Pages with plots, tables or handwriting are rendered to PNG by the agent. Look at the flagged PNGs yourself before trusting the statement.
  • A long chapter can go to doc-extractor first, then question-banker on its digest.

2b. From lecture slides (slides mode)

Full recipe in references/slides-mode.md. In short:

  1. scripts/extract_slide_examples.py DECKS… --out <scratchpad>/slides (tier 0). It finds the Example / Try it / Try these slides, marks repeats across decks, flags handwriting (ink) and renders PNGs.
  2. One question-banker per practice note runs on its candidate ids, copying clean statements from an existing slide-examples guide where one exists.
  3. Opus maps the items to lecture notes, writes the item specs (key, hints, solution route, one tabulated variant per item) and reads every ink PNG.
  4. notebook-drafter ×N write <lecture stem>_practice.py. Then link each from the end of its lecture note and from its hub row.

3. Design each item (Opus)

Choose the interaction from what the problem asks for:

| Problem asks for | Attempt widget | |---|---| | A number (probability, price, determinant) | NumericEntryWidget(question, correct_answer=<computed>, tolerance) or a .batch().form() with several inputs | | A choice of method, distribution or conclusion | MultipleChoiceWidget. Distractors = the real common mistakes (wrong tail, trials vs failures, forgot to annualise) | | The steps of a proof, test or algorithm | OrderingWidget | | Matching terms, formulas or graphs | MatchingWidget | | "What will this R/Python print?" | PredictThenCheckWidget | | Code (a function, a dplyr pipeline) | stub + # BEGIN/END YOUR CODE + test cell + "Run my tests" (teaching-widgets.md §5) | | A parameter family ("for which k …") | a Tangle sentence or a small explorer, then a numeric check at one value | | A static revision page, no Python | studio view with a "question" and an "answer" state (studio-explainer) |

  • Stats (MA2403) solutions take the Orange route (references/orange-book-route.md): name the distribution with its ⟦ob p⟧ page, set up, read the table (page, row, column, entry as printed), interpolate, box the answer, then add one line comparing the table with the exact value. _tools/orange_tables.py reproduces each lookup at table precision, and scipy is only the check.
  • Answers are computed in code (scipy, sympy, polars, live R), never typed. A printed answer from the source goes into the checks box comparison, not into the widget.
  • Write a variant (new numbers, same method, (own example)) for any problem that is assessed or too easy to memorise.

4. Item layout (problem first)

  1. ## P3 — <short title> with the ⟦source page⟧ link line.
  2. The problem statement (source wording, LaTeX, the figure if any).
  3. The attempt widget in its own cell, named with a prefix (p3_attempt).
  4. /// details | Hint 1 (direction) and /// details | Hint 2 (first step). Hints never give the number.
  5. A reveal cell with a "Show me the solution" run button (p3_giveup).
  6. The solution cell is gated until the reader has answered or given up:
    _answered = (p3_attempt.value.get("value") or {}).get("answered", False)
    mo.stop(not (_answered or p3_giveup.value),
            mo.md("*Attempt the problem (or press “Show me the solution”) to see the worked solution.*"))
    mo.md(rf"""
    /// details | Full solution — P3
        open: True
    **Step 1 — set up.** … *why this step*
    **Step 2 — …** …
    $$\boxed{{…}}$$
    **Common mistakes.** …
    ///
    """)
    
    Numeric and multiple-choice widgets report answered. OrderingWidget reports only {order, correct}, and it sets that while the reader drags, so gate it on correct is True (plus the give-up button). The pp_answered helper in Statistical Distributions and Inference/marimo-notes/W1_L3_discrete_and_normal_practice.py handles all three kinds, and forms too. The solution explains why at each step in the user's voice, ends with the boxed answer, and names the common mistakes and the related note (?file= link + page).
  7. A verification cell that is NOT gated, so the build always checks the key. It must not reveal the number before the attempt:
    _ok = abs(P3_KEY - P3_PRINTED) < 5e-4 if P3_PRINTED is not None else True
    mo.callout(mo.md(f"**Answer key check (P3):** matches the source: **{_ok}**"),
               kind="success" if _ok else "danger")
    
    Put P3_KEY (computed) and P3_PRINTED in one hidden key cell near the top of the file. For an Orange-route item the same cell also checks P3_TABLE (the value read the table way with orange_tables) against P3_KEY within the table's tolerance (ob.tol(...)). That proves the book method gives the right answer to the precision printed. A source answer that disagrees is reported in the checks box, and the key is never edited to match.
  8. Close with a 📊 quiz summary (add_quiz_summary.py) when there are 3+ public widgets, the checks box and the tags.

Assessed items: steps 1–4 plus a checker form (right/wrong only). Steps 5–6 become the date-gated solution (new_note.py … --unlock <deadline> pattern), and step 7 stays.

Persistence (optional): progress across reloads via moutils StorageItem (libraries-widgets.md §1). It is [R] until it has been tried in one note, so check it renders under marimo run before using it widely.

5. Build and check

.venv/Scripts/python.exe skills/marimo-notes/scripts/build_notes.py "<Course>/marimo-notes/G4_….py" --python .venv/Scripts/python.exe --summary

Then run note-qa. The visual pass must show each problem with no solution visible before an attempt, and the interaction pass must answer one widget and press one give-up button. Script-mode validation leaves widgets unanswered, so solution cells stop silently (expected) and the key-check cells must all be green.

Routing

| Step | Who | |---|---| | Find slide examples, repeats, ink | extract_slide_examples.py (script) | | Extract problems, render figures | question-banker ×N (haiku), parallel; doc-extractor for long chapters | | Assessed? / widget choice / solutions / variants | Opus | | Drafting a large set (≥ 8 items) from Opus's item specs | notebook-drafter (sonnet), then Opus reviews every solution | | Build, visual check | build_notes.py yourself; visual-reviewer (haiku) for the screenshots |

Never

  • Show a solution or the numeric answer before the attempt, or before the deadline for assessed work.
  • Type an answer key by hand, or change a key to make a check green.
  • Use a source the course does not sanction, or quote a whole textbook chapter. Problem statements are for the user's own study notes.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/interactive-practice-problems-mvj1od1b' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/interactive-practice-problems-mvj1od1b/download' --output '.skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md.part' && mv '.skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md.part' '.skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md' && test -s '.skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/practice-problems' && cp -R '.skill-downloads/interactive-practice-problems-mvj1od1b' '.claude/skills/practice-problems'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/interactive-practice-problems-mvj1od1b'

openskills read 'interactive-practice-problems-mvj1od1b'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/interactive-practice-problems-mvj1od1b/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires