Goal: Build a standalone web application (TutorialChat) for AI-powered MakeCode tutorial authoring.
No OpenClaw dependency - Self-contained web app with its own LLM backend.
The MakeCode web UI is fine for quick demos, but harder for:
- Version control (tutorials live in MakeCode cloud)
- Collaboration (no easy way to review/edit)
- Reuse (can't easily fork/remix tutorials)
- Backup (tutorials can get lost)
This project aims to:
- Use natural language to create a tutorial
- Convert tutorials to markdown (familiar, version-controlled)
- Automatically convert to MakeCode tutorial format
- Generate shareable URLs for students
- Support images, code blocks, hints, validation
As a teacher, I want to:
- Use natural language to create a tutorial
- Write a tutorial in markdown (with images + code)
- Run a command to publish it
- Get a shareable
makecode.microbit.org/#tutorial:...URL - Push the source to GitHub for backup/collaboration
TutorialChat Web App
├─ Frontend: Next.js + React (chat UI + preview)
├─ Backend: FeathersJS API
├─ LLM: Claude/OpenAI API (direct integration)
├─ Database: PostgreSQL (users + tutorials)
└─ GitHub: API integration (publishing)
User Flow:
Natural language → AI generation → Live preview → Publish to GitHub → Share URL
Key difference: No OpenClaw involved. Standalone app anyone can use.
See: architecture.md for complete technical specification.
MakeCode supports GitHub-hosted tutorials via:
https://makecode.microbit.org/#tutorial:github:username/repo/path/to/tutorial
So we need:
- Markdown source files (versioned in git)
- Converter script (markdown → MakeCode tutorial format)
- GitHub repo (public, for hosting)
- URL generator (constructs shareable links)
Status: Architecture complete, implementation pending
Docs: See architecture.md for full specification
Tech Stack:
- Frontend: Next.js + React + Tailwind CSS
- Backend: FeathersJS (Node.js + TypeScript)
- LLM: Anthropic Claude API (direct integration, no OpenClaw)
- Database: PostgreSQL
- Hosting: DigitalOcean App Platform or Vercel
Core Features:
- Chat interface for conversational tutorial creation
- Natural language → MakeCode markdown generation
- Live tutorial preview
- One-click GitHub publishing
- QR code generation
- User accounts + tutorial library
MVP Timeline:
- Week 1: Boilerplate + Claude integration + basic chat UI
- Week 2-3: Auth + database + tutorial CRUD + preview
- Month 1-2: GitHub integration + deployment + testing
- Month 3+: Pro features + public launch
Prototyping Tools (Temporary):
scripts/generate-tutorial.py- CLI prototype (for testing prompts)skill/SKILL.md- OpenClaw integration (development helper only)
These will be replaced by the web app backend.
Define the markdown format Brian will write in:
- Frontmatter (title, description, tags)
- Step structure (## headings = steps)
- Code blocks (TypeScript/blocks hybrid)
- Images (local paths, auto-uploaded)
- Hints, validation rules
See: format-spec.md
- Input: markdown file + images
- Output: MakeCode-compatible tutorial JSON
- Language: Python or Node (TBD based on MakeCode schema)
See: scripts/convert.py (or convert.js)
- Repo structure (tutorials/, assets/)
- Publish script (convert → commit → push)
- GitHub Pages config (if needed)
See: github-workflow.md
- Takes: repo, path
- Returns:
makecode.microbit.org/#tutorial:...URL - Bonus: QR code generation for classroom handouts
See: scripts/generate-url.sh
- Project scaffolding
- Research MakeCode tutorial format
- Define markdown format spec
- Build URL/QR code generators (standalone scripts)
- Create publish workflow scripts
- Example tutorial (blink-led)
- Complete technical architecture (standalone web app)
- CLI prototype for prompt testing (optional)
- Test live tutorial URL
- Generate 3-5 example tutorials (for testing)
Week 1:
- Next.js + FeathersJS boilerplate
- Claude API integration
- Basic chat UI (message input + response)
- Tutorial generation endpoint
Week 2-3:
- User authentication (JWT + email/password)
- Database setup (PostgreSQL + models)
- Tutorial CRUD operations
- Markdown preview panel
- Save/load drafts
Week 3-4:
- Download markdown (export)
- Tutorial library UI
- Edit existing tutorials
- Basic error handling
- Deploy to staging
- GitHub OAuth flow
- Repository selection/creation
- One-click publish to GitHub
- Generate MakeCode tutorial URLs
- QR code generation endpoint
- Publish status tracking
- Pro tier features (unlimited, priority)
- AI image generation
- Tutorial templates library
- Analytics dashboard
- Localization support
- Cross-linking with MicroChat
- Public launch + marketing
- MakeCode Tutorials Docs: https://makecode.com/writing-docs/tutorials
- micro:bit MakeCode: https://makecode.microbit.org
- Example Tutorials: (TBD - find popular tutorials, inspect source)
- MakeCode tutorial schema: What's the exact JSON format? (need examples)
- Hosting: GitHub Pages sufficient, or need CDN for images?
- Code blocks: How to specify blocks vs TypeScript? MakeCode supports both.
- Validation rules: How are step completion checks defined?
- Existing tools: Does MakeCode have official markdown converters?
Status: Project created 2026-04-12. Research phase.