{"skill":{"slug":"knowfun-skills","displayName":"Knowfun","summary":"Generate educational content using Knowfun.io API - create courses, posters, games, and films with AI. Use when user wants to generate educational content, v...","description":"---\nname: knowfun\ndescription: 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.\nargument-hint: \"<command> [args]\"\ndisable-model-invocation: false\nuser-invocable: true\nallowed-tools: \"Bash(curl *), Read, Write\"\nmetadata:\n  {\n    \"openclaw\":\n      {\n        \"emoji\": \"📚\",\n        \"requires\": { \"bins\": [\"knowfun\"], \"env\": [\"KNOWFUN_API_KEY\"] },\n        \"install\":\n          [\n            {\n              \"id\": \"npm\",\n              \"kind\": \"npm\",\n              \"package\": \".\",\n              \"bins\": [\"knowfun\"],\n              \"label\": \"Build knowfun skills (npm)\",\n            },\n          ],\n      },\n  }\n---\n\n# Knowfun.io API Skill\n\nThis skill helps you interact with the Knowfun.io OpenAPI to generate educational content, posters, games, and films.\n\n## Prerequisites\n\nBefore using this skill, you need:\n1. A Knowfun.io API Key (get it from https://www.knowfun.io/api-platform)\n2. Sufficient credits in your account\n\n## Configuration\n\nSet your API key as an environment variable:\n```bash\nexport KNOWFUN_API_KEY=\"kf_your_api_key_here\"\n```\n\nOr the skill will prompt you for it when needed.\n\n## Available Commands\n\nWhen invoked, this skill supports the following operations:\n\n### 1. Create a Task\n\nGenerate content by creating a task. Supports four types: `course`, `poster`, `game`, `film`.\n\n**Basic Example:**\n```bash\n/knowfun create course \"Introduction to Machine Learning\"\n/knowfun create poster \"Climate Change Facts\"\n/knowfun create game \"Learn Python Basics\"\n/knowfun create film \"History of the Internet\"\n```\n\n**With URL:**\n```bash\n/knowfun create course https://example.com/document.pdf\n```\n\n### 2. Check Task Status\n\nCheck the status of a task by its ID:\n```bash\n/knowfun status <taskId>\n```\n\n### 3. Get Task Details\n\nGet detailed information about a completed task:\n```bash\n/knowfun detail <taskId>\n```\n\n### 4. List Tasks\n\nList recent tasks:\n```bash\n/knowfun list\n```\n\n### 5. Check Credits\n\nCheck your credit balance:\n```bash\n/knowfun credits\n```\n\n### 6. Get Schema\n\nGet available configuration options for each task type:\n```bash\n/knowfun schema\n```\n\n## Task Configuration\n\nEach task type has specific configuration options. See [api-reference.md](api-reference.md) for complete details.\n\n### Course Configuration\n- **contentStyle**: detailed, concise, conversational\n- **contentLanguage**: zh, en, etc.\n- **explainLanguage**: zh, en, etc.\n- **voiceType**: standard voice options\n- **ttsStyle**: classroom, professional, etc.\n\n### Poster Configuration\n- **usage**: infographic (default), businessReports, marketing, illustration\n- **style**: handDrawn (default), photorealistic, anime, sciFi, custom\n- **aspectRatio**: 1:1, 16:9, 9:16, etc.\n- **posterTitle**: Custom title for the poster\n\n### Game Configuration\n- **gameType**: story, interactive (default), explore, mission, roleplay, simulation, puzzle, arcade, card, word, timeline, custom\n- **customPrompt**: Custom game description\n\n### Film Configuration\n- **filmStyle**: narration (default), story, documentary, tutorial, concept_explainer, case_study, animation, cinematic, promotional, custom\n- **aspectRatio**: 16:9 (default), 9:16, 1:1\n- **visualStyle**: Custom visual style description\n\n## How This Skill Works\n\n1. **Extract API Key**: First checks if KNOWFUN_API_KEY environment variable is set\n2. **Parse Command**: Interprets the command (create, status, list, credits, schema)\n3. **Make API Request**: Uses curl to interact with the Knowfun.io API\n4. **Format Response**: Presents results in a readable format\n5. **Handle Errors**: Provides helpful error messages and troubleshooting tips\n\n## API Endpoints\n\nThe skill uses the following base URL:\n- Production: `https://api.knowfun.io`\n\n## Examples\n\nSee [examples.md](examples.md) for comprehensive usage examples.\n\n## Error Handling\n\nCommon errors and solutions:\n\n- **401 Unauthorized**: Check your API key is correct and not expired\n- **402 Insufficient Credits**: Top up your account at https://knowfun.io\n- **429 Rate Limit**: Wait a moment and try again\n- **400 Bad Request**: Check your input parameters\n\n## Reference Documentation\n\nFor complete API documentation, see [api-reference.md](api-reference.md).\n\n## Implementation Details\n\nWhen this skill is invoked, Claude will:\n\n1. Verify the API key is available\n2. Parse the command and arguments from `$ARGUMENTS`\n3. Construct appropriate curl commands to call the Knowfun.io API\n4. Handle authentication headers\n5. Parse JSON responses\n6. Format results for display\n7. Provide actionable next steps\n\nThe skill uses `curl` for API requests and `jq` for JSON parsing when available.\n","tags":{"latest":"1.0.15"},"stats":{"comments":0,"downloads":1009,"installsAllTime":38,"installsCurrent":1,"stars":1,"versions":16},"createdAt":1772427678823,"updatedAt":1778491684551},"latestVersion":{"version":"1.0.15","createdAt":1773311345983,"changelog":"- Dependency and package metadata updated (package.json, skill.json).\n- Documentation and changelog files maintained and revised.\n- No functional changes to commands or user-facing features.","license":"MIT-0"},"metadata":{"setup":[{"key":"KNOWFUN_API_KEY","required":true}],"os":null,"systems":null},"owner":{"handle":"duguyixiaono1","userId":"s17267j31m9qzvsdpaehdf359n885ykf","displayName":"duguyixiaono1","image":"https://avatars.githubusercontent.com/u/2703461?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089852384}}