跳到正文
TakoAPI
返回技能列表

test-materials

由 cai-zhuo 提供

DevOps & Cloud
366下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Render JSON schemas to images and generate schemas from prompts using declare-render and AI.

描述

该技能的功能

A CLI tool for working with declare-render JSON schemas. It renders schemas to PNG or JPG images, validates schema files against the declare-render format, and generates schemas from text prompts using OpenAI.

Combines schema generation, validation, and rendering in a single CLI instead of requiring separate tools for each step.

何时使用

  • Rendering a JSON layout schema to a PNG for design review
  • Generating an image from a plain-text description without writing JSON
  • Validating a schema file before passing it to a render pipeline
  • Exporting structured visual templates as static image files
  • Prototyping image layouts by describing them in natural language

示例工作流

输入

User asks: generate an image of a red circle with the text 'Hello'

智能体
  1. 1

    Runs materials generate "A red circle with text Hello" -o out.png

  2. 2

    OpenAI generates a declare-render JSON schema from the prompt

  3. 3

    CLI validates the generated schema against the declare-render format

  4. 4

    CLI renders the schema to out.png

输出

out.png saved to the working directory containing a red circle with 'Hello' text

前置要求

  • OPENAI_API_KEY — OpenAI API key, required for the generate command

安装

clawhub install cai-zhuo/test-materials

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接