Skip to content
Back to skills

Materials Cli

ASecurity

Render JSON schemas to images and generate schemas from prompts using declare-render and AI.

  • 33 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
toolsbashnodeapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 18 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill materials-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Materials Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Materials Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-materials-cli/badge)](https://www.skillsdirectory.com/skills/dvcrn-materials-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: materials-cli
description: "Render JSON schemas to images and generate schemas from prompts using declare-render and AI."
---

# Materials CLI

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.

## Commands

- **render** — Render a JSON schema file to an image.
- **generate** — Use AI (OpenAI) to generate a schema from a prompt, then render it.
- **validate** — Validate a JSON schema against the declare-render data schema.

## When to use

- User asks to "render a schema to image", "turn JSON into a picture", or "draw from schema".
- User wants to "generate an image from a description" or "create a schema from a prompt" and render it.
- User wants to "validate" a JSON file against the render data schema.

## Usage

Run via Node (from the project or after `npm install -g materials-cli`):

```bash
materials render <schema-path> [options]
materials generate "<prompt>" [options]
materials validate <schema-path> [options]
```

### Render

- `materials render schema.json -o output.png`
- Options: `-s, --schema <path>`, `-o, --output <path>` (default `./output.png`), `-f, --format <png|jpg>`, `-w, --width`, `-h, --height`, `--output-schema <path>`, `-i, --interactive`

### Generate (AI)

- `materials generate "A red circle with text Hello" -o out.png`
- Options: `-o, --output`, `-f, --format`, `-w, --width`, `-h, --height`, `--output-schema`, `--model`, `--api-key`, `--base-url`, `-i, --interactive`
- Uses `OPENAI_API_KEY` (and optionally `OPENAI_MODEL`, `OPENAI_BASE_URL`) if not passed via flags.

### Validate

- `materials validate schema.json`
- Options: `-s, --schema <path>`, `-i, --interactive`

## CLI help

```
Usage: 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
```

## Schema format

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 <file>` to check a schema before rendering.

Files in this skill

  • README.md3.1 KB
  • SKILL.md2.3 KB
  • bin/materials-cli.js857 B
  • package-lock.json57.5 KB
  • package.json1.2 KB
  • pnpm-lock.yaml38.7 KB
  • pnpm-workspace.yaml34 B
  • scripts/build.mjs1013 B
  • src/commands/generate.ts3.4 KB
  • src/commands/render.ts3.2 KB
  • src/commands/validate.ts6.4 KB
  • src/declare-render.d.ts140 B
  • src/index.ts2 KB
  • src/utils/canvas.ts4.2 KB
  • src/utils/errors.ts1.5 KB
  • src/utils/install.ts2.9 KB
  • test-schema.json689 B
  • tsconfig.json543 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.