Vai al contenuto
TakoAPI
Torna alle skill

test-materials

di cai-zhuo

DevOps & Cloud
366Download riportati da clawskills.sh
0Visualizzazioni
0 likeAccedi per mettere like a questa skill
—Non ancora valutato
La tua valutazione

Sintesi

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

Descrizione

Cosa fa questa skill

A CLI tool for working with declare-render JSON schemas. It renders schemas to PNG or JPG images, validates schema files against the declare-render format, and generates schemas from text prompts using OpenAI.

Combines schema generation, validation, and rendering in a single CLI instead of requiring separate tools for each step.

Quando usarla

  • Rendering a JSON layout schema to a PNG for design review
  • Generating an image from a plain-text description without writing JSON
  • Validating a schema file before passing it to a render pipeline
  • Exporting structured visual templates as static image files
  • Prototyping image layouts by describing them in natural language

Esempio di workflow

INPUT

User asks: generate an image of a red circle with the text 'Hello'

AGENT
  1. 1

    Runs materials generate "A red circle with text Hello" -o out.png

  2. 2

    OpenAI generates a declare-render JSON schema from the prompt

  3. 3

    CLI validates the generated schema against the declare-render format

  4. 4

    CLI renders the schema to out.png

OUTPUT

out.png saved to the working directory containing a red circle with 'Hello' text

Requisiti

  • OPENAI_API_KEY — OpenAI API key, required for the generate command

Installazione

clawhub install cai-zhuo/test-materials

Esegui il comando CLI oppure incolla il prompt in Claude Code, Cursor, Codex o nell'agente di coding che usi.

Link