materials-cliRender JSON schemas to images and generate schemas from prompts using declare-render and AI.
Install via ClawdBot CLI:
clawdbot install cai-zhuo/materials-cliUse 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.
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]
materials render schema.json -o output.png-s, --schema , -o, --output (default ./output.png), -f, --format , -w, --width, -h, --height, --output-schema , -i, --interactivematerials generate "A red circle with text Hello" -o out.png-o, --output, -f, --format, -w, --width, -h, --height, --output-schema, --model, --api-key, --base-url, -i, --interactiveOPENAI_API_KEY (and optionally OPENAI_MODEL, OPENAI_BASE_URL) if not passed via flags.materials validate schema.json-s, --schema , -i, --interactiveUsage: 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
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.
Generated Mar 1, 2026
Designers can quickly generate visual mockups from JSON schemas, enabling rapid prototyping and iteration. This is useful for creating wireframes or visual assets based on structured data, reducing manual design time.
Educators and trainers can render diagrams or illustrations from JSON schemas to create visual aids for courses. This helps in explaining complex concepts through generated images based on descriptive prompts.
Marketing teams can automate the creation of banners, social media graphics, or infographics from AI-generated schemas. This streamlines content production by turning text prompts into ready-to-use images.
Analysts can convert JSON-based data schemas into visual charts or diagrams for reports. This aids in presenting data insights more effectively through automated rendering from structured inputs.
Online retailers can generate product images or layout schemas from descriptions, helping in catalog management. This allows for quick visual representation of items based on AI prompts or existing JSON data.
Offer a free tier with basic rendering and generation limits, and charge for advanced features like higher-resolution outputs, batch processing, or premium AI models. This attracts individual users while monetizing enterprise needs.
License the core technology as an API for integration into other software platforms, such as design tools or content management systems. Charge based on API call volume or through enterprise agreements.
Provide consulting services to help businesses implement the CLI for specific workflows, such as custom schema development or integration with existing systems. Offer tailored solutions and support packages.
💬 Integration Tip
Integrate with CI/CD pipelines to automate image generation from schema updates, and use environment variables for secure API key management in production.
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Command-line tool to manage Google Workspace services including Gmail, Calendar, Drive, Sheets, Docs, Slides, Contacts, Tasks, People, Groups, and Keep.
Runs shell commands inside a dedicated tmux session named claw, captures, and returns the output, with safety checks for destructive commands.
A modern text-based browser. Renders web pages in the terminal using headless Firefox.
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
NotebookLM CLI wrapper via `node {baseDir}/scripts/notebooklm.mjs`. Use for auth, notebooks, chat, sources, notes, sharing, research, and artifact generation/download.