/design-engine:ui-demofrom design-engine
Records web application demo videos using Playwright. Produces WebM with injected cursor, paced story, and discovered/rehearsed selectors. Three-phase workflow: discover, rehearse, record.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com. Imported and adapted from ECC's
ui-demo skill. This is a production/engineering mechanism (Playwright automation), not a design
opinion, so it is imported close to source rather than re-sourced to design authority — its
correctness is verifiable by running it, which is the discipline this skill itself enforces
(Discover -> Rehearse -> Record).
demo-driven-design-process's answer to what to show and need the actual
recording produced.05-ux-process-research-and-psychology/demo-driven-design-process; this
skill takes that decision as an input.| Artefact or context | Source | Required? | Why |
|---|---|---|---|
| A running instance of the target web app | User or project | yes | Discovery and recording both require a live target |
| The flow/story to demonstrate | User, or demo-driven-design-process output | yes | Determines the script's step order |
| Playwright installed in the project | Project | yes | The recording mechanism itself |
Three phases; never skip discovery or rehearsal before recording.
Before writing any script, navigate to each page in the flow and dump its actual interactive
elements (inputs, selects, buttons, contenteditable regions) via a page.evaluate DOM walk.
Do not assume field types — a "dropdown" may be a custom combobox, not a native <select>; a
comment box may support @mentions/#tags. Record exact button label text, which fields are
required, and whether content appears dynamically after other fields are filled. Output a field
map per page (see references/discover-and-rehearse.md).
Run every step without recording, using an ensureVisible helper that logs and fails loudly
on any selector that does not resolve, dumping the actual visible elements on failure so the
correct selector can be found immediately. Fix every failing selector and re-run until rehearsal
passes clean. Silent selector failures during an actual recording are the main reason demo
recordings break — rehearsal exists to catch them before a wasted take. See
references/discover-and-rehearse.md for the full helper and script structure.
Only after discovery and rehearsal both pass:
mousemove, re-injected after
every navigation (the overlay is destroyed on navigate).page.mouse.move with steps: 10) before
clicking; every click/type helper takes a descriptive label for debugging.pressSequentially with a per-character delay.Step N - Action, under ~60 characters), re-injected
after every navigation alongside the cursor overlay, cleared during long pauses.
Full helper code (injectCursor, ensureVisible, moveAndClick, typeSlowly,
injectSubtitleBar, showSubtitle, panElements) and the script template:
references/recording-helpers.md.| Condition | Action | Wrong-choice failure |
|---|---|---|
| A selector fails during rehearsal | Fix it and re-run rehearsal before recording | Silent failure discovered mid-recording, wasted take |
| Field type not yet confirmed | Discovery's DOM dump, not assumption | Script written against the wrong element type breaks |
| Cursor overlay after a page navigation | Re-inject injectCursor/injectSubtitleBar | Overlay is destroyed on navigate; cursor disappears silently |
| A popup/new tab opens mid-flow | Capture the popup page explicitly | context.close() at the end otherwise misses a separate video stream |
Execution (Playwright, a running target app) is required for all three phases — this skill cannot produce a verified result without it. Read access to the target app's rendered DOM is required for Discovery. Editing is scoped to the demo script itself.
Without a running target app or Playwright available, produce the script structure and field-map template only, explicitly marked as unrehearsed and unrecorded — never claim a recording exists without having actually run Phase 3. Stop before recording if discovery or rehearsal has not passed; retain the failure log and fix the selector or environment before attempting another take.
catch blocks in helpers — swallows exactly the failures rehearsal exists to surface;
every helper must log a warning on failure.value="0", text containing "Select...") is real data.| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| Field map per page (Discovery) | Rehearsal script authoring | Every selector used in the demo script traces to a confirmed element |
| Passing rehearsal run | Recording phase | ensureVisible reports OK for every step before recording starts |
| WebM demo video at a stable output path | Documentation, onboarding, stakeholders | Cursor and subtitle overlays present throughout; no unhandled script errors during the run |
examples/demo-script-template.md — the full Playwright script template (helpers +
discover/rehearse/record phases wired together) ready to adapt to a specific flow.references/discover-and-rehearse.md — the DOM-dump discovery snippet and the ensureVisible
rehearsal helper, with the rehearsal script structure.references/recording-helpers.md — cursor overlay, subtitle bar, moveAndClick, typeSlowly,
and panElements helper implementations, plus the pacing table.05-ux-process-research-and-psychology/demo-driven-design-process (decides what to
demo) and browser-qa-equivalent skills for functional verification before recording.ui-demo skill, imported close to source — a Playwright production mechanism,
verifiable by running it, not a design-authority claim requiring re-sourcing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job