Skip to content
Back to skills

Ai Course Agent

ASecurity

Auto-generates AI education courses from natural language requests in Chinese. Detects patterns like "帮我生成6年级数学分数乘除法的课程" and calls Edustem API to create and return a course link.

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
educationtypescriptbashnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill ai-course-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Course Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Course Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-ai-course-agent/badge)](https://www.skillsdirectory.com/skills/modbender-ai-course-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-course-agent
description: Auto-generates AI education courses from natural language requests in Chinese. Detects patterns like "帮我生成6年级数学分数乘除法的课程" and calls Edustem API to create and return a course link.
metadata:
  {
    "openclaw":
      {
        "requires": { "bins": [] },
        "env":
          [
            {
              "key": "EDUSTEM_USERNAME",
              "description": "Edustem API username (email)",
              "required": true,
              "secret": true
            },
            {
              "key": "EDUSTEM_PASSWORD",
              "description": "Edustem API password",
              "required": true,
              "secret": true
            }
          ]
      }
  }
---

# 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.

## Quick Start

```typescript
import { isCourseLessonRequest, processUserMessage } from 'ai-course-agent';

// When user sends a message:
if (isCourseLessonRequest(userInput)) {
  const response = await processUserMessage(userInput);
  // Returns: "✅ 成功为6年级数学《分数乘除法》生成课程!\n\n📚 课程链接: https://..."
}
```

## Configuration

Set environment variables before use:

```bash
export EDUSTEM_USERNAME="your-email@example.com"
export EDUSTEM_PASSWORD="your-password"
```

## 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

1. `login()` — Authenticate and get JWT token
2. `createLessonPlan()` — Create lesson plan with metadata
3. `acceptLessonPlan()` — Confirm and trigger course generation
4. Return course URL

## Exports

```typescript
// Main integration functions
isCourseLessonRequest(message: string): boolean
processUserMessage(userInput: string): Promise<string>

// Core functions
generateCourse(request: CourseRequest): Promise<GeneratedCourseResponse>
parseCourseRequest(userInput: string): CourseRequest | null

// Edustem API (lower level)
login(username, password): Promise<string>
createLessonPlan(token, payload): Promise<CreateLessonPlanResponse>
acceptLessonPlan(token, lessonRef): Promise<AcceptLessonPlanResponse>
generateLessonUrl(lessonRef): string
```

## Tech Stack

TypeScript · Node.js · axios · form-data

Files in this skill

  • API_REQUIREMENTS.md830 B
  • README.md4.4 KB
  • SKILL.md2.9 KB
  • package-lock.json59.4 KB
  • package.json780 B
  • src/agent.ts6.3 KB
  • src/config.ts1.1 KB
  • src/edustem-api.ts5.4 KB
  • src/index.ts954 B
  • src/integration.ts3.9 KB
  • src/main-session-integration.md2.6 KB
  • src/run-voice.ts570 B
  • src/run.ts574 B
  • src/test.ts1.4 KB
  • src/utils.ts5.9 KB
  • tsconfig.json598 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…