/iblai-vibe:iblai-api-studio-course-createfrom ibl.ai vibe
Creates, lists, reads, and deletes Open edX courses on ibl.ai Studio via the management API. Use when the user needs a new course shell, their course key, or to remove a course.
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.
Create the course shell that every other /iblai-api-studio-* skill fills.
One call, one course key. Studio on ibl.ai exposes a management endpoint that
also registers the course in the ibl.ai catalog and gives the creator the
course-instructor role — use it, not the stock Studio route.
node .claude/skills/iblai-api-studio-auth/scripts/studio-login.mjs --check prints two oks and studio.env has STUDIO_ORG=<org key>. Anything else → /iblai-api-studio-auth first; never guess an org key and never use main.org-instructor for that org (GET /api/ibl/users/manage/roles/?username=$STUDIO_USERNAME); otherwise /iblai-api-management grants it.number and run with the user — they are part of the key forever.$STUDIO_URL; Studio session cookies + CSRF 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")
The shell you create here is judged by what fills it. Before building, agree
this shape with the user (details in /iblai-api-studio "Planning a
production-grade outline"):
Week 2 · Reading data critically → 2.1 Distributions → Overview / Reading / Practice / Summary), unit titles that say what the page is, component titles that are never left as "Text" or "Multiple Choice".<section> with the spacing rules of /iblai-api-studio-html./iblai-api-studio "Content quality"). Well written, presentable, beautiful, informative without distraction, carefully planned and reviewed — for every unit, not on average./iblai-api-studio-settings), grading policy set, outline complete — then one publish./api/contentstore/v2/home/courses?page=1&search=<text> — the signed-in user's courses (paginated):
{count, num_pages, next, previous, results: {courses: [{course_key, display_name, org, number, run, url, cms_link, lms_link, rerun_link, is_active}], in_process_course_actions: []}}.
search matches the display name. (/api/contentstore/v1/home/courses returns the same unpaginated as {courses, archived_courses}.)/api/ibl/manage/course/?course_key=<url-encoded key> — one course's summary:
{course_key, org, number, run, display_name, url}. 400 {"error":"course_key parameter is required"} without the param; 404 if unknown./xblock/outline/block-v1:<org>+<number>+<run>+type@course+block@course — the course root as Studio sees it (display_name, published, has_changes, start, course_graders, child_info.children = sections). Detailed in /iblai-api-studio-section./api/ibl/users/manage/roles/?username=$STUDIO_USERNAME — the user's edX roles: [{role, org, course}]. Creating needs org-instructor (or course-creator / org-course-creator) for the target org.POST /api/ibl/manage/course/ — create a course. Confirm with the user first.
{ "org": "acme", "display_name": "Intro to Data", "number": "DATA101", "run": "2026-T1" }
org and display_name are required. number and run are optional: when
omitted Studio assigns C<n> (next free number in the org) and the current
YYYY-MM. Response 200:
{ "url": "/course/course-v1:acme+DATA101+2026-T1", "course_key": "course-v1:acme+DATA101+2026-T1" }
Side effects: the caller becomes course-instructor + course-staff on it, is
enrolled, and the course is registered in the ibl.ai catalog for that org
(it shows in the LMS app's catalog immediately, empty and unpublished).
Errors: 401 no/expired session → /iblai-api-studio-auth;
403 {"error": "Permission denied"} — the user cannot create courses in that
org, or org is missing → grant org-instructor via /iblai-api-management;
400 {"ErrMsg": "There is already a course defined with the same organization and course number…", "OrgErrMsg", "CourseErrMsg"} — org+number+run exists
(pick a new run, or reuse the existing key).
POST /api/ibl/manage/course/delete — DANGER: deletes the course, its content, its users' enrollments and progress, permanently and without undo. In production this is data loss. Do not run it because it seems convenient; treat it as a last resort that the user must ask for explicitly.
Required before calling, all of them:
/iblai-api-studio-settings: catalog_visibility: "none", visible_to_staff_only on sections, or an end_date in the past).GET /api/ibl/manage/course/?course_key=… returns the course and its display_name matches what the user named; show both to the user.POST $LMS_URL/courses/{COURSE}/instructor/api/get_students_features (/iblai-api-studio-lms) — if anyone besides the author is enrolled, stop and report the count; deletion needs an explicit decision from the user with that number in front of them.studio.learn.iblai.app) ask a second time.{ "course_key": "course-v1:acme+DATA101+2026-T1", "keep_instructors": true, "remove_assets": false }
→ 200 {"message": "course with id: course-v1:… deleted"}. Needs org-instructor for the course's org (or global staff). 404 {"error":"Course key does not exist"}, 400 for a missing/invalid key, 403 without the role. Keep remove_assets: false (files may be referenced elsewhere) and keep_instructors: true unless told otherwise. Report the deletion in the final summary.
The stock Studio POST /course/ ({org, number, run, display_name}) exists
but answers 403 "User does not have the permission to create courses in this organization" for org instructors; only use it for global course
creators, and prefer the endpoint above because of its catalog registration.
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=$(curl "${S[@]}" -X POST "$STUDIO_URL/api/ibl/manage/course/" \
-d "{\"org\":\"$STUDIO_ORG\",\"display_name\":\"Intro to Data\",\"number\":\"DATA101\",\"run\":\"2026-T1\"}" \
| python3 -c 'import sys,json; print(json.load(sys.stdin)["course_key"])')
echo "$COURSE" # course-v1:acme+DATA101+2026-T1
ROOT="block-v1:${COURSE#course-v1:}+type@course+block@course" # parent_locator for sections / the bulk builder
parent_locator for
/iblai-api-studio-section and /iblai-api-studio-outline, and the target for a whole-course publish.number and run become part of the key forever: letters, digits, ., _, -
only, no spaces. Use a run that encodes the cohort (2026-T1, self-paced).start = 2030-01-01 (never released) and no
content: set real dates, pacing and enrollment window in /iblai-api-studio-settings before the first publish.number+run fails; list first and reuse the key
if the course already exists.$LMS_APP_URL/platform/<org>/courses/<course_key>./iblai-vibe-course-create.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.Other plugins' skills for the same job