← 返回 Skills 市场
duguyixiaono1

Knowfun

作者 duguyixiaono1 · GitHub ↗ · v1.0.15 · MIT-0
cross-platform ⚠ suspicious
664
总下载
1
收藏
1
当前安装
16
版本数
在 OpenClaw 中安装
/install knowfun-skills
功能描述
Generate educational content using Knowfun.io API - create courses, posters, games, and films with AI. Use when user wants to generate educational content, v...
使用说明 (SKILL.md)

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:

  1. A Knowfun.io API Key (get it from https://www.knowfun.io/api-platform)
  2. 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 \x3CtaskId>

3. Get Task Details

Get detailed information about a completed task:

/knowfun detail \x3CtaskId>

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

  1. Extract API Key: First checks if KNOWFUN_API_KEY environment variable is set
  2. Parse Command: Interprets the command (create, status, list, credits, schema)
  3. Make API Request: Uses curl to interact with the Knowfun.io API
  4. Format Response: Presents results in a readable format
  5. 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:

  1. Verify the API key is available
  2. Parse the command and arguments from $ARGUMENTS
  3. Construct appropriate curl commands to call the Knowfun.io API
  4. Handle authentication headers
  5. Parse JSON responses
  6. Format results for display
  7. Provide actionable next steps

The skill uses curl for API requests and jq for JSON parsing when available.

安全使用建议
This skill appears to be a legitimate CLI wrapper for the Knowfun.io API. If you plan to install it: 1) Prefer installing the published npm package (npm install -g knowfun-skills) or audit the shipped scripts before linking them into your PATH; 2) Keep your KNOWFUN_API_KEY secret and set it as an environment variable (don't paste into public chat); 3) Inspect scripts/knowfun-cli.sh to confirm all curl calls go to https://api.knowfun.io if you want extra assurance; 4) Avoid blindly running curl | bash from unknown URLs—download and review files first. If anything looks different after installation (unexpected outbound endpoints, file writes, or requests for other credentials), revoke the API key and investigate.
功能分析
Type: OpenClaw Skill Name: knowfun-skills Version: 1.0.15 The knowfun-skills bundle is a legitimate and well-documented integration for the Knowfun.io API, designed to generate educational content like courses and posters. It operates via a bash CLI helper (scripts/knowfun-cli.sh) and a Node.js wrapper (knowfun.js) that execute authenticated curl commands to a hardcoded official endpoint (https://api.knowfun.io). The package includes extensive security documentation (SECURITY.md and CLAWHUB_VERIFICATION.md) that transparently addresses potential false positives from security scanners and provides manual verification steps, demonstrating a high level of transparency and adherence to security best practices.
能力评估
Purpose & Capability
The name/description (generate courses/posters/games/films) matches the declared requirements: a 'knowfun' CLI binary and KNOWFUN_API_KEY. The repo includes a CLI wrapper (scripts/knowfun-cli.sh) and a small JS shim, which explains the 'knowfun' binary requirement. Minor inconsistency: the registry metadata says 'No install spec — instruction-only', while SKILL.md and package.json include an npm install / bin entry and the repository contains the CLI script — likely an authoring/packaging oversight but not malicious.
Instruction Scope
SKILL.md instructs the agent to read KNOWFUN_API_KEY, parse arguments, and call the official API using curl (and jq when available). The instructions do not direct the agent to read arbitrary host files or unrelated environment variables, nor to contact endpoints outside the documented base URL. The allowed-tools clause (Bash(curl *)) is broad but SKILL.md and the included scripts hardcode the API base URL (https://api.knowfun.io), limiting scope.
Install Mechanism
There is no registry-level install spec, but the package contains package.json, a bin wrapper, and instructions to install via npm or to curl SKILL.md from GitHub. Those are standard distribution methods. No download-from-arbitrary-URL patterns or obfuscated payloads are present in the provided files. Recommendation: prefer installing the published npm package or auditing the shipped scripts rather than piping unknown scripts directly from the network.
Credentials
The skill only requires a single API key (KNOWFUN_API_KEY) which is appropriate for an API integration. No other SECRET/TOKEN/PASSWORD environment variables or unrelated credentials are requested. SKILL.md's behavior (using the env var for Authorization) is proportionate.
Persistence & Privilege
always:false and user-invocable:true. The skill does not request persistent elevated privileges or modifications to other skills or system-wide settings. It shells out to a hardcoded script path and uses the official API; autonomous model invocation is allowed (disable-model-invocation:false) but that is the platform default and not by itself a concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install knowfun-skills
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /knowfun-skills 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.15
- Dependency and package metadata updated (package.json, skill.json). - Documentation and changelog files maintained and revised. - No functional changes to commands or user-facing features.
v1.0.14
knowfun-skills 1.0.14 - Internal documentation and metadata updated; no user-facing changes. - No modifications to features or commands—existing usage is unchanged.
v1.0.13
- Added CLAWHUB_VERIFICATION.md and RELEASE_CHECKLIST.md for improved release management and verification. - Updated documentation: CHANGELOG.md, README.md, README_CN.md, SECURITY.md, and SKILL.md received minor adjustments for clarity and accuracy. - Updated package.json and skill.json with latest version metadata. - No changes to core functionality; this update is focused on documentation and maintenance files.
v1.0.12
- Added GitHub issue and pull request templates to support community collaboration. - Updated metadata in package configuration files. - No changes to core functionality or user-facing commands.
v1.0.11
Improved description for better searchability with keywords: knowfun, educational content, courses, posters, games, films
v1.0.10
- Changed the Knowfun.io API base URL from `https://knowfun.io/openapi/v1` to `https://api.knowfun.io`. - Updated documentation across multiple files to reflect the new API endpoint. - No changes to core usage, commands, or task configuration options. - Improved consistency and clarity in documentation.
v1.0.9
Version 1.0.9 - No file changes detected in this release. - Documentation and functionality remain consistent with the previous version.
v1.0.8
- Added main implementation file knowfun.js. - Updated package.json to include the new knowfun.js file. - No changes to user-visible commands or configuration. - Lays groundwork for future enhancements by introducing a JavaScript implementation.
v1.0.7
- Added GitHub issue and pull request templates for better contribution workflow. - Updated documentation files, including installation and quickstart guides, in both English and Chinese. - Simplified SKILL.md metadata and changed npm installation instructions to use current directory. - Removed deprecated/unused files such as DOCS_VERIFIED.md and scripts/create-release.sh. - Cleaned up project file structure for clarity and maintainability.
v1.0.6
- Added metadata and lock files for improved configuration management. - Updated documentation files with refined installation and quickstart instructions. - Removed legacy GitHub issue and pull request templates. - No changes to API functionality or user commands.
v1.0.5
- Added GitHub issue and pull request templates for bug reports and feature requests. - Updated installation and quickstart documentation in both English and Chinese. - Minor updates to package metadata.
v1.0.4
Fix SKILL.md YAML: quote argument-hint and allowed-tools to prevent YAML parse failure
v1.0.3
Fix SKILL.md to support both Claude Code and OpenClaw frontmatter formats
v1.0.2
Fix SKILL.md frontmatter for OpenClaw compatibility
v0.1.1
Initial public release with documentation, templates, and integration files. - Added full documentation: README, QUICKSTART, INSTALLATION, CHANGELOG, CONTRIBUTING, SECURITY, and more (including Chinese versions). - Provided GitHub templates for issues, pull requests, and release notes. - Included integration files for "cline" and "openclaw" platforms. - Added supporting scripts for release creation, CLI, and API testing. - Documented file structure and language support. - Supplied comprehensive SKILL.md detailing features and usage.
v0.1.0
- Initial release of the knowfun skill for integrating with the Knowfun.io OpenAPI. - Supports creation and management of tasks: courses, posters, games, and films. - Includes commands for creating tasks, checking status, getting details, listing tasks, checking credits, and retrieving schema options. - Full documentation provided for prerequisites, configuration, task options, API usage, error handling, and examples. - Uses curl for API requests and supports environment variable authentication via KNOWFUN_API_KEY.
元数据
Slug knowfun-skills
版本 1.0.15
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 16
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 664 次。

如何安装 Knowfun?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install knowfun-skills」即可一键安装,无需额外配置。

Knowfun 是免费的吗?

是的,Knowfun 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Knowfun 支持哪些平台?

Knowfun 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Knowfun?

由 duguyixiaono1(@duguyixiaono1)开发并维护,当前版本 v1.0.15。

💬 留言讨论