Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Update CLI documentation and validation
What This Skill Does
Materials CLI renders JSON schemas to PNG or JPG images, validates schemas against the declare-render format, and generates schemas from natural-language prompts using OpenAI. It exposes three subcommands: render, generate, and validate.
Combines schema validation, AI-driven schema generation, and image rendering in one CLI, avoiding the need to wire together separate utilities.
When to use it
- Render a JSON layout schema to a PNG for design review
- Generate an image from a text description using OpenAI
- Validate a declare-render schema before passing it to a pipeline
- Export layered JSON compositions to JPG files
- Prototype visual layouts from natural language without writing schema by hand
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Generate an image of a blue rectangle with the text 'Hello World' and save it as hello.png
- 1Run `materials generate "A blue rectangle with text Hello World" -o hello.png`
- 2CLI sends the prompt to OpenAI, which returns a declare-render JSON schema
- 3Schema is validated against the declare-render format
- 4CLI renders the schema layers to hello.png
hello.png written to disk containing the rendered blue rectangle with 'Hello World' text
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.