---
name: prototyping-ui-components-with-automated-test-validation
description: "Builds or updates user interface components by drafting a structured specification, implementing incrementally, and running syntax checks and headless browser tests. Use when a person requests a new or revised UI component and wants verified code before delivery."
license: CC-BY-4.0
compatibility: "Needs access to: Browser, GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/prototyping-ui-components-with-automated-test-validation/"
  kind: skill
  hermes:
    tags: ["frontend", "prototyping", "testing", "javascript"]
    category: coding
    requires_toolsets: ["browser", "terminal"]
---
# Prototyping UI components with automated test validation

Build interactive user interface prototypes through structured specs and automated checks

## When to use

Creating interactive interface widgets purely through one-shot code generation frequently causes layout bugs and syntax errors. This workflow clarifies requirements in a technical specification document, implements components incrementally, and runs syntax checks and headless browser tests to confirm rendering before delivering code.

## Inputs

- `component_request`: The user interface component to build or update, including intended behavior and any known requirements.
- `existing_specification` (optional): A current structured specification to update, if one already exists for the component.

## Steps

1. When you ask: Submit component request (A person asks to build or update a user interface component.)
2. Draft specs and run test build
3. Verified component code

## Instructions

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.

## Output

Verified component code after syntax checks and headless browser tests. (format: file)

## Source

Summarized in our own words from [Ask HN: Why is my Claude experience so bad? What am I doing wrong?](https://news.ycombinator.com/item?id=47000206) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/prototyping-ui-components-with-automated-test-validation/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
