materials-workbench
Materials editor workbench — React UI and Express server to render JSON schemas to images and generate schemas with AI (declare-render + materials-agents).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cai-zhuo/materials-workbenchWhat This Skill Does
The Materials Workbench is an integrated development environment (IDE) specifically designed for users working with declare-render schema formats. It acts as a bridge between structural JSON schema design and visual output, providing both a React-based frontend and an Express backend. By leveraging the materials-agents package, the workbench enables AI-assisted generation of complex visual schemas, allowing you to describe your design requirements in natural language and have the system translate them into technical specifications. The server-side component handles the heavy lifting of rendering, utilizing canvas libraries to transform JSON definitions into high-quality PNG or JPG files, making it an essential tool for developers creating procedural graphics or design system assets.
Installation
To integrate this skill, use the ClawHub manager. Run the following command in your terminal:
clawhub install openclaw/skills/skills/cai-zhuo/materials-workbench
Once installed, navigate to the project root and execute pnpm run install:all to fetch the necessary dependencies for both the client and server. Ensure you have Node.js installed on your machine. To enable the AI-driven schema features, you must export your API key: export OPENAI_API_KEY='your-key-here'. You can then launch the development environment with pnpm run dev.
Use Cases
This skill is perfect for developers building design systems that rely on JSON-driven rendering. It is ideal for prototyping visual components, iterating on graphic layouts without manual coding, and generating large batches of assets via schema definitions. Use this to quickly iterate on render schemas, test changes in real-time within the browser, and refine complex layering logic using integrated AI assistance.
Example Prompts
- "Open the materials workbench and start the dev server so I can start editing my schema."
- "I need a schema for a 1080x1920 social media post with a text layer centered at the top and a background image. Can you generate the initial JSON?"
- "Launch the schema editor UI on port 5173 and make sure the Express backend is connected for rendering."
Tips & Limitations
- Performance: Rendering high-resolution assets may require significant local resources; verify that your system memory can handle multiple canvas operations.
- Environment: The workbench expects a specific structure for schemas; ensure your files follow the official declare-render formatting for maximum compatibility.
- Security: Always sanitize your generated schemas if they are destined for public-facing servers. Note that the workbench requires local network access to function, as the React client communicates with the Express backend via localhost.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cai-zhuo-materials-workbench": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution