Logotipo de Iblai Api Studio Publish

Iblai Api Studio Publish

Organización
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.

Descripción general

Editoriblai
Repositoriovibe
Nombre de la habilidadiblai-api-studio-publish
Estrellas
229
Forks
8
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por iblai en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Iblai Api Studio Publish en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-publish
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Iblai Api Studio Publish en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Iblai Api Studio Publish automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Iblai Api Studio Publish no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Iblai Api Studio Publish en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Iblai Api Studio Publish está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Iblai Api Studio Publish en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/iblai/vibe/tree/main/skills/content/iblai-api-studio-publish. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Iblai Api Studio Publish?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Iblai Api Studio Publish?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Iblai Api Studio Publish con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Iblai Api Studio Publish?

Sí. iblai la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇