简介
Knowfun
原始描述
Generate educational content using Knowfun.io API - create courses, posters, games, and films with AI. Use when user wants to generate educational content, v...
通过你的 Agent 添加
安装目录:knowfun/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: knowfun description: Generate educational content using Knowfun.io API - create courses, posters, games, and films with AI. Use when user wants to generate educational content, visual materials, or interactive experiences. argument-hint: " [args]" disable-model-invocation: false user-invocable: true allowed-tools: "Bash(curl *), Read, Write" metadata: { "openclaw": { "emoji": "📚", "requires": { "bins": ["knowfun"], "env": ["KNOWFUN_API_KEY"] }, "install": [ { "id": "npm", "kind": "npm", "package": ".", "bins": ["knowfun"], "label": "Build knowfun skills (npm)", }, ], }, }
Knowfun.io API Skill
This skill helps you interact with the Knowfun.io OpenAPI to generate educational content, posters, games, and films.
Prerequisites
Before using this skill, you need:
- A Knowfun.io API Key (get it from https://www.knowfun.io/api-platform)
- Sufficient credits in your account
Configuration
Set your API key as an environment variable:
export KNOWFUN_API_KEY="kf_your_api_key_here"
Or the skill will prompt you for it when needed.
Available Commands
When invoked, this skill supports the following operations:
1. Create a Task
Generate content by creating a task. Supports four types: course, poster, game, film.
Basic Example:
/knowfun create course "Introduction to Machine Learning"
/knowfun create poster "Climate Change Facts"
/knowfun create game "Learn Python Basics"
/knowfun create film "History of the Internet"
With URL:
/knowfun create course https://example.com/document.pdf
2. Check Task Status
Check the status of a task by its ID:
/knowfun status <taskId>
3. Get Task Details
Get detailed information about a completed task:
/knowfun detail <taskId>
4. List Tasks
List recent tasks:
/knowfun list
5. Check Credits
Check your credit balance:
/knowfun credits
6. Get Schema
Get available configuration options for each task type:
/knowfun schema
Task Configuration
Each task type has specific configuration options. See api-reference.md for complete details.
Course Configuration
- contentStyle: detailed, concise, conversational
- contentLanguage: zh, en, etc.
- explainLanguage: zh, en, etc.
- voiceType: standard voice options
- ttsStyle: classroom, professional, etc.
Poster Configuration
- usage: infographic (default), businessReports, marketing, illustration
- style: handDrawn (default), photorealistic, anime, sciFi, custom
- aspectRatio: 1:1, 16:9, 9:16, etc.
- posterTitle: Custom title for the poster
Game Configuration
- gameType: story, interactive (default), explore, mission, roleplay, simulation, puzzle, arcade, card, word, timeline, custom
- customPrompt: Custom game description
Film Configuration
- filmStyle: narration (default), story, documentary, tutorial, concept_explainer, case_study, animation, cinematic, promotional, custom
- aspectRatio: 16:9 (default), 9:16, 1:1
- visualStyle: Custom visual style description
How This Skill Works
- Extract API Key: First checks if KNOWFUN_API_KEY environment variable is set
- Parse Command: Interprets the command (create, status, list, credits, schema)
- Make API Request: Uses curl to interact with the Knowfun.io API
- Format Response: Presents results in a readable format
- Handle Errors: Provides helpful error messages and troubleshooting tips
API Endpoints
The skill uses the following base URL:
- Production:
https://api.knowfun.io
Examples
See examples.md for comprehensive usage examples.
Error Handling
Common errors and solutions:
- 401 Unauthorized: Check your API key is correct and not expired
- 402 Insufficient Credits: Top up your account at https://knowfun.io
- 429 Rate Limit: Wait a moment and try again
- 400 Bad Request: Check your input parameters
Reference Documentation
For complete API documentation, see api-reference.md.
Implementation Details
When this skill is invoked, Claude will:
- Verify the API key is available
- Parse the command and arguments from
$ARGUMENTS - Construct appropriate curl commands to call the Knowfun.io API
- Handle authentication headers
- Parse JSON responses
- Format results for display
- Provide actionable next steps
The skill uses curl for API requests and jq for JSON parsing when available.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。