Course creator

From X-School-Academy/skill-pilot · View interactive version

Course creator is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Create interactive courses and assignments for students in the project's markdown format. Use when asked to create a new course, educational module, or assignment.

How to use this skill

Skill file

AI Builder - Course Creator

This skill creates structured, engaging educational content using the project's specialized markdown block system. It supports two distinct course formats. If the requested format is unclear, default to guided_challenge for online interactive tutorial courses.

When to Use This Skill

Your Roles in This Skill

Role Communication

Announce your actions before performing them using:

As a {Role} [and {Role}, ...], I will {action description}

Two Supported Course Types

The first decision is which format fits the task. Use an explicit user request when one is provided. If the user asks for an online interactive tutorial course but does not state a type, default to guided_challenge.

Type 1: `guided_challenge` (step-gated assignment)

A staged, app-driven assignment rendered by course.block.tsx. Every visible piece of content lives inside a fenced code block; narration outside fences is ignored. Steps advance via control blocks, quizzes gate progression, terminal commands can be validated server-side, and progress is tracked.

Use this when the learner should be walked through a sequence with checkpoints (interactive coding, terminal validation, forms, container provisioning, etc.).

File location: workspace/learning/{slug}.md by default. If the user or calling tool provides an explicit output file path, write the course to that exact path instead.

Required first block — a yaml meta fence. Add type: guided_challenge to declare the course type:

title: "Your Course Title"

slug: your-course-slug

type: guided_challenge

duration: 30 minutes

id: 1

token: your-token

After the meta block, every step is a fenced block. Common ones:

Escaping: any inner triple-backticks inside a fenced step must be written as \\\` (escaped). The renderer unescapes them.

See references/sample-guided-challenge.md (in this skill folder) for a working guided_challenge reference.

Type 2: `interactive_tutorial` (rich article with interactive blocks)

A flowing, readable article rendered as normal markdown, with inline interactive code blocks scattered through the prose. There is no step gating; the learner scrolls, reads, runs code, and explores tabs at their own pace.

Use this when the goal is to teach or showcase concepts in a narrative, encyclopedic, or comparative way (e.g., "Hello World in 12 languages", "Syntax differences across languages", reference material with runnable examples).

File location: workspace/learning/{slug}.md by default. If the user or calling tool provides an explicit output file path, write the tutorial to that exact path instead, including paths under .skillpilot/temp/ for generated intermediate artifacts.

Required header — a YAML frontmatter block delimited by --- (NOT a fenced yaml code block). It must be the very first content in the file:

---
title: "Your Tutorial Title"
slug: your-tutorial-slug
type: interactive_tutorial
duration: 30 minutes
id: 1
token: your-token
---

After the frontmatter, write normal markdown — headings, paragraphs, lists, images. Interactive elements go inline as standard fenced code blocks with meta:

Do not use control blocks (type:control), step gating, during, or submit in this format — those are exclusive to guided_challenge.

See references/sample-interactive-tutorial.md (in this skill folder) for a working interactive_tutorial reference.

Block Reference

For every supported block (meta fields, optional flags, language list, VS Code event contract): see core/webui/docs/markdown-block-docs.md.

Instructions

Step 1 — Define the Foundation

As a Product Manager:

  1. Determine the course type (guided_challenge vs interactive_tutorial). If the user did not specify one, default online interactive tutorial courses to guided_challenge.
  2. Define the goal: what should the student be able to DO afterward?
  3. Identify the audience (e.g., high-schooler, beginner dev, professional).
  4. Set a realistic duration (20–30 min minimum for a guided challenge; tutorials can be longer).

Step 2 — Research and Content Mapping

As a Technical Writer:

  1. Research the topic for current best practices and common pitfalls.
  2. Map key concepts.
  3. Identify the right interactive opportunities for the chosen format (forms + validation for guided_challenge; inline runnable snippets / tabs for interactive_tutorial).

Step 3 — Design the Structure

As a Project Manager:

Step 4 — Author the File

As a Backend Developer, write the file at the explicit output path if one was provided; otherwise write it at workspace/learning/{slug}.md using the format for the chosen type.

Required header rules:

Step 5 — Final Review

As a Technical Writer, verify:

Key Principles

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.