# Ui Components

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-sukirman1901-frontend-expert-ui-components`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sukirman1901](https://agentstack.voostack.com/s/sukirman1901)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sukirman1901](https://github.com/sukirman1901)
- **Source:** https://github.com/sukirman1901/frontend-expert/tree/main/skills/ui-components
- **Website:** https://github.com/sukirman1901/frontend-expert

## Install

```sh
agentstack add skill-sukirman1901-frontend-expert-ui-components
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# UI Components

## Overview

Implement production UI with composition over configuration, clear state handling, and components under 200 lines.

## When to Use

- Building or modifying components, pages, layouts
- Wiring interactive UI with `/ui`
- Refactoring overgrown or prop-heavy components

## Workflow

1. **Structure**
   - Prefer composition over configuration
   - Separate data fetching from presentation
   - Colocate component + test + styles when practical
   - Keep files under 200 lines (split if larger)

2. **State** (see also `references/architecture.md`)
   - Local (`useState`) → component UI
   - Lifted → 2–3 siblings
   - Context → theme, auth, locale
   - URL → filters, pagination
   - Server state (React Query/SWR) → remote data
   - Avoid prop drilling deeper than 3 levels

3. **Required UI states**
   - Loading
   - Error
   - Empty
   - Default / success

4. **Responsive** — **MUST** load `responsive-ui` for layout UI
   - Mobile-first; verify 320 / 768 / 1024 / 1440
   - No fixed widths that break small screens; adapt tables/nav

5. **Icons (default on — do not omit)**
   - **MUST** use **[Reicon](https://reicon.dev)** for nav, toolbars, empty states, and icon buttons unless the project already standardizes another library
   - Vanilla HTML/CSS/JS: add CDN `https://unpkg.com/reicon/cdn/reicon.min.js` + ``
   - React: `reicon-react`; Vue/Svelte: matching package — see `references/reicon-icons.md`
   - Prefer `currentColor` + token text classes; Outline default, Filled for emphasis
   - Icon-only controls need an accessible name
   - Text-only UI only with an explicit waiver in the Conventions check

6. **Selects / filters (product UI)**
   - Prefer **custom select / combobox / listbox** styled with tokens — not bare OS `` chrome for dashboard filters and toolbars
   - Trigger: label + value + caret; **generous end padding / gap** so the chevron is not flush to the right edge
   - Menu: token surface, hover/selected states, Escape + outside-click close; keyboard path required
   - Native `` only with waiver (e.g. native mobile OS picker required) — note in Conventions

7. **Tokens + slop**
   - Use `design-tokens` for all visual values
   - Finish with `anti-ai-slop` scan

8. **Before DONE**
   - Output **Conventions check** from `references/compliance-gates.md` (tokens, icons, states, **responsive**, webgl n/a, …)

## Checklist

- [ ] Composition preferred over giant prop APIs
- [ ] Loading / error / empty handled
- [ ] **Reicon (or project icon lib) actually in the markup** — not forgotten
- [ ] Interactive elements keyboard accessible
- [ ] Filters/selects are custom (or waived) — caret not cramped
- [ ] **Responsive:** 320/768/1024/1440 + Conventions line
- [ ] Component ≤ 200 lines or split
- [ ] Anti-slop scan clean
- [ ] Conventions check reported

## Depth

Good/bad examples: `references/component-patterns.md`.  
Responsive: `responsive-ui` + `references/responsive.md`.  
Icons: `references/reicon-icons.md`.  
Ship gates: `references/compliance-gates.md`.  
State & org: `references/architecture.md`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sukirman1901](https://github.com/sukirman1901)
- **Source:** [sukirman1901/frontend-expert](https://github.com/sukirman1901/frontend-expert)
- **License:** MIT
- **Homepage:** https://github.com/sukirman1901/frontend-expert

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sukirman1901-frontend-expert-ui-components
- Seller: https://agentstack.voostack.com/s/sukirman1901
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
