Frontend Builder
by @h4gen
Generates production-ready React TSX frontend components from natural-language UI goals for non-programmers, including setup instructions and dependencies.
clawhub install frontend-builder📖 About This Skill
name: no-code-frontend-builder description: Meta-skill for generating production-ready React UI for non-programmers by orchestrating frontend-design-ultimate, shadcn-ui, and react-expert. Use when users describe UI outcomes (for example dashboards, landing pages, admin screens) and need a single copy-pasteable TSX component with explicit setup and dependency instructions. homepage: https://clawhub.ai user-invocable: true disable-model-invocation: false metadata: {"openclaw":{"emoji":"🧩","requires":{"bins":["node","npm","npx"],"env":[],"config":[]},"note":"Requires local installation of frontend-design-ultimate, shadcn-ui, and react-expert."}}
Purpose
Enable non-programmers to get production-grade frontend components from natural-language requirements.
This meta-skill coordinates three upstream skills and produces implementation-ready output, usually as one .tsx file plus concise setup notes.
It does not replace upstream skill logic and does not assume hidden dependencies are already installed.
Required Installed Skills
frontend-design-ultimate (inspected latest: 1.0.0)shadcn-ui (inspected latest: 1.0.0)react-expert (inspected latest: 0.1.0)Install/update:
npx -y clawhub@latest install frontend-design-ultimate
npx -y clawhub@latest install shadcn-ui
npx -y clawhub@latest install react-expert
npx -y clawhub@latest update --all
Verify:
npx -y clawhub@latest list
OpenClaw Compatibility Notes
This skill is written to match OpenClaw skill-loading rules:
SKILL.md with YAML frontmatter and Markdown bodymetadata encoded as a single-line JSON objectIf this file is edited later, keep those constraints intact.
Runtime Prerequisites
Minimum local stack:
Adjacent ecosystem dependencies (from inspected upstream skill content):
tailwindcss (layout/styling baseline)lucide-react (icons used by many shadcn examples)next-themes (theme toggle patterns in shadcn guidance)react-hook-form, zod, @hookform/resolvers (form patterns)framer-motion (motion patterns from frontend-design-ultimate)recharts or equivalent if a real chart package is requiredIf user wants shadcn components and they are missing, include explicit setup commands in output:
npx shadcn@latest init
npx shadcn@latest add card button badge tabs table sheet sidebar
Do not assume Next.js unless the user says Next.js.
Default to framework-agnostic React .tsx output that can run in Vite or Next.js with minimal adaptation.
Inputs the LM Must Collect First
ui_goal (dashboard, landing page, admin panel, etc.)theme_mode (dark, light, or system)primary_metrics (for example revenue, MRR, growth)chart_expectation (line, bar, area; static or interactive)layout_density (compact, balanced, spacious)brand_constraints (colors, logo, typography constraints)target_framework (vite-react, nextjs, or generic-react)single_file_strict (true/false)If any critical input is missing, make explicit defaults and state them in Assumptions.
Tool Responsibilities
frontend-design-ultimate
Use for visual direction and anti-generic design decisions:
From inspected upstream guidance:
shadcn-ui
Use for robust UI primitives and composition patterns:
From inspected upstream guidance:
react-expert
Use for behavioral correctness and maintainability:
From inspected upstream guidance:
Canonical Causal Chain
Use this exact orchestration order.
1. Requirement Parse
2. Design Direction (frontend-design-ultimate)
3. Component Architecture (shadcn-ui)
4. React Glue Logic (react-expert)
5. Output Assembly
.tsx file by default.Setup section with required install commands.Assumptions and Adaptation Notes.Output Contract
Default output must contain:
Setup:Single TSX File:Assumptions:Adaptation Notes:No auxiliary script generation. No multi-file scaffolding unless user explicitly asks.
Chart Handling Rule
If chart library is not guaranteed in target project:
.tsx.Do not hallucinate unavailable chart components. If using external chart lib (for example Recharts), include install command and clearly label as optional.
Scenario Mapping: Revenue Dashboard (Dark Mode)
For scenario: "I need a dark-mode dashboard showing revenue metrics"
Execution:
1. frontend-design-ultimate defines dark palette, bold typography, and dashboard composition (sidebar + metric grid + chart area).
2. shadcn-ui maps layout to Card, Badge, Tabs, optional Sidebar primitives.
3. react-expert creates typed metric arrays and rendering loops for KPI tiles + trend view.
4. final output returns one production-usable .tsx component plus setup commands.
Quality Gates
Before finalizing output, ensure:
sm/md/lg responsive strategy)If any gate fails, return Needs Revision with a concrete missing-items list.
Guardrails
Assumptions).