d6e-prompt-driven-ui
Installation
SKILL.md
d6e Prompt-Driven UI
Overview
A d6e workspace prompt rule turns the LLM behind
/api/workflows/execute-by-intent into a typed JSON producer. The
frontend renders that JSON as cards, tables, status badges, and
"follow-up" forms — never raw chat bubbles. This skill teaches the
three layers that make that work reliably:
- Prompt layer — Force the LLM into one of a small set of
scenarios, each declaring
kindplus a strict field schema, all emitted inside a single```jsonfenced code block. - Parse layer — Strip the fences,
JSON.parseeach block, and dispatch onkindagainst a Zod schema. Never throw. - Render layer — Switch on
parsed.kindto pick a typed component; fall back to a markdown render of the raw assistant text so the card never goes blank.