Skip to content
Back to skills

Publish

ASecurity

Package a CourseCode course for an LMS (SCORM 1.2, SCORM 2004, cmi5, LTI 1.3), deploy it to CourseCode Cloud, or export a shareable preview or single HTML file. Use when someone wants to export, build, package, upload, deploy, publish, or share a finished course.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgogitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add course-code-framework/coursecode --skill publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/course-code-framework-publish/badge)](https://www.skillsdirectory.com/skills/course-code-framework-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: publish
description: Package a CourseCode course for an LMS (SCORM 1.2, SCORM 2004, cmi5, LTI 1.3), deploy it to CourseCode Cloud, or export a shareable preview or single HTML file. Use when someone wants to export, build, package, upload, deploy, publish, or share a finished course.
---

# Publish a course

## 1. Preflight

- `coursecode_lint` must report zero errors. Fix them first.
- Recommend the `review` skill if the course has not been reviewed.
- Check `course/course-config.js` for the course title, description, and version. The version appears in the package file name.

## 2. Ask where the course is going

| Destination | What to run |
|---|---|
| An LMS (upload a ZIP) | `npx coursecode build --format <format>` |
| CourseCode Cloud (hosted, any LMS format on demand, preview links) | `npx coursecode deploy` |
| Stakeholder review without an LMS | Cloud preview link, or `npx coursecode preview --export` |
| One file to email or open offline | `npx coursecode export html` |

### LMS formats

Ask which LMS they use or which standard it supports. If they do not know:

- `scorm1.2`: works in almost every LMS. The safe default for older or unknown systems.
- `scorm2004`: richer tracking and sequencing; most corporate LMSs.
- `cmi5`: modern xAPI-based standard; requires LMS support.
- `lti`: LTI 1.3 launch from a server-backed platform. Needs extra setup; see `framework/docs/USER_GUIDE.md`.

`build` lints, builds into `dist/`, and writes the ZIP to the project root, named `<course>_v<version>_<format>.zip`. Check that the command succeeded and the ZIP exists before reporting its file name, then tell the author to upload it as a new course or package in their LMS and test it there before rollout.

### CourseCode Cloud

Cloud is optional and needs an existing account. Deploying uploads the course files, so confirm which course and whether it is a preview or production deploy before running anything.

1. Check sign-in with `npx coursecode whoami`. If needed, run `npx coursecode login` (once per machine). It prints a URL and a short code. Run it in the background, give the author the URL and code, and wait until it reports success. Never ask for or handle their password, token, or API key.
2. Deploy:
   - `npx coursecode deploy` uploads and follows the course's deploy-mode setting for production.
   - `npx coursecode deploy --preview` updates only the review link; add `--password <value>` to protect it.
3. Share the dashboard and preview links the command prints. Cloud generates any LMS format on demand, so no format choice is needed. If the command reports an error or a plan limit, say so plainly; do not report a failed deploy as live, and never start a checkout or upgrade.

Courses linked to a GitHub repo in Cloud deploy production through `git push`; the CLI only allows `--preview` for them.

### Static preview or single file

- `npx coursecode preview --export` writes a static preview to `./course-preview` for any web host. Add `--password <value>` for a soft password gate (not real security).
- `npx coursecode export html` writes one self-contained HTML file named after the course. Progress is not reported to an LMS.

## 3. Wrap up

Tell the author what was produced, where it is, and how to test it (upload to their LMS test environment, or open the preview link). Suggest committing the project to git so this version can be rebuilt later.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.