Render JSON schemas to images and generate schemas from prompts using declare-render and AI.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install materials-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install materials-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/materials-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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 ---
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.
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, and shape. Use materials validate to check a schema before rendering.
安装 Materials Cli 后,可以对 AI 说这些话来触发它
Help me get started with Materials Cli
Explains what Materials Cli does, walks through the setup, and runs a quick demo based on your current project
Use Materials Cli to render JSON schemas to images and generate schemas from prompts usi...
Invokes Materials Cli with the right parameters and returns the result directly in the conversation
What can I do with Materials Cli in my design & creative workflow?
Lists the top use cases for Materials Cli, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/materials-cli/ 目录(个人级,所有项目可用),或 .claude/skills/materials-cli/(项目级)。重启 AI 客户端后,用 /materials-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Materials Cli 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Materials Cli 可免费安装使用。请查阅仓库了解许可证信息。
Render JSON schemas to images and generate schemas from prompts using declare-render and AI.
Materials Cli 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Materials Cli
Identifies repetitive steps in your workflow and sets up Materials Cli to handle them automatically