What problem does it solve?
Code generation from UI specifications often becomes error-prone, hard to traverse, and inconsistent across projects; this Skill solves that by providing deterministic utilities to analyze and serialize json-render UI trees into code.
Core Features & Use Cases
- Spec traversal: Walk json-render UI trees depth-first to inspect element types and structure for downstream generation.
- Discovery utilities: Collect referenced component types, state paths, and action names so generated code includes only what’s actually used.
- Code-ready serialization: Serialize props and state-bound values into JSX-friendly attribute syntax, including safe string escaping and configurable quoting.
Quick Start
Use the codegen skill to generate Next.js components and exporters by traversing your json-render spec, collecting used components and state/action references, and serializing props into framework-safe source code.