Materials CLI
name: materials-cli
by cai-zhuo · published 2026-03-22
$ claw add gh:cai-zhuo/cai-zhuo-materials-cli---
name: materials-cli
description: Render JSON schemas to images and generate schemas from prompts using declare-render and AI.
version: 1.0.8
metadata:
clawdbot:
requires:
env:
- OPENAI_API_KEY
bins:
- node
primaryEnv: OPENAI_API_KEY
---
# 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
When to use
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
Generate (AI)
Validate
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.jsonSchema format
The JSON schema follows the declare-render format: root has `id`, `width`, `height`, and `layers`. Layer types include text, image, and shape. Use `materials validate <file>` to check a schema before rendering.
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...