Colab course publisher

From thecolab-ai/.skills · View interactive version

Colab course publisher is an AI agent skill from the GitHub repository thecolab-ai/.skills. Use when Codex needs to create, edit, publish, package, or validate The Colab CourseViewerPlatform course content, including tenant course repos, course.json, blueprint.json, module manifests, markdown lessons, quizzes, generated educational images, HTML widgets, and live CourseViewerPlatform conten

How to use this skill

Skill file

Colab Course Publisher

Goal

Build CourseViewerPlatform-compatible course packages, validate their modules, and verify tenant-published content after deployment.

Quick triage

Use this when:

Do not use this for:

Core workflow

  1. Prefer the module-first format: courses/<courseId>/course.json or blueprint.json plus sibling modules/<moduleId>/manifest.json.
  2. Read references/course-format.md before creating or reshaping course files.
  3. Keep module lessons flat at the module root, with module-local assets in assets/.
  4. Use markdown for lessons, JSON for quizzes, and widgets/<name>.html plus :::widget name for reusable HTML artifacts.
  5. Put research findings, tables, caveats, and practical examples in the lesson body. Use links as bottom references, not as a substitute for course substance.
  6. Run the validator after every structural change:
python3 skills/colab-course-publisher/scripts/cli.py validate /path/to/content-root

For a single course directory, validation also follows referenced modules. Validate the tenant root when changing shared widgets or multiple courses.

Checks

Resources

CLI

Use outline to print the supported structure:

python3 skills/colab-course-publisher/scripts/cli.py outline
python3 skills/colab-course-publisher/scripts/cli.py outline --json

Use validate for content:

python3 skills/colab-course-publisher/scripts/cli.py validate ~/CourseViewerPlatform/content/thecolab
python3 skills/colab-course-publisher/scripts/cli.py validate ~/CourseViewerPlatform/content/thecolab/courses/ai-for-small-business
python3 skills/colab-course-publisher/scripts/cli.py validate ~/CourseViewerPlatform/content/thecolab/modules/afsb-ai-tools --json

Use --strict when warnings should fail the command.

Publishing quick path

  1. Work in the tenant content repo when one exists, for example /tmp/<tenant>-course-repo or a clone of mycourse-work/<tenant>.
  2. Validate the changed course or tenant root.
  3. Commit and push the tenant repo branch/main according to that repo's workflow.
  4. Watch the tenant sync workflow upload to R2 and register D1 content.
  5. Fetch live cache-busted lesson and manifest endpoints to prove the viewer will receive the new content.

See references/publishing-workflow.md for endpoint examples and deployment checks.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.