Iblai Api Studio Publish logo

Iblai Api Studio Publish

Organization
iblai
iblai-api-studio-publish

Publish draft changes of an Open edX course on Studio — make a unit, subsection, section or the whole course public, read the publish and visibility state of every block (published, has_changes, visibility_state), discard unpublished changes, and confirm users can now see the content; includes the first-publish checklist (settings, pacing, enrollment window, complete outline). Use when the user says publish, go live, release, "users can't see", draft vs published, discard changes, or asks whether the course is published. Session auth via studio.env; run the auth preflight first.

Overview

Publisheriblai
Repositoryvibe
Skill nameiblai-api-studio-publish
Stars
229
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by iblai on GitHub. Read the source before you install it.

Installation

Install the Iblai Api Studio Publish AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-publish
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-publish .claude/skills/iblai-api-studio-publish
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Iblai Api Studio Publish in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Iblai Api Studio Publish on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Iblai Api Studio Publish is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

iblai-api-studio-publish

Every edit in Studio is a draft. Users see a block only once it — or an ancestor — has been published. Publishing is a value of the publish key on the generic block update, applied at any level of the tree. This skill is the last step of a build and the first thing to check when "it's not showing".

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. First publish of a course — check, in this order: settings done (/iblai-api-studio-settings: real start_date, enrollment_start before it, pacing decided — pacing locks once the course starts), grading policy set, the outline complete and reviewed with the user (GET /xblock/outline/{ROOT}), every unit has content. A published empty or half-built course is what users find in the catalog.
  3. The locator of what to publish (a unit, subsection, section, or ROOT).

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")
  • ROOT="block-v1:<org>+<number>+<run>+type@course+block@course"; any block locator works as the target.
  • Publishing is outward-facing (users see it at once, on schedule) — confirm the target with the user before publishing a whole course. discard_changes destroys draft work — confirm with the user first.
  • /iblai-api-studio-outline's create_full_course publishes the whole course by itself — nothing to do here after it, except re-publishing later edits.

Concepts — what the state fields mean

FieldValuesMeaning
publishedboola published version exists
has_changesboolthe draft differs from the published version
visibility_statelivepublished, released, visible now
readypublished, release date (start) in the future
unscheduledpublished but no release date
needs_attentionunpublished, or published with unpublished changes
staff_onlyhidden from users (visible_to_staff_only)
gatedbehind a prerequisite
released_to_studentsboolstart has passed (course start also applies)

"Visible to a user" = published ∧ released_to_students ∧ not staff_only ∧ enrolled.

Reads

  • GET /xblock/outline/{ROOT} — the whole tree with the fields above on every section/subsection/unit (child_info.children, recursive). Use it to find everything with has_changes: true.
  • GET /xblock/outline/{section} / GET /xblock/{block} — same fields for a subtree or one block.
  • GET /api/v1/ibl/course/{COURSE}/units — every unit with its components (/iblai-api-studio-outline); components have no publish state of their own, the unit's covers them.

Writes

  • POST /xblock/{block} { "publish": "make_public" } — publish the block and everything below it. block may be a unit, subsection, section, or ROOT for the whole course. → { "id", "data", "metadata" } (200). Idempotent. (v1 equivalent: POST /api/v1/ibl/xblock/publish { "locator" } → 200.)
  • POST /xblock/{block} { "publish": "discard_changes" } — throw away the draft and revert to the published version (subtree). → { "id" }. Confirm with the user first.
  • POST /xblock/{block} { "publish": "republish" } — re-run publish for a block already published with no changes (used after settings-only edits; harmless).
  • Combining: an update and a publish can be one call — { "metadata": { "display_name": "Week 1" }, "publish": "make_public" }.

Example

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")
COURSE="course-v1:acme+DATA101+2026-T1"; ROOT="block-v1:${COURSE#course-v1:}+type@course+block@course"

# publish everything
curl "${S[@]}" -o /dev/null -w '%{http_code}\n' -X POST "$STUDIO_URL/xblock/$ROOT" -d '{"publish":"make_public"}'

# what is still not visible? (script in a heredoc so quoting cannot break)
curl "${S[@]}" "$STUDIO_URL/xblock/outline/$ROOT" > outline.json
python3 - <<'PY'
import json
def walk(n, d=0):
    state = n.get("visibility_state")
    flag = "" if state == "live" else "  <- " + str(state) + (" (unpublished changes)" if n.get("has_changes") else "")
    print("  " * d + n["category"].ljust(11), n["display_name"] + flag)
    for c in (n.get("child_info") or {}).get("children", []):
        walk(c, d + 1)
walk(json.load(open("outline.json")))
PY

Notes

  • Publishing does not change dates: a block published with start in the future is ready, not live. Course start_date (/iblai-api-studio-settings) gates all of it.
  • staff_only stays hidden after publishing — clear visible_to_staff_only on the block (and check ancestor_has_staff_lock).
  • Publish at the smallest sensible level while iterating (a unit); publish ROOT once at the end of a build.
  • Course settings, grading policy and team changes need no publish.
  • LMS-side confirmation (published outline, block list, enrollment) is /iblai-api-studio-lms; the LMS app URL is $LMS_APP_URL/platform/<org>/course-content/<course_key>/course.

Frequently asked questions

What does the Iblai Api Studio Publish AI skill do?

Publish draft changes of an Open edX course on Studio — make a unit, subsection, section or the whole course public, read the publish and visibility state of every block (published, has_changes, visibility_state), discard unpublished changes, and confirm users can now see the content; includes the first-publish checklist (settings, pacing, enrollment window, complete outline). Use when the user says publish, go live, release, "users can't see", draft vs published, discard changes, or asks whether the course is published. Session auth via studio.env; run the auth preflight first.

Why use Iblai Api Studio Publish on TypingMind?

Because you install it once and use it with any model. Iblai Api Studio Publish is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Iblai Api Studio Publish in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-publish. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Iblai Api Studio Publish?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Iblai Api Studio Publish?

As many as you like. As long as a model supports skills, you can use Iblai Api Studio Publish with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Iblai Api Studio Publish AI skill free?

Yes. It is published on GitHub by iblai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇