Loading...
Loading...
AI-assisted UI generation patterns for json-render, v0, Bolt, and Cursor workflows. Covers prompt engineering for component generation, review checklists for AI-generated code, design token injection, refactoring for design system conformance, and CI gates for quality assurance. Use when generating UI components with AI tools, rendering multi-surface MCP visual output, reviewing AI-generated code, or integrating AI output into design systems.
npx skill4agent add yonatangross/orchestkit ai-ui-generation| Category | Rules | Impact | When to Use |
|---|---|---|---|
| json-render Integration | 1 | HIGH | Multi-surface output, MCP visual output, type-safe catalogs |
| Prompt Engineering | 2 | HIGH | Writing prompts for component generation |
| Quality Assurance | 2 | CRITICAL/HIGH | Reviewing and gating AI-generated code |
| Design System Integration | 2 | HIGH | Injecting tokens, refactoring for conformance |
| Tool Selection & Workflow | 2 | MEDIUM | Choosing the right AI tool, iterating prompts |
| Scenario | Tool | Why |
|---|---|---|
| Multi-surface / MCP visual output | json-render | Single catalog renders to any surface — FIRST CHOICE |
| Type-safe component catalog | json-render | Schema-driven specs with per-platform registries |
| Streaming UI from AI agents | json-render | Structured JSON specs render progressively |
| New component from scratch | v0 | Full scaffold with shadcn/ui, Tailwind, a11y |
| Full-stack prototype/app | Bolt | Includes backend, routing, deployment |
| Incremental change in existing codebase | Cursor | Understands project context, imports, tokens |
| Refactor existing component | Cursor | Reads surrounding code, respects conventions |
| Explore visual design variations | v0 | Fast iteration on look-and-feel |
| Add feature to running app | Bolt | Hot-reload preview, full environment |
| Fix bug in existing component | Cursor | Inline edits with full project awareness |
Generate a React signup form component using:
- Framework: React 19 + TypeScript
- Styling: Tailwind CSS v4 + shadcn/ui
- Tokens: use color.primary, color.destructive, spacing.md from our design system
- A11y: ARIA labels on all inputs, error announcements via aria-live
- States: default, loading (disabled + spinner), error (inline messages), success
- Responsive: stack on mobile (<640px), 2-col on desktop// AI generated: hardcoded hex value
<button className="bg-[#3b82f6] text-white px-4 py-2">Submit</button>
// After human review: design token applied
<Button variant="default" size="md">Submit</Button>ork:json-render-catalog| Rule | File | Key Pattern |
|---|---|---|
| json-render Patterns | | Catalog-first: define once, render anywhere via per-platform registries |
| Rule | File | Key Pattern |
|---|---|---|
| Prompt Patterns | | Constraint-first prompts with framework, tokens, a11y |
| Iteration Patterns | | Multi-pass prompts for complex interactive states |
| Rule | File | Key Pattern |
|---|---|---|
| Review Checklist | | 10-point checklist for every AI-generated component |
| CI Gate | | Automated quality gates before merge |
| Rule | File | Key Pattern |
|---|---|---|
| Token Injection | | Pass token names in prompts, reject hardcoded values |
| Refactoring Conformance | | Steps to refactor raw AI output for design system |
| Rule | File | Key Pattern |
|---|---|---|
| Tool Selection | | Match tool to use case: v0, Bolt, Cursor |
| Iteration Patterns | | Iterative refinement for complex states |
| Resource | Description |
|---|---|
| references/ai-ui-tool-comparison.md | json-render vs v0 vs Bolt vs Cursor vs Copilot comparison |
| references/prompt-templates-library.md | Copy-paste prompt templates for common components |
| references/ai-ui-failure-modes.md | Top 10 failure modes and fixes |
ork:json-render-catalogork:mcp-visual-outputork:multi-surface-renderork:ui-componentsork:accessibilityork:animation-motion-designork:responsive-patternsork:design-system