core

Define schemas, catalogs, and AI prompts for json-render.

1|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/pch007/json-render --skill core-pch007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core
Source: https://github.com/pch007/json-render/tree/main/skills/core
Command: npx skills add https://github.com/pch007/json-render --skill core-pch007

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a cohesive core toolkit for json-render developers to define schemas, catalogs, and AI prompts in a reusable, testable package.

Core Features & Use Cases

  • Schema Definition: Define and validate data structures that shape AI-generated specs using helpers like defineSchema.
  • Catalog Creation: Build catalogs mapping component names to definitions with defineCatalog for consistent UI spec generation.
  • AI Prompt Generation: Generate system prompts and templates for guiding AI spec creation, resolution, and validation in streaming workflows.
  • Use Case: A team builds a centralized core library to standardize schemas, catalogs, prompts, and validation across multiple renderers.
  • Automated validation and transformation utilities like validateSpec, autoFixSpec, and diffToPatches support robust spec lifecycle.

Quick Start

Install @json-render/core in your project and start by defining a simple schema and catalog to generate a JSON spec from a guided prompt.

Frequently Asked Questions about core

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

FAQPage Schema
How do I define and validate JSON schemas for AI-generated UI specs?

You define and validate JSON schemas for AI-generated UI specs using helpers like defineSchema and validateSpec. This toolkit provides typed definitions and automated validation utilities to shape data structures and ensure spec reliability.

What is the best way to build a reusable component catalog for UI spec generation?

Building a reusable component catalog for UI spec generation involves mapping component names to definitions using defineCatalog. This ensures consistent spec resolution and standardizes component mapping across multiple renderers.

How do I generate system prompts for guiding AI spec creation and streaming workflows?

Generating system prompts for AI spec creation involves composing prompt templates using the core utilities. These templates guide spec generation, resolution, and validation specifically within streaming workflows.

Can I automate spec validation and apply fixes for json-render workflows?

You can automate spec validation and apply fixes for json-render workflows using autoFixSpec and diffToPatches utilities. These tools support the spec lifecycle by automatically correcting errors and generating transformation patches.

Do I need a state store to manage UI spec resolution and streaming?

You need a state store to manage UI spec resolution and streaming by utilizing createStateStore. This utility handles state management for reliable, reusable UI specs during spec generation and validation processes.