← 返回
内容创作 Key 中文

Test

Render JSON schemas to images and generate schemas from prompts using declare-render and AI.
使用 declare-render 和 AI 将 JSON schema 渲染为图像并从提示生成 schema
cai-zhuo
内容创作 clawhub v1.0.0 1 版本 99889.5 Key: 需要
★ 0
Stars
📥 904
下载
💾 19
安装
1
版本
#latest

概述

Materials CLI

Use this skill when the user wants to render JSON schemas to images (PNG/JPG), validate render-data schemas, or generate schemas from natural-language prompts and then render them.

Commands

  • render — Render a JSON schema file to an image.
  • generate — Use AI (OpenAI) to generate a schema from a prompt, then render it.
  • validate — Validate a JSON schema against the declare-render data schema.

When to use

  • User asks to "render a schema to image", "turn JSON into a picture", or "draw from schema".
  • User wants to "generate an image from a description" or "create a schema from a prompt" and render it.
  • User wants to "validate" a JSON file against the render data schema.

Usage

Run via Node (from the project or after npm install -g materials-cli):

materials render <schema-path> [options]
materials generate "<prompt>" [options]
materials validate <schema-path> [options]

Render

  • materials render schema.json -o output.png
  • Options: -s, --schema , -o, --output (default ./output.png), -f, --format , -w, --width, -h, --height, --output-schema , -i, --interactive

Generate (AI)

  • materials generate "A red circle with text Hello" -o out.png
  • Options: -o, --output, -f, --format, -w, --width, -h, --height, --output-schema, --model, --api-key, --base-url, -i, --interactive
  • Uses OPENAI_API_KEY (and optionally OPENAI_MODEL, OPENAI_BASE_URL) if not passed via flags.

Validate

  • materials validate schema.json
  • Options: -s, --schema , -i, --interactive

CLI help

Usage: materials <command> [options]

Commands:
  render <schema>     Render a JSON schema file to an image
  generate <prompt>   Use AI to generate a schema, then render
  validate <schema>   Validate a schema against the render data schema

Examples:
  materials render schema.json -o output.png
  materials generate "A red circle with text Hello"
  materials validate schema.json

Schema format

The JSON schema follows the declare-render format: root has id, width, height, and layers. Layer types include text, image, container, shape, etc. Use materials validate to check a schema before rendering.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 10:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,524
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,096
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 200,035