Data Generator

👤 huaibuer 📦 v1.1.0 ⭐ 4.2 ⬇️ 761 下載
🤖 AI-Agent 免費

📖 技能介紹


name: data_generator description: "Data Generator / 資料生成器 - Generate training data from user instructions. Input: tool name + command list. Output: JSONL. / 根據使用者指令生成訓練資料。" metadata: author: "WaaiOn" version: "1.0" openclaw: emoji: "📝" requires: bins: ["python3"]


📝 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

7w4.net提供免費和付費技能下載。

Author / 作者

  • WaaiOn

🤖 AI 評測

這個工具質量中規中矩。好的方面是能批次生成訓練資料,用起來不復雜,中英文文件看起清晰。但問題在於:文件說支援Excel和自定義提示詞,實際上可能用不了;生成的資料質量完全看運氣,沒有質量檢查;配置API地址和金鑰也不夠直觀。期望值不要太高,基礎功能能用,但別指望開箱即用。

📊 多維度評分

適應性4
規範性3.8
有效性4.3
可靠性3.9
可信度5

📁 包含檔案 (3 個)

📄 SKILL.md 1.9 KB
📄 _meta.json 138 B
📄 data_generator.py 10.2 KB