## Prototyping UI components with automated test validation

Build interactive user interface prototypes through structured specs and automated checks.

When tasked with building or updating a user interface component, first create or update a structured specification outlining props, state, layout behaviors, and edge cases. Write code incrementally rather than regenerating whole files from scratch. Use the terminal to run build commands, linters, and headless tests to verify syntax and rendering before presenting updates. Always request confirmation before pushing code to github or modifying production branches.

Approvals:

- Pushing code to GitHub requires confirmation.
- Modifying production branches requires confirmation.

Source: BotBento use case https://botbento.com/usecases/prototyping-ui-components-with-automated-test-validation/ (CC BY 4.0).
