← 返回 Skills 市场
825
总下载
0
收藏
2
当前安装
9
版本数
在 OpenClaw 中安装
/install materials-cli
功能描述
Render JSON schemas to images and generate schemas from prompts using declare-render and AI.
安全使用建议
This skill appears to do what it says — render/validate JSON schemas and optionally generate schemas using OpenAI. Before installing: (1) Be aware it depends on node and node-canvas (native system libs) — follow the provided install steps for your OS; (2) the package references local file dependencies (materials-agents, declare-render) which may not be available when installing from an external registry; the generate command will fail unless you install the materials-agents package or pass an API key and model via flags; (3) the generate flow sends your OPENAI_API_KEY to OpenAI (or to any base URL you set) — only provide a key you trust and consider using a key with limited scope or rate limits; (4) if installing code from an unknown source, review the materials-agents and declare-render packages (or run the CLI in an isolated environment) to ensure there are no unexpected network calls or behaviors. Overall: functionally coherent, but double-check packaging and the auxiliary packages before use.
功能分析
Type: OpenClaw Skill
Name: materials-cli
Version: 1.0.8
The materials-cli bundle is a legitimate utility for rendering JSON schemas into images and generating schemas using the OpenAI API. The code follows standard Node.js CLI patterns, using commander for argument parsing, inquirer for interactive prompts, and node-canvas (via declare-render) for image generation. While the utility performs environment checks using execSync in src/utils/install.ts, these are limited to verifying the presence of required system libraries like cairo and pango. No evidence of data exfiltration, malicious prompt injection, or unauthorized network activity was found.
能力评估
Purpose & Capability
Name/description (render schemas, generate via AI) align with the code: render, validate, and generate commands are implemented and use declare-render and OpenAI. One oddity: package manifests reference local file dependencies (e.g., "materials-agents": "file:../materials-agents" and declare-render via local paths) which is unusual for a published package and may indicate the repository was packaged from a monorepo rather than prepared for publishing. This is likely a packaging/installation issue, not a capability mismatch.
Instruction Scope
SKILL.md and code only instruct the agent/CLI to load schema files, render them, validate them, or call an AI helper to produce schemas. The generate flow explicitly requires an OpenAI API key (or uses CLI flag), and no instructions request unrelated files, system credentials, or unknown external endpoints.
Install Mechanism
Registry entry has no install spec (instruction-only), but the package includes source and lockfiles. Dependencies include native 'canvas' (node-canvas) which requires platform libraries and rebuild steps; the code surfaces helpful install guidance. The biggest oddity: package.json/lock reference file:../ local packages (declare-render, materials-agents). That makes typical npm/pnpm installation fragile or confusing when installing from a registry or an unknown source.
Credentials
Declared required env is OPENAI_API_KEY (and the CLI also optionally reads OPENAI_MODEL and OPENAI_BASE_URL, which are reasonable). No other secrets or unrelated credentials are requested. The primary credential (OpenAI key) is appropriate for the generate command.
Persistence & Privilege
Skill does not request always:true or any special permanent agent privileges. It does not modify other skills or system-wide configs. It runs as a normal CLI-style tool.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install materials-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/materials-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
Update CLI documentation and validation
v1.0.7
materials-cli 1.0.7
- Updated dependencies and bumped version to 1.0.7.
- Minor adjustments and maintenance to documentation.
- No breaking changes or new features introduced.
v1.0.6
- Updated environment metadata key from "openclaw" to "clawdbot" in SKILL.md.
- Bumped version to 1.0.6.
- Updated lockfile and project metadata for consistency.
v1.0.5
Bump to 1.0.5.
v1.0.4
Publish to Claw Hub; declare-render ^1.1.4.
v1.0.3
CLI entry point, generate command, esbuild build, error details, overflow layout
v1.0.2
Include src, bin, dist for complete installation
v1.0.1
Update to use declare-render 1.1.0 with built-in schema normalization
v1.0.0
Initial release
元数据
常见问题
Materials Cli 是什么?
Render JSON schemas to images and generate schemas from prompts using declare-render and AI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 825 次。
如何安装 Materials Cli?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install materials-cli」即可一键安装,无需额外配置。
Materials Cli 是免费的吗?
是的,Materials Cli 完全免费(开源免费),可自由下载、安装和使用。
Materials Cli 支持哪些平台?
Materials Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Materials Cli?
由 White(@cai-zhuo)开发并维护,当前版本 v1.0.8。
推荐 Skills