Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This repo is both the framework source and the template for new course projects.
- `template/course/` — doubles as the test course for framework development
- `vite.framework-dev.config.js` — framework dev build (references `lib/` directly); `template/vite.config.js` is the course-author build (imports from the `coursecode` package)
- `plugin/` — one plugin for Claude Code (`.claude-plugin/plugin.json`, `.mcp.json`, `hooks/`) and Codex (`plugin.json`, `mcp.json`), sharing `skills/` and the `mcp/coursecode-mcp.mjs` launcher. Both repo marketplaces (`.claude-plugin/marketplace.json`, `.agents/plugins/marketplace.json`) point at it. `npm run plugin:pack` builds the Codex directory package with a bundled runtime in ignored `artifacts/codex-plugin/`; see `plugin/CODEX.md`.
- `lib/agent-setup.js` — MCP settings and `AGENTS.md` that `coursecode create` and `coursecode agent-setup` write into course projects
- `lib/agent-setup.js` — MCP settings, `AGENTS.md`, and copies of the project-stage plugin skills (as `coursecode-*` in `.claude/skills/` and `.agents/skills/`) that `coursecode create` and `coursecode agent-setup` write into course projects. `plugin/skills/` ships in the npm package for this; the rest of `plugin/` does not.

Changes under `template/` ship to every new course project. Keep framework-dev-only content out of it.

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- **Workflow skills in every project:** `coursecode create` and `coursecode agent-setup` now copy the plugin's `outline`, `build-slides`, `review`, and `publish` skills into the project as `coursecode-outline`, `coursecode-build-slides`, `coursecode-review`, and `coursecode-publish`, in `.claude/skills/` (Claude Code) and `.agents/skills/` (Codex, Cursor, VS Code). AI tools get the guided workflow without installing the plugin. Existing skill files are never overwritten, and `--plugin` skips them because the plugin provides the same skills.

### Changed
- **Getting started:** The README, User Guide, and plugin docs lead with one prompt to paste into any AI tool, which runs `npx coursecode@latest create .`. The Claude Code and Codex plugin is described as optional.
- **First-run guidance:** `coursecode create` now says to quit and restart an AI tool that is already open, so it loads the project's CourseCode tools, and the project `AGENTS.md` tells the AI what to say when the tools are missing.

## [0.4.4] - 2026-10-30

### Added
Expand Down
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Framework documentation lives at [coursecodeframework.com/docs](https://courseco

## Features

- **Works with your AI tool**: A plugin for Claude Code and Codex, and MCP settings for Claude Code, Codex, Cursor, and VS Code in every new project. Any other MCP client can run `coursecode mcp`
- **Works with your AI tool**: Every new project includes MCP settings and workflow skills for Claude Code, Codex, Cursor, and VS Code. Any other MCP client can run `coursecode mcp`, and an optional plugin is available for Claude Code and Codex
- **No coding required to start**: Describe what you want and let AI help build slides, interactions, and structure
- **Course modernization**: Use existing SCORM courses, PowerPoints, PDFs, Word docs, scripts, and SME notes as source material for upgraded courses
- **LMS integration**: SCORM 1.2, SCORM 2004, and cmi5 packaging, plus an LTI 1.3 browser contract for trusted server-backed launches
Expand All @@ -35,46 +35,46 @@ Framework documentation lives at [coursecodeframework.com/docs](https://courseco

## Quick Start

### With the plugin (recommended)
You need [Node.js](https://nodejs.org/) 22.15 or later and an AI tool that can run commands, such as Claude Code, Codex, Cursor, or VS Code with GitHub Copilot. Your AI tool can install Node.js for you.

The Claude Code and Codex plugin guides your AI tool from a new project to an LMS package, and it works before a project exists. It is not yet in the Claude Code or Codex plugin directories, so install it from this repository:
1. Create an empty folder for your course and start your AI tool in it.
2. Paste this:

```bash
# Claude Code
claude plugin marketplace add course-code-framework/coursecode
claude plugin install coursecode@coursecode

# Codex
codex plugin marketplace add course-code-framework/coursecode
codex plugin add coursecode@coursecode
```
```text
Set up a CourseCode Framework course in this folder. Check that Node.js 22.15 or later is installed and help me install it if it isn't. Then run `npx coursecode@latest create .` and tell me what to do next.
```

Then start a new chat in your AI tool in an empty folder and describe the course you want. In Codex, ask it to set up CourseCode Framework first; see the [Codex setup guide](plugin/CODEX.md#install-from-github) for connection checks and updates.
3. When it's done, quit your AI tool and start it again in the same folder so it loads the CourseCode tools. Claude Code asks once to approve the `coursecode` server; Codex asks you to trust the folder.
4. Describe the course you want.
5. When the course is ready, ask your AI tool to export it for your LMS (SCORM 1.2, SCORM 2004, cmi5, or LTI 1.3), or to deploy it to [CourseCode Cloud](https://coursecodecloud.com) for hosting, share links, and analytics. Cloud is optional.

The plugin needs [Node.js](https://nodejs.org/) 22.15 or later but no global `coursecode` install. If Node.js is missing, its `setup` skill offers to install it. The plugin bundles the MCP server below and six skills: setup, new-course, outline, build-slides, review, and publish. See [plugin/README.md](plugin/README.md).
The project includes MCP settings for Claude Code, Codex, Cursor, and VS Code, an `AGENTS.md` with the authoring workflow, and four workflow skills (outline, build slides, review, publish). Nothing else needs installing, and no account is required.

### With npx

With [Node.js](https://nodejs.org/) 22.15 or later installed, create a project:
### Without an AI tool

```bash
npx coursecode create my-course
npx coursecode@latest create my-course
cd my-course
npx coursecode preview
```

Open the `my-course` folder in Claude Code, Codex, Cursor, or VS Code and describe the course you want. The project includes MCP settings for each of those tools and an `AGENTS.md` with the authoring workflow, so the AI tool connects on its own. Claude Code asks once to approve the project's MCP server; Codex reads project settings after you trust the folder.
Open `http://localhost:4173` to view and edit your course. The example course included with every new project is a complete guide to using CourseCode.

To preview without an AI tool:
### Claude Code and Codex plugin (optional)

```bash
cd my-course
npx coursecode preview
```
The plugin runs the CourseCode tools in every folder, so your AI tool can start a course before a project exists. You don't need it, because projects already include the tools and skills. Install it from this repository:

Open `http://localhost:4173` to view and edit your course.
```bash
# Claude Code
claude plugin marketplace add course-code-framework/coursecode
claude plugin install coursecode@coursecode

The example course included with every new project is a complete guide to using CourseCode.
# Codex
codex plugin marketplace add course-code-framework/coursecode
codex plugin add coursecode@coursecode
```

Start with the [User Guide](framework/docs/USER_GUIDE.md) for a complete walkthrough.
See [plugin/README.md](plugin/README.md). Start with the [User Guide](framework/docs/USER_GUIDE.md) for a complete walkthrough.

---

Expand All @@ -100,7 +100,7 @@ Also recommended:

CourseCode includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server. When your AI tool supports MCP, it connects directly to your course project, so you don't have to paste files into a chat.

New projects already include MCP settings for Claude Code (`.mcp.json`), Codex (`.codex/config.toml`), Cursor (`.cursor/mcp.json`), and VS Code (`.vscode/mcp.json`). To add them to an existing project, run `coursecode agent-setup`. Any other MCP client can start the server with:
New projects already include MCP settings for Claude Code (`.mcp.json`), Codex (`.codex/config.toml`), Cursor (`.cursor/mcp.json`), and VS Code (`.vscode/mcp.json`), plus workflow skills in `.claude/skills/` and `.agents/skills/`. To add them to an existing project, run `coursecode agent-setup`. Any other MCP client can start the server with:

```bash
coursecode mcp
Expand Down Expand Up @@ -243,7 +243,7 @@ Other ways to share it:
| `coursecode export html` | Create one shareable course file that opens without an LMS or server |
| `coursecode convert` | Convert PDFs, Word, PowerPoint to markdown |
| `coursecode mcp` | Start the MCP server for AI integration |
| `coursecode agent-setup` | Add MCP settings for Claude Code, Codex, Cursor, and VS Code, plus `AGENTS.md`, to an existing project |
| `coursecode agent-setup` | Add MCP settings, `AGENTS.md`, and workflow skills for Claude Code, Codex, Cursor, and VS Code to an existing project |
| `coursecode lint` | Validate course structure and content |
| `coursecode build` | Build a package for LMS upload |
| `coursecode narration` | Generate audio narration from text |
Expand Down
12 changes: 6 additions & 6 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ program
.option('--blank', 'Create without example slides (clean starter)')
.option('--no-install', 'Skip npm install')
.option('--start', 'Start the preview server after creation')
.option('--plugin', 'Skip .mcp.json because the CourseCode plugin provides the Claude Code MCP server')
.option('--plugin', 'Skip .mcp.json and project skills because the CourseCode plugin provides them')
.action(async (name, options) => {
const { create } = await import('../lib/create.js');
await create(name, options);
Expand All @@ -114,7 +114,7 @@ program
.option('--blank', 'Create without example content (clean starter)')
.option('--no-install', 'Skip npm install')
.option('--start', 'Start the preview server after creation')
.option('--plugin', 'Skip .mcp.json because the CourseCode plugin provides the Claude Code MCP server')
.option('--plugin', 'Skip .mcp.json and project skills because the CourseCode plugin provides them')
.action(async (name, options) => {
const { create } = await import('../lib/create.js');
await create(name || '.', { ...options, currentDirectory: true });
Expand Down Expand Up @@ -243,7 +243,7 @@ program
.option('-n, --name <name>', 'Project name (default: derived from filename)')
.option('--slides-dir <dir>', 'Use pre-exported slide images from this directory (skips PowerPoint)')
.option('--no-install', 'Skip npm install')
.option('--plugin', 'Skip .mcp.json because the CourseCode plugin provides the Claude Code MCP server')
.option('--plugin', 'Skip .mcp.json and project skills because the CourseCode plugin provides them')
.action(async (source, options) => {
const { importPresentation } = await import('../lib/import.js');
await importPresentation(source, options);
Expand Down Expand Up @@ -330,14 +330,14 @@ program
// AI tool settings for an existing project
program
.command('agent-setup')
.description('Add MCP settings for Claude Code, Codex, Cursor, and VS Code, plus AGENTS.md, to this project')
.option('--plugin', 'Skip .mcp.json because the CourseCode plugin provides the Claude Code MCP server')
.description('Add MCP settings, AGENTS.md, and workflow skills for Claude Code, Codex, Cursor, and VS Code to this project')
.option('--plugin', 'Skip .mcp.json and project skills because the CourseCode plugin provides them')
.action(async (options) => {
const { validateProject } = await import('../lib/project-utils.js');
validateProject();
const { writeAgentSetup } = await import('../lib/agent-setup.js');
const written = writeAgentSetup(process.cwd(), { plugin: options.plugin === true });
console.log(written.length ? `\n✅ Updated ${written.join(', ')}\n` : '\nAI tool settings are already in place.\n');
console.log(written.length ? `\n✅ Updated:\n${written.map(file => ` ${file}`).join('\n')}\n` : '\nAI tool settings are already in place.\n');
});
// Token generation command
program
Expand Down
Loading
Loading