ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Json Schema Drafter

Skill by askjda

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/askjda/json-schema-drafter
Or

name: json-schema-drafter description: 从 JSON 样本推断结构草案。 category: data-processing source_template: skillsmp_download/1000/SKILL.md

json-schema-drafter

能力边界

  • 只处理当前命令输入指定的数据,不做额外隐式操作。
  • 不依赖交互式界面,全部通过命令行完成。

输入参数

  • 按命令行参数传入,参数格式见下方步骤命令。

输出结果

  • 生成命令输出(stdout)和对应输出文件(JSON/TXT)。

执行步骤(具体操作)

  1. 在 skill 目录准备输入文件,例如 input.txt、data.json。
  2. 运行命令: python main.py --input sample.json --output schema.json
  3. 若命令失败,先执行 --help 查看参数,再修正参数重新执行。
  4. 查看输出文件内容,确认字段和行数符合预期。
  5. 记录本次命令和输出路径,便于后续复现。

验证命令

python main.py --input sample.json --output schema.json --help

Metadata

Author@askjda
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-askjda-json-schema-drafter": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.