/iblai-vibe:iblai-api-studio-sectionfrom ibl.ai vibe
Creates, renames, reorders, and deletes sections (chapter blocks) in an Open edX Studio course outline. Also reads the full outline with publish state and visibility. Requires session auth from studio.env.
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.
None: SKILL.md is the whole skill.
A course outline is a tree: course → section (chapter) → subsection
(sequential) → unit (vertical) → components. Sections are the top level.
This skill covers sections and the outline read; subsections and units have
their own skills with the same /xblock/ mechanics.
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-course-create (→ ROOT below) and the outline planned per /iblai-api-studio./iblai-api-studio-outline creates every section/subsection/unit in one call; use this skill for edits and additions.$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")
ROOT=block-v1:<org>+<number>+<run>+type@course+block@course; a section is block-v1:…+type@chapter+block@<hex> (the locator returned on create)./iblai-api-studio-publish./xblock/outline/{ROOT} — the full outline, sections → subsections → units (components are not included). Each node:
{id, display_name, category, has_children, published, published_on, has_changes, visibility_state, released_to_students, release_date, start, due, format, graded, has_explicit_staff_lock, studio_url, lms_url, actions, child_info: {category, display_name, children: […]}}.
visibility_state ∈ live · ready (published, release date in the future) · unscheduled · needs_attention (unpublished changes) · staff_only · gated.
The root also carries course_graders (assignment types from the grading policy) and start./xblock/outline/{section} — the same for one section and its descendants./xblock/{section} — the section's own fields (metadata, published, has_changes, start, visibility_state), no children./xblock/ — create a section:
{ "parent_locator": "<ROOT>", "category": "chapter", "display_name": "Week 1 — Foundations" }
→ { "locator": "block-v1:…+type@chapter+block@<hex>", "courseKey": "course-v1:…" }. New sections append at the end./xblock/{section} — update fields; send only what changes:
{ "metadata": { "display_name": "Week 1", "start": "2026-10-01T00:00:00Z", "visible_to_staff_only": true } }
→ { "id", "data": null, "metadata": {…echo of the stored metadata…} }.
start = release date (ISO 8601 UTC; users cannot open it before). visible_to_staff_only: true hides it from users even when published (false or "nullout": ["visible_to_staff_only"] to clear).
Optional: "metadata": {"highlights": ["Topic A", "Topic B"]} for weekly highlight emails./xblock/{ROOT} { "children": ["<section A>", "<section B>", …] } — reorder sections (the list must contain every current section id). Sections cannot be moved with the move_source_locator PATCH (400 "You can not move chapter into course"); reorder this way./xblock/ { "duplicate_source_locator": "<section>", "parent_locator": "<ROOT>" } — duplicate a section with everything inside → {locator, courseKey}./xblock/{section} → 204. Confirm with the user first./xblock/{section} { "publish": "make_public" } — publish the section and all its descendants (details and discard_changes in /iblai-api-studio-publish).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")
COURSE="course-v1:acme+DATA101+2026-T1"; ROOT="block-v1:${COURSE#course-v1:}+type@course+block@course"
SECTION=$(curl "${S[@]}" -X POST "$STUDIO_URL/xblock/" \
-d "{\"parent_locator\":\"$ROOT\",\"category\":\"chapter\",\"display_name\":\"Week 1\"}" \
| python3 -c 'import sys,json; print(json.load(sys.stdin)["locator"])')
curl "${S[@]}" -X POST "$STUDIO_URL/xblock/$SECTION" -d '{"metadata":{"start":"2026-10-01T00:00:00Z"}}' >/dev/null
curl "${S[@]}" "$STUDIO_URL/xblock/outline/$ROOT" | python3 -c '
import sys,json
for s in json.load(sys.stdin)["child_info"]["children"]:
print(s["display_name"], s["visibility_state"], "changes" if s["has_changes"] else "", s["id"])'
published: true, has_changes: false
only because it is empty — its content will need publishing.2026-10-01T00:00:00Z).start (in /iblai-api-studio-settings) gates everything: a
section release date earlier than the course start is still not visible./iblai-api-studio-subsection (lessons inside this section).What SKILL.md sets; muted values are Claude Code's defaults
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