Verify Component Preview
SkillDev toolsUse whenever adding or modifying a web UI element, Svelte component, screen, icon, hover state, focus state, or responsive layout. Enforces bare URL-configured component proof before broader use-case specs.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Verify Component Preview skill
What this skill tells your AI
The instructions your AI receives, as published by glowingkitty/openmates in .agents/skills/verify-component-preview/SKILL.md and read by ahel’s review.
Use this workflow after the API/CLI/SDK gates that apply to shared behavior and
before implementing or running a broader route-level or use-case Playwright
spec. If Figma is involved, run figma-reference first.
Required Order
- Identify every component materially changed by the task.
- Ensure each component has a colocated
ComponentName.preview.tsfixture with one semantically valid default state and named variants where static state differs. - Open the deployed component in bare capture mode for every inspection, test,
screenshot, and recording. The canonical URL is:
https://app.dev.openmates.org/dev/preview/{component-path}?theme=light&background=%23dbeafe&width={width}&chrome=0. - Confirm the page shows only the component on the requested background. The preview toolbar, component catalogue, breadcrumb, props editor, variant bar, viewport guides, and status bar must not be visible.
- If no focused component spec exists, create it under
frontend/apps/web_app/tests/components/. Keep component specs separate from route-level and full use-case specs. - In the focused spec, drive meaningful hover, focus, keyboard, click, expanded/collapsed, on/off, loading, empty, error, and responsive states that apply to the component. Assert layout geometry, control visibility, icon presence, readable labels, clipping/overflow, and interaction results before each named proof checkpoint.
- Deploy, run the focused component spec, review its component-only proof, and fix objective defects before creating, extending, or running the broader use-case spec.
Component Spec Contract
- Include
// playwright-account: not_required reason=isolated_component_previewwhen the fixture performs no authenticated server action. - Navigate only to a URL-configured bare preview with
chrome=0; never inspect or record the configuration UI. - Use the
.preview.tsdefault fixture when testing the standard state. Use query parameters fortheme,background,width,variant, andpropsfor every non-default input or configuration; do not operate the old preview controls to configure state. - Assert the component and its behavior directly. Never use
preview-toolbar,preview-back-link,breadcrumb-name,preview-status-bar, the props editor, or the component catalogue as proof that a component rendered correctly. - The preview route's internal readiness marker may be used only to wait for mounting. It is not a product assertion or proof checkpoint.
- Use phone and laptop profiles only when responsive behavior differs.
- Publish the focused component video before moving to full-flow verification.
Stop Conditions
Do not continue to the broader use-case spec when the focused component has a missing or wrong icon, hidden control, overlap, clipping, overflow, invalid default state, broken hover/focus/click behavior, render error, or unexplained responsive difference. Fix and rerun the component spec first.
Do not modify a component or component spec owned by another live session. Report the exact conflicting file and continue with non-conflicting workflow or audit work.
Signals
- GitHub stars
- 46
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
verify-component-preview- Source
- github.com/glowingkitty/openmates