ourostack

ouro-prototype

Use when a builder needs to compare two or three working UI directions before choosing one, using Ouro UI's Storybook.[^directions]

ourostack 1 1 Updated 1d ago
GitHub

Install

npx skillscat add ourostack/ouro-ui/ouro-prototype

Install via the SkillsCat registry.

SKILL.md

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.

  1. 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.

  2. 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.

  3. 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.

  4. Build in Storybook. Add a repository-only story under stories/, and use the Prototype workspace 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.tsx for an existing comparison. Compare shows 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.

  5. 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.

  6. 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)

Categories