--- name: create-user-interfaces description: Create or improve user interfaces. Use when designing or implementing user experiences. license: Unlicense --- # Create user interfaces

## Theory

LLMs do not understand the concept of negative space. When they are being trained, if something exists conceptually, there are tokens that correspond to that in their context. Which means that the absence of a thing is incomprehensible to a LLM.

Human cognition works differently: negative space guides our attention towards the object, and can be used to visually suggest the course of action.

We can overcome this limitation with manual checks and more careful explicit considerations.

## Principles

## Actions

This skill can be used in two modes:

### Improving an existing interface

Go over the list of pitfalls and nothing else as part of applying this skill.

### Creating an interface from scratch

## Common user interface pitfalls

### UIF0: UX is not focused on intent

How to detect & fix:

  1. 1. Explicitly write down a mapping between UI elements in an interface and user intents that guide the user interacting with these elements.

Example:



```
- button `#click-me`:
  - roll a dice
  - explore the website
  - do an unpredictable action
- button `#close`
  - exit
  1. ``` 2. Use **understand-intent** skill to get UI intent (choice options are possible interface user intents)
  2. 3. For every UI element, write down a reason why removing it would be at odds with fulfilling the core intent.
  3. 4. If the reason is not convincing or absent, remove the element

### UIF1: Display-only and interactive elements are not visually separated

### UIF2: Same statements are repeated in a single view with slight variations or elaboration

Example:



```
> Our protocol is the best. Non custodial. Blazing fast.
[ ✅ Non Custodial ] [ ✅ Blazing Fast ]

``` Example:



```
<h1>Copy Trading</h1>

<h2>Copy the best. Trade like them</h2>

<p>Mirror top traders in real time with full transparency.</p>

``` How to fix:

### UIF3: Unstructured interactive or stateful UI surfaces

User action choice (menus, navbars, link lists, etc) is a fundamental interaction primitive. Choice options should be presented in a visually uniform way (that's how the user knows they are actionable).

How to detect:

### UIF4: Interleaved interactive and display-only elements

Example:



```
Your API key: [sk1-......] [ Copy ] Copying hides the API key [ Revoke ] [ Rotate ]

``` Problem here: "Copying hides the API key" label breaks the UX flow.

How to fix:

Elements that are semantically attached to an action element should be tooltips, confirmation pop-ups, post-action roast notifications, etc

### UIF5: Non-actionable elements using visual language of interactive elements

How to fix:

For non-actionable elements, remove unless justified by intent:

A separate case of this problem is screenshots or interface mockups that are placed alongside content to demo the UX. They can be confused with real interactive elements. 3D-tilt them, slightly rotate, apply shifted box shadow, or draw something on top (use **understand-intent** skill to decide)

### UIF6: call-to-action fatigue