/install ai-course-agent
AI Course Agent
OpenClaw Skill for auto-generating AI education courses. Detects natural language course generation requests and calls the Edustem API to create ready-to-use course content.
💳 Billing & Pricing
This skill uses SkillPay for usage-based billing:
- Rate: 1 token per course generation
- Pricing: 1 USDT = 1000 tokens
- Minimum deposit: 8 USDT (8000 tokens = 8000 courses)
- Payment: USDT cryptocurrency via SkillPay
When your balance runs out, the skill will return a payment link for top-up.
Quick Start
import { isCourseLessonRequest, processUserMessage } from 'ai-course-agent';
// When user sends a message:
const userId = req.user.sub; // Get user ID from your auth system
if (isCourseLessonRequest(userInput)) {
const response = await processUserMessage(userInput, userId);
// Success:
// "✅ 成功为6年级数学《分数乘除法》生成课程!\
\
📚 课程链接: https://..."
// Insufficient balance:
// "❌ 余额不足 (当前: 0 tokens)\
\
💳 请充值后继续使用: https://skillpay.me/..."
}
Configuration
Set environment variables before use:
Edustem API (Required)
export EDUSTEM_USERNAME="[email protected]"
export EDUSTEM_PASSWORD="your-password"
SkillPay Billing
No configuration needed. SkillPay credentials are hardcoded in the skill and belong to the skill author. Payments are automatically deducted from your SkillPay balance.
Supported Input Patterns
帮我生成6年级数学分数乘除法的课程
帮我创建一个七年级语文从百草园到三味书屋的课程
帮我制作9年级英语日常会话的课程
生成8年级科学地球和宇宙的课程
Supports both Arabic (6年级) and Chinese (六年级) numerals for grade levels.
Supported Subjects
数学 · 语文 · 英语 · 科学 · 历史 · 地理 · 物理 · 化学 · 生物
Output Format
✅ 成功为6年级数学《分数乘除法》生成课程!
📚 课程链接: https://your-api-host/ai-lesson/{lesson_ref}
API Flow
handleBilling(userId)— Charge user via SkillPay (1 token)login()— Authenticate and get JWT tokencreateLessonPlan()— Create lesson plan with metadataacceptLessonPlan()— Confirm and trigger course generation- Return course URL (or payment link if balance insufficient)
Exports
// Main integration functions
isCourseLessonRequest(message: string): boolean
processUserMessage(userInput: string, userId: string): Promise\x3Cstring>
// Core functions
generateCourse(request: CourseRequest, userId: string): Promise\x3CGeneratedCourseResponse>
parseCourseRequest(userInput: string): CourseRequest | null
// SkillPay Billing
handleBilling(userId: string): Promise\x3CBillingResult>
chargeUser(userId: string, amount?: number): Promise\x3CChargeResult>
getBalance(userId: string): Promise\x3Cnumber>
getPaymentLink(userId: string, amount?: number): Promise\x3Cstring>
// Edustem API (lower level)
login(username, password): Promise\x3Cstring>
createLessonPlan(token, payload): Promise\x3CCreateLessonPlanResponse>
acceptLessonPlan(token, lessonRef): Promise\x3CAcceptLessonPlanResponse>
generateLessonUrl(lessonRef): string
Tech Stack
TypeScript · Node.js · axios · form-data
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-course-agent - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-course-agent触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Ai Course Agent 是什么?
Auto-generates AI education courses from natural language requests in Chinese. Detects patterns like "帮我生成6年级数学分数乘除法的课程" and calls Edustem API to create and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 636 次。
如何安装 Ai Course Agent?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-course-agent」即可一键安装,无需额外配置。
Ai Course Agent 是免费的吗?
是的,Ai Course Agent 完全免费(开源免费),可自由下载、安装和使用。
Ai Course Agent 支持哪些平台?
Ai Course Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ai Course Agent?
由 ohano(@ohano)开发并维护,当前版本 v0.2.1。