codegen

Generate framework-ready files and serialized props from json-render UI specifications.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/hasnaxyz/open-render --skill codegen-hasnaxyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codegen
Source: https://github.com/hasnaxyz/open-render/tree/main/skills/codegen
Command: npx skills add https://github.com/hasnaxyz/open-render --skill codegen-hasnaxyz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you turn json-render UI specs into real application code, removing the repetitive work of manually traversing component trees, collecting state references, and serializing props for different frameworks.

Core Features & Use Cases

  • Spec traversal: Walk a UI tree to inspect elements, components, state paths, and actions in a deterministic way.
  • Code export support: Build custom generators for frameworks like Next.js, Remix, or other targets that need generated files.
  • Serialization utilities: Convert props and values into JSX-friendly output while escaping strings safely.
  • Use case: A developer can feed a json-render spec into a custom exporter to produce an app shell, component files, and framework-specific configuration.

Quick Start

Ask the codegen skill to generate a custom exporter for a json-render spec and serialize its props into framework-ready output.

Frequently Asked Questions about codegen

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

FAQPage Schema
How do I generate framework-ready code from json-render UI specs?

To generate code from json-render UI specs, you can use a custom exporter to traverse the component tree, serialize props, and output framework-ready files for application generation workflows.

What is spec traversal for UI component trees?

Spec traversal is the process of walking a json-render UI tree to deterministically inspect elements, collect components and actions, and analyze state paths for code generation.

How do I serialize props into JSX-friendly output?

You can serialize props into JSX-friendly output by using deterministic serialization utilities that safely escape strings and convert values during the code generation process.

Can I build a custom code exporter for Next.js or Remix using json-render specs?

Yes, you can build custom code exporters for frameworks like Next.js or Remix by feeding json-render specs into the generator to produce app shells, component files, and configuration.

What's the best way to collect state paths and actions from a UI spec?

The best way to collect state paths and actions is through deterministic spec traversal, which walks the UI tree to inspect elements and extract state references for code generation.