Use when a builder needs to compare two or three working UI directions before choosing one, using Ouro UI's Storybook.[^directions]
Install
npx skillscat add ourostack/ouro-ui/ouro-prototype Install via the SkillsCat registry.
Prototype with Ouro UI
Make the decision from working interactions, not pictures. Keep exploration in repository-only stories; do not import the prototype into a registry item or an app's shipped code.
Frame the job. Identify the component or flow, its context, the action the person needs to complete, and the states that matter. If the brief is broad, pick one decision to explore first.
Look around. Read the existing story, component, tokens and neighboring UI. Follow the draft Ouro HX motion and craft standard and this repository's
AGENTS.md; use existing Ouro HX for web components and theme tokens.Choose directions. Name two or three meaningfully different approaches and the axis each explores, such as layout, interaction or density. Different colors or wording alone are not distinct directions. Give each realistic content and working actions, including keyboard, focus, error and reduced-motion behavior where relevant.
Build in Storybook. Add a repository-only story under
stories/, and use thePrototypeworkspace from.storybook/prototype.tsx. Supply unique names and render functions:<Prototype variants={[ { name: "Inline", render: () => <Inline /> }, { name: "Sheet", render: () => <SheetDirection /> }, ]} />See
stories/reference/sheet-feel.stories.tsxfor an existing comparison.Compareshows the directions together, stacking them when space is narrow; a named button shows that direction at full width. Switching views resets the variants, including open overlays. Keep the surrounding context realistic and make each variant manage its own state.Exercise and present. Run
pnpm storybook, open the story, and try every direction and its actions at useful sizes, in light and dark, with keyboard and reduced motion. Check the console and run the relevant focused tests and Ouro check; report what was actually checked. Give the story URL and a short comparison of each direction's benefit and cost. Leave the choice to the person.After a choice. Integrate only the chosen direction using the normal component and test conventions. Remove the exploration story and its unused variants unless the person asks to keep them. If another round is needed, retain the story and make new, genuinely distinct directions.
[^directions]: test:test/prototype.test.tsx::compares interactive variants and switches to one full-size view verify:testExists(test/prototype.test.tsx::compares interactive variants and switches to one full-size view)