/iblai-vibe:iblai-api-studio-problemfrom ibl.ai vibe
Creates and edits problem (assessment) blocks in Open edX Studio using OLX. Handles multiple choice, checkboxes, numerical, text, and dropdown questions with hints and solutions. Requires session auth preflight.
Ships in ibl.ai vibe. 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.
Read when SKILL.md points to them.
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.
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./iblai-api-studio-unit (or the unit list from /iblai-api-studio-outline).graderType (/iblai-api-studio-subsection) that exists in the grading policy (/iblai-api-studio-grading).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.
$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).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")
…+type@problem+block@<hex>./xblock/{problem} — { "display_name", "category": "problem", "data": "<problem>…</problem>", "metadata": { "display_name", "max_attempts", "weight", "showanswer", "rerandomize", "markdown", … }, "published", "has_changes" }./api/contentstore/v1/container/vertical/{unit}/children — the unit's components (block_type: "problem")./xblock/ — create:
{ "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./xblock/{problem} — write the questions:
{ "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)./xblock/ { "duplicate_source_locator": "<problem>", "parent_locator": "<unit>" } — copy./xblock/{problem} → 204. Confirm with the user first./iblai-api-studio-outline the same block is { "problem_type": "blank", "data": "<OLX>", "metadata": { …, "markdown": null } } inside a unit's problems.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 @-
| Type | Element | Answer 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.
/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.<problem> root; one *response per question, each with its own <label> (required) and optional <description> (hint under the label). Mix types freely.<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").<, > and & in question text (< …); OLX is XML. Validate before sending — Studio stores invalid XML and the unit then fails to render for users.<choiceresponse partial_credit="EDC">; numeric tolerance: <responseparam type="tolerance" default="5%"/>.max_attempts 2–3, showanswer: finished, weight = question count, subsection notgraded. Summative: max_attempts: 1, showanswer: past_due or never, in a graded subsection.references/olx.md and the Open edX "Problem OLX" docs for anything beyond the five types.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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools./iblai-api-agent-createCreate a new ibl.ai agent from a template via the platform API — set name, display name, description, categories, visibility, prompts, and LLM provider; returns the new agent's unique id. Read which create fields the caller may write (field-permissions) first, since a create that sends a forbidden field is refused. Use when creating an agent from scratch, checking what a user may set when creating one, then configure it with the other /iblai-api-agent-* skills./iblai-api-agent-datasetManage an ibl.ai agent's training datasets (RAG) via the platform API — list training docs, add resources (file, URL, YouTube, Blackboard, website crawl, GitHub), train/untrain, set visibility and retrain schedule, and delete. Use when feeding an agent knowledge./iblai-api-agent-disclaimerManage an ibl.ai agent's disclaimers via the platform API — the Advisory text (saved through the agent settings endpoint), the User Agreement (create/update/activate), and the record of who accepted it. Use when adding legal or advisory notices users must see or accept, or auditing acceptances.Other plugins' skills for the same job