json-render-templates

Convert UI layout requests into structured JSON payloads for multiple UI templates.

11|2|Updated Jun 25, 2025
One-click install
npx skills add https://github.com/cklxx/elephant.ai --skill json-render-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: json-render-templates
Source: https://github.com/cklxx/elephant.ai/tree/main/skills/json-render-templates
Command: npx skills add https://github.com/cklxx/elephant.ai --skill json-render-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill converts UI layout requests into structured JSON payloads for multiple UI templates (Flowchart, Form, Dashboard, Info Cards, and Gallery), enabling consistent rendering and easy integration with UI renderers.

Core Features & Use Cases

  • Template-driven UI rendering: Generates standardized JSON payloads from design intents for Flowchart, Form, Dashboard, Cards, and Gallery.
  • Easy data binding: Replace template data values and produce ready-to-send UI instructions.
  • Use Case: A designer requests a dashboard layout; the skill outputs a JSON payload that can be emitted to the UI layer with a2ui_emit.

Quick Start

Use the json-render-templates skill to convert your interface spec into a Flowchart payload and emit it with a2ui_emit.

Frequently Asked Questions about json-render-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a dashboard layout request into a structured JSON payload?

To convert a dashboard layout request into a structured JSON payload, you select the desired template, substitute your data values into the layout, serialize the structure to JSON, and emit it via a2ui_emit.

What UI templates can I generate JSON payloads for?

You can generate JSON payloads for five UI templates: Flowchart, Form, Dashboard, Info Cards, and Gallery, enabling consistent serialized representations of your interface designs.

How do I render flowchart data as a serialized JSON format?

You render flowchart data as a serialized JSON format by selecting the Flowchart template, substituting your specific data values into the structure, and emitting the resulting payload with a2ui_emit.

Does this approach require any specific dependencies to emit UI payloads?

No specific dependencies are required, but the serialized JSON output must be emitted via the a2ui_emit function with the content field to render the templates in a UI layer.

What is the best way to bind data values into UI templates for JSON output?

The best way to bind data values into UI templates for JSON output is by selecting a template, substituting the design data values directly into the structure, and serializing it for the UI renderer.