← 返回 Skills 市场
huaibuer

Data Generator

作者 HuaiBuer · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
260
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install data-generator-waai
功能描述
Data Generator / 数据生成器 - Generate training data from user instructions. Input: tool name + command list. Output: JSONL. / 根据用户指令生成训练数据。
使用说明 (SKILL.md)

📝 Data Generator / 数据生成器

Generate training data from Excel user instructions.

When to Use / 使用场景

EN CN
Generate training data from instructions 从用户指令生成训练数据
Batch produce AI training samples 批量生成AI训练样本
Build dataset from Excel 从Excel构建数据集

Features / 功能

Feature EN CN
Excel input Excel file support Excel文件输入
JSONL output JSONL output JSONL格式输出
Multi-tool support Multi-tool support 支持多种工具
Customizable prompt Customizable prompt 可自定义提示词

Usage / 使用

from data_generator import Generator

# Simple / 简单
gen = Generator()
result = gen.generate(
    tool_name="dev_control",
    commands=["打开空调", "关闭窗帘"],
    excel_file="data.xlsx"
)

# With prompt / 自定义提示词
result = gen.generate(
    tool_name="alarm_remind",
    commands=["提醒我起床"],
    prompt_template="自定义提示词模板"
)

Parameters / 参数

Parameter Type EN CN
tool_name str Tool name 工具名称
commands list Command list 命令列表
excel_file str Excel file path Excel文件路径
prompt_template str Custom prompt 自定义提示词(可选)

Output / 输出

{"conversations": [...], "system": "..."}
{"conversations": [...], "system": "..."}

Installation / 安装

npx clawhub install data-generator-waai

Author / 作者

  • WaaiOn
安全使用建议
This skill's code is small and readable, but there are important mismatches to be aware of: (1) SKILL.md advertises Excel input and a prompt_template parameter that the shipped Python file does not implement — so the documentation is unreliable. (2) The code reads MINIMAX_API_KEY / OPENAI_API_KEY and an API_URL env var (defaulting to http://127.0.0.1:8766). While the current code does not include the API key in request headers, it does send prompts and generated text to the configured API_URL. Before installing or using: - Review and run the Python file locally to confirm behavior. - Ensure API_URL (if set) points to a trusted host (prefer localhost or an internal LLM) and do not set secrets in environment unless you trust the endpoint. - Do not supply sensitive or proprietary data until you're satisfied where prompts are sent. - If you need Excel support or prompt customization, note the current implementation lacks those features — expect to modify or extend the code. If you want a fully aligned/safer experience, ask the author to fix the documentation or update the code so declared inputs match implemented behavior.
功能分析
Type: OpenClaw Skill Name: data-generator-waai Version: 1.1.0 The skill is a specialized utility for generating synthetic AI training data for smart home device interactions (e.g., 'GreeQA', 'dev_control'). The code in `data_generator.py` constructs prompts and sends them to a configurable LLM endpoint (defaulting to localhost). While there is a minor discrepancy between the documentation in `SKILL.md` (which mentions Excel support) and the actual implementation (which lacks it), the code contains no evidence of malicious intent, data exfiltration, or unauthorized execution. It handles API keys from environment variables but does not appear to transmit them to external or suspicious domains.
能力评估
Purpose & Capability
Name/description: data generation for training data — matches the code's purpose. Mismatch: SKILL.md and usage examples mention Excel input (excel_file) and prompt_template parameters; data_generator.py does not implement reading Excel files nor accept a prompt_template or excel_file parameter. The SKILL.md API and the actual code signature are not aligned.
Instruction Scope
SKILL.md instructs use with Excel and customizable prompts and shows a Generator.generate signature that accepts excel_file and prompt_template. The runtime code only accepts a list of commands and an optional output_file — it never reads Excel or any other files. Also the SKILL.md metadata declares python3 as required but does not declare any env vars, while the code reads MINIMAX_API_KEY, OPENAI_API_KEY and API_URL from environment.
Install Mechanism
No install spec; this is an instruction-only skill with a small Python file. No remote downloads or archive extraction are performed by the registry/install metadata. Low install risk.
Credentials
Registry lists no required env vars, but the code reads MINIMAX_API_KEY and OPENAI_API_KEY and an API_URL (default http://127.0.0.1:8766). The api_key is captured in Generator but is not added to request headers in the current code (so not actively leaked). However the skill posts prompts to a configurable base_url; if API_URL is set to a remote host that host will receive prompts and LLM outputs. The mismatch between declared and accessed env vars and the ability to point to an arbitrary endpoint increases risk.
Persistence & Privilege
always is false, skill is user-invocable, and there is no code that modifies system or other skills' configuration. No special persistence or elevated privileges requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install data-generator-waai
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /data-generator-waai 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Added support for generating training data from user instructions using data_generator.py. - No changes to documentation or usage examples. - Version 1.1.0 focuses on internal improvements or feature extensions in the core Python file.
v1.0.0
- Initial release of Data Generator skill. - Generates AI training data from user instructions using Python 3. - Supports input from Excel files and outputs in JSONL format. - Allows batch generation of training samples for multiple tools. - Customizable prompt templates supported.
元数据
Slug data-generator-waai
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Data Generator 是什么?

Data Generator / 数据生成器 - Generate training data from user instructions. Input: tool name + command list. Output: JSONL. / 根据用户指令生成训练数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 260 次。

如何安装 Data Generator?

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

Data Generator 是免费的吗?

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

Data Generator 支持哪些平台?

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

谁开发了 Data Generator?

由 HuaiBuer(@huaibuer)开发并维护,当前版本 v1.1.0。

💬 留言讨论