Run an interactive AI lesson for kids age 7-10 in a classroom setting. The teacher collaborates live with an AI agent via a messaging app (e.g. Telegram): updating a kid-friendly website in real-time, generating AI images from kids' handwritten prompts using Gemini, and embedding a Teachable Machine webcam classifier.
Interactive ~45-minute AI lesson where kids learn what AI is, train their own image classifier, and generate AI art — all appearing live on a class website.
NETLIFY_AUTH_TOKEN — for deploying the websiteGEMINI_API_KEY — for AI image generationnpm install -g netlify-cli)curl, python3, bashmkdir -p /tmp/ai-lesson-site
# Copy the HTML template
cp assets/template.html /tmp/ai-lesson-site/index.html
# Edit the <title> and <h1> to match your class name
# Replace "NAZWA KLASY" with your class name
cd /tmp/ai-lesson-site
npx netlify deploy --dir=. --prod
# Note the site URL and site ID for later deploys
Generate 3 images based on metaphors kids already know:
./scripts/generate_image.sh "Pinocchio with a long nose, lying, cartoon style" /tmp/ai-lesson-site/uwaga1.jpg
./scripts/generate_image.sh "the Mirror of Erised from Harry Potter showing someone what they want to see" /tmp/ai-lesson-site/uwaga2.jpg
./scripts/generate_image.sh "a boy in a wheelchair from The Secret Garden, his legs weak from not using them" /tmp/ai-lesson-site/uwaga3.jpg
These represent: AI hallucination (Pinocchio), AI sycophancy (Mirror of Erised), and cognitive atrophy from over-reliance on AI (The Secret Garden).
cd /tmp/ai-lesson-site
npx netlify deploy --site YOUR_SITE_ID --dir=. --prod
Generate a QR code for the site URL and print it — kids take it home with the tic-tac-toe handout.
The teacher controls the lesson from their phone. If using an AI agent (e.g. OpenClaw), the agent responds to voice notes/messages and updates the website automatically. Without an agent, you can edit the HTML manually and redeploy — it takes ~10 seconds.
Edit the corresponding <div class="section"> in index.html with the kids' input, then redeploy:
cd /tmp/ai-lesson-site
npx netlify deploy --site YOUR_SITE_ID --dir=. --prod
Redeploy takes ~5 seconds. Kids refresh to see changes.
./scripts/generate_image.sh "KIDS_PROMPT" /tmp/ai-lesson-site/galleryN.png
<img> tag to the gallery section in index.html with the kid's name and prompt<div> and <script> sections in index.htmlYOUR_MODEL_ID with the actual model URLSee references/lesson-plan.md for the full 6-section lesson plan with timing (~45 min), tips, and preparation checklist.
The HTML template is at assets/template.html. It includes:
scripts/generate_image.sh generates images via the Gemini API. Automatically appends "kid-friendly, colorful, cartoon style" to all prompts.
Usage: ./scripts/generate_image.sh "prompt text" output_filename.png
Requires: GEMINI_API_KEY environment variable.
This skill is designed to work with OpenClaw or any AI agent that can edit files, run shell commands, and deploy websites. The agent acts as invisible infrastructure — the kids never see it, they just see the website updating.
To use with OpenClaw:
NETLIFY_AUTH_TOKEN and GEMINI_API_KEY in your .envBut the lesson works perfectly fine without any agent — just edit and deploy manually.