360 Secure SkillHub
360 安全技能中心

Materials Workbench

Materials Workbench 是一个本地 Web 应用:React + Vite 客户端用于编辑和预览 JSON schema,Express 服务端将 schema 渲染为 PNG/JPG,并可通过 materials-agents(OpenAI)生成或编辑 schema。需要 Node 与 pnpm 安装运行,AI 功能需配置 OPENAI_API_KEY。

分类:创作
cai-zhuo
cai-zhuo
热度 45.89
最近更新 2026-05-11 17:26:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cai-zhuo/materials-workbench
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
materials-workbench
description
Materials editor workbench — React UI and Express server to render JSON schemas to images and generate schemas with AI (declare-render + materials-agents).
version
1.0.0
metadata
{"clawdbot":{"requires":{"env":["OPENAI_API_KEY"],"bins":["node"]},"primaryEnv":"OPENAI_API_KEY"}}

Materials Workbench

Use this skill when the user wants to run the materials editor workbench: a local web app with a React client and Express server that renders JSON schemas to images (declare-render) and can generate or edit schemas using AI (materials-agents).

What it is

  • Client — React + Vite app for editing and previewing render schemas.
  • Server — Express API that renders schemas to PNG/JPG and uses materials-agents (OpenAI) for schema generation or refinement.

When to use

  • User wants to "run the workbench", "start the materials editor", or "open the schema editor UI".
  • User needs a local dev environment for rendering schemas and AI-assisted schema creation.

Run

From the workbench root:

pnpm install
pnpm run install:all   # install root, server, and client deps
pnpm run dev           # start server + client (concurrently)

Set OPENAI_API_KEY for AI/generate features.

Project layout

  • client/ — React frontend (Vite).
  • server/ — Express backend (declare-render, materials-agents, canvas).

Schema format

Same as materials-cli: declare-render format with id, width, height, layers (text, image, container, shape, etc.).