Logo vun Iblai Api Studio Problem

Iblai Api Studio Problem

Organisatioun
iblai
iblai-api-studio-problem

Add and edit problem (assessment) components in an Open edX unit on Studio — create ONE problem block per unit that holds all of the unit's questions as several OLX responses, write the OLX in data, set display name, max attempts, weight, show-answer and randomization in metadata, and clear the stale markdown so the OLX is authoritative. Ships verified OLX for multiple choice, checkboxes, numerical, text and dropdown questions with hints and solutions. Use when the user wants a quiz, questions, exercise, assessment, knowledge check or any of those answer types. Session auth via studio.env; run the auth preflight first.

Iwwersiicht

Editeuriblai
Repositoryvibe
Skill-Nummiblai-api-studio-problem
Stären
229
Forks
8
Matgeliwwert Fichieren
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum iblai op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Iblai Api Studio Problem an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-problem
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iblai/vibe.git /tmp/vibe
mkdir -p .claude/skills
cp -r /tmp/vibe/skills/content/iblai-api-studio-problem .claude/skills/iblai-api-studio-problem
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Iblai Api Studio Problem an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Iblai Api Studio Problem automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Iblai Api Studio Problem net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

iblai-api-studio-problem

A problem component is a set of questions written in OLX (Open Learning XML): one <problem> root with one *response element per question. Users answer all of them and press Submit once; the block is graded as one item. Create the block, then send the OLX as data with grading metadata. Two calls per unit.

Before you start

  1. Preflight: node .claude/skills/iblai-api-studio-auth/scripts/studio-login.mjs --check prints two oks; otherwise run /iblai-api-studio-auth first — do not attempt the calls below.
  2. A unit locator from /iblai-api-studio-unit (or the unit list from /iblai-api-studio-outline).
  3. For graded work: the enclosing subsection has a graderType (/iblai-api-studio-subsection) that exists in the grading policy (/iblai-api-studio-grading).
  4. The questions drafted and the OLX validated as XML (below).

The one rule: one problem block per unit

Put all of a unit's questions into one problem block, as several <multiplechoiceresponse> / <choiceresponse> / … elements under the same <problem>. Several problem blocks in one unit mean several Submit buttons, several graded items, and a progress page that lists each question as its own assignment — that is against Open edX practice and confuses users. The same goes for other component types: one block of a kind per unit unless there is a reason a user should see them as separate items.

Auth & conventions

  • Base URL: $STUDIO_URL; Studio session cookies from studio.env (its values are single-quoted — bash strips the quotes; any other parser must strip them too, or Studio answers 500: /iblai-api-studio-auth).
  • Snippet:
    bash
    set -a; . ./studio.env; set +a
    S=(-s -b "studio_session_id=$STUDIO_SESSION; csrftoken=$STUDIO_CSRF" -H "X-CSRFToken: $STUDIO_CSRF" \
       -H "Origin: $STUDIO_URL" -H "Referer: $STUDIO_URL/" -H "Accept: application/json" -H "Content-Type: application/json")
  • Keys: parent = a unit locator; the block is …+type@problem+block@<hex>.
  • Draft until the unit is published. DELETE is destructive — confirm with the user first.

Reads

  • GET /xblock/{problem} — { "display_name", "category": "problem", "data": "<problem>…</problem>", "metadata": { "display_name", "max_attempts", "weight", "showanswer", "rerandomize", "markdown", … }, "published", "has_changes" }.
  • GET /api/contentstore/v1/container/vertical/{unit}/children — the unit's components (block_type: "problem").

Writes

  • POST /xblock/ — create:
    json
    { "parent_locator": "<unit>", "category": "problem" }
    → { "locator": "…+type@problem+block@<hex>", "courseKey": "…" }. Optional "boilerplate" pre-fills template OLX + markdown (verified names: multiplechoice.yaml, checkboxes_response.yaml; upstream also numericalresponse.yaml, optionresponse.yaml, string_response.yaml, blank_common.yaml). An unknown name creates a blank problem without an error; you overwrite data anyway, so omit it.
  • POST /xblock/{problem} — write the questions:
    json
    { "data": "<problem>…OLX with one or more responses…</problem>",
      "metadata": { "display_name": "Check your understanding", "max_attempts": 3, "weight": 3, "showanswer": "finished", "rerandomize": "never" },
      "nullout": ["markdown"] }
    → { "id", "data": "<stored OLX>", "metadata": { …, "markdown": null } }. Always include "nullout": ["markdown"]: boilerplates store a simple-editor markdown copy that Studio's editor would otherwise regenerate the OLX from, discarding your XML. metadata keys: display_name; max_attempts (integer; omit = unlimited); weight (points for the whole block, split evenly across responses — set it to the number of questions for one point each); showanswer ∈ always · answered · attempted · closed · finished · past_due · correct_or_past_due · never; rerandomize ∈ always · onreset · never · per_student; show_reset_button (bool); submission_wait_seconds (integer).
  • POST /xblock/ { "duplicate_source_locator": "<problem>", "parent_locator": "<unit>" } — copy.
  • DELETE /xblock/{problem} → 204. Confirm with the user first.
  • Bulk: in /iblai-api-studio-outline the same block is { "problem_type": "blank", "data": "<OLX>", "metadata": { …, "markdown": null } } inside a unit's problems.

Example — one block, three questions

bash
set -a; . ./studio.env; set +a
S=(-s -b "studio_session_id=$STUDIO_SESSION; csrftoken=$STUDIO_CSRF" -H "X-CSRFToken: $STUDIO_CSRF" \
   -H "Origin: $STUDIO_URL" -H "Referer: $STUDIO_URL/" -H "Accept: application/json" -H "Content-Type: application/json")
UNIT="block-v1:acme+DATA101+2026-T1+type@vertical+block@645f5ded5f544adab9fb603c4afc3bac"

cat > q.xml <<'OLX'
<problem>
  <multiplechoiceresponse>
    <label>Which value is the median of 3, 9, 4, 7, 5?</label>
    <choicegroup type="MultipleChoice" shuffle="true">
      <choice correct="false">4<choicehint>Sort first: 3 4 5 7 9.</choicehint></choice>
      <choice correct="true">5<choicehint>Correct — the middle of the sorted list.</choicehint></choice>
      <choice correct="false">7</choice>
    </choicegroup>
    <solution><div class="detailed-solution"><p>Sorted: 3 4 5 7 9 — the middle value is 5.</p></div></solution>
  </multiplechoiceresponse>

  <choiceresponse partial_credit="EDC">
    <label>Select every measure of spread.</label>
    <checkboxgroup>
      <choice correct="true">Standard deviation</choice>
      <choice correct="true">Interquartile range</choice>
      <choice correct="false">Mode</choice>
    </checkboxgroup>
  </choiceresponse>

  <numericalresponse answer="12.5">
    <label>What is the mean of 10, 15, 12 and 13?</label>
    <responseparam type="tolerance" default="0.1"/>
    <formulaequationinput/>
    <solution><div class="detailed-solution"><p>(10 + 15 + 12 + 13) / 4 = 12.5</p></div></solution>
  </numericalresponse>
</problem>
OLX
python3 -c 'import xml.dom.minidom; xml.dom.minidom.parse("q.xml")' || exit 1      # never send invalid XML

PROB=$(curl "${S[@]}" -X POST "$STUDIO_URL/xblock/" -d "{\"parent_locator\":\"$UNIT\",\"category\":\"problem\"}" \
  | python3 -c 'import sys,json; print(json.load(sys.stdin)["locator"])')
python3 -c 'import json; print(json.dumps({"data": open("q.xml").read(),
  "metadata": {"display_name": "Check your understanding", "max_attempts": 3, "weight": 3, "showanswer": "finished"},
  "nullout": ["markdown"]}))' | curl "${S[@]}" -X POST "$STUDIO_URL/xblock/$PROB" -d @-

The five response types at a glance

TypeElementAnswer markup
Multiple choice<multiplechoiceresponse><choicegroup type="MultipleChoice"><choice correct="true">…</choice></choicegroup>
Checkboxes<choiceresponse partial_credit="EDC"><checkboxgroup><choice correct="true">…</choice></checkboxgroup>
Numerical<numericalresponse answer="12.5"><responseparam type="tolerance" default="0.1"/><formulaequationinput/>
Text<stringresponse answer="median" type="ci"><textline size="30"/>
Dropdown<optionresponse><optioninput><option correct="True">right-skewed</option><option correct="False">symmetric</option></optioninput> — nested <option> elements; the options="('a','b')" correct="a" attribute form is not valid here

Full snippets with hints and solutions: references/olx.md.

Authoring rules

  • Questions test the unit's objective, at the unit's level, in the unit's terms; distractors are plausible mistakes, not jokes or throwaways. Questions drafted by a sub-agent are reviewed against the content brief (/iblai-api-studio "Content quality") for alignment, difficulty, consistency with the reading and valid OLX before they are posted — the block goes live as written.
  • One <problem> root; one *response per question, each with its own <label> (required) and optional <description> (hint under the label). Mix types freely.
  • Every choice gets a <choicehint> where feedback helps; every question gets a <solution> — formative value comes from the explanation, not the score.
  • shuffle="true" on <choicegroup>/<checkboxgroup> unless option order carries meaning (fixed="true" pins "All of the above").
  • Escape <, > and & in question text (&lt; …); OLX is XML. Validate before sending — Studio stores invalid XML and the unit then fails to render for users.
  • Partial credit for checkboxes: <choiceresponse partial_credit="EDC">; numeric tolerance: <responseparam type="tolerance" default="5%"/>.
  • Formative check inside a lesson: max_attempts 2–3, showanswer: finished, weight = question count, subsection notgraded. Summative: max_attempts: 1, showanswer: past_due or never, in a graded subsection.
  • Randomized variants, custom Python graders and images are supported by OLX but out of scope here — start from references/olx.md and the Open edX "Problem OLX" docs for anything beyond the five types.

Reference material

  • references/olx.md — copy-ready OLX for multiple choice, checkboxes, numerical input, text input and dropdown, with hints and solutions, the multi-question pattern, and the metadata cheat sheet.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Iblai Api Studio Problem?

Add and edit problem (assessment) components in an Open edX unit on Studio — create ONE problem block per unit that holds all of the unit's questions as several OLX responses, write the OLX in data, set display name, max attempts, weight, show-answer and randomization in metadata, and clear the stale markdown so the OLX is authoritative. Ships verified OLX for multiple choice, checkboxes, numerical, text and dropdown questions with hints and solutions. Use when the user wants a quiz, questions, exercise, assessment, knowledge check or any of those answer types. Session auth via studio.env;...

Firwat Iblai Api Studio Problem op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Iblai Api Studio Problem besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Iblai Api Studio Problem an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-problem an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Iblai Api Studio Problem benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Iblai Api Studio Problem benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Iblai Api Studio Problem domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Iblai Api Studio Problem gratis?

Jo. De Skill gëtt vum iblai ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇