LaunchKit · 2026
Back to Skills

test-materials

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

0
366 downloads
by @cai-zhuo

Setup & Installation

openclaw skills install @cai-zhuo/test-materials

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install test-materials

What This Skill Does

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.

When to use it

  • 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

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

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

AGENT
  1. 1Runs `materials generate "A red circle with text Hello" -o out.png`
  2. 2OpenAI generates a declare-render JSON schema from the prompt
  3. 3CLI validates the generated schema against the declare-render format
  4. 4CLI renders the schema to out.png
OUTPUT

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

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

OPENAI_API_KEY — OpenAI API key, required for the generate command