Skip to main content
Glama
ui-craft-studio
by deusbr
README.md
# ui-craft-studio

[![CI](https://github.com/deusbr/ui-craft-studio/actions/workflows/ci.yml/badge.svg)](https://github.com/deusbr/ui-craft-studio/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Node.js >= 18](https://img.shields.io/badge/node-%3E%3D18.0.0-339933?logo=node.js&logoColor=white)](package.json)
[![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](package.json)

Zero-dependency **Anti-AI-Slop UI/UX & Interactive App Design Studio MCP** for **Mobile** and **Desktop/Web** — built for **Claude Code**, **Codex**, **Gemini CLI**, **Claude Desktop**, and **OpenBot**.

Unlike static screenshot/mockup generators, `ui-craft-studio` **studies your actual codebase first**, researches open-source GitHub design skills and UI patterns, compiles a machine-readable **`DESIGN.md`**, generates **clickable multi-screen & multi-state interactive prototypes** (`populated`, `loading`, `empty`, `error`), exports framework code (`CSS Tokens`, `React + Tailwind`, `React Native`), and runs deterministic **Anti-AI-Slop + WCAG 2.1 AA** audits.

---

## Inspired By & Integrated Open-Source Ecosystem

`ui-craft-studio` synthesizes proven design engineering patterns from leading open-source GitHub projects:
- [`google-labs-code/design.md`](https://github.com/google-labs-code/design.md) & [`google-labs-code/stitch-skills`](https://github.com/google-labs-code/stitch-skills) — Persistent `DESIGN.md` specification and modular UI architecture.
- [`pbakaus/impeccable`](https://github.com/pbakaus/impeccable) — Deterministic Anti-AI-Slop rules, design vocabulary, and project initialization.
- [`nextlevelbuilder/ui-ux-pro-max-skill`](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) — Multi-platform Mobile (iOS HIG / Material 3) & Desktop design intelligence and typography pairings.
- [`Vanszs/AntiSlopUI`](https://github.com/Vanszs/AntiSlopUI) & [`anthropics/skills`](https://github.com/anthropics/skills) — Negative ban-lists against cliché purple gradients/copy and mandatory edge-state coverage.

---

## Architecture

```mermaid
flowchart TD
  Input["Brief + Optional Local Project Path"] --> Scan["1. Codebase Archaeologist (Stack, Tokens, DESIGN.md, Routes)"]
  Scan --> Research["2. Hybrid Craft Research (Curated Library + Live GitHub/Web + Cache)"]
  Research --> UX["3. UX & Visual Director (Unique Aesthetic, Expressive Type, Mobile+PC Ergonomics)"]
  UX --> Proto["4. Interactive Prototype Builder (Multi-Screen, Ctrl+K, 4 UI States)"]
  Proto --> Code["5. DESIGN.md + CSS Tokens + React/Tailwind + React Native"]
  Code --> Audit{"6. Deterministic Anti-AI-Slop & WCAG AA Auditor"}
  Audit -->|"pass"| Workbench["Multi-Viewport Live Workbench (Mobile 390px + Desktop)"]
```

---

## Quick Start

### 1. Install MCP + Skill across Codex, Gemini CLI, Claude Code, and Claude Desktop
```bash
node bin/ui-craft-studio.cjs install
node bin/ui-craft-studio.cjs status
```

### 2. Study an Existing Codebase & Generate an Interactive Prototype
```bash
# Inspect any local app repository first
node bin/ui-craft-studio.cjs analyze ./my-app

# Research GitHub UI/UX skills & patterns (curated + live GitHub/Wikipedia)
node bin/ui-craft-studio.cjs research "fintech dark workspace"

# Generate DESIGN.md + clickable Mobile & Desktop prototype + framework shells
node bin/ui-craft-studio.cjs design "Freelancer treasury & invoice workspace" --project ./my-app --platforms mobile,desktop
```

### 3. Launch the Local Multi-Viewport Workbench
```bash
node bin/ui-craft-studio.cjs web --port 4322
```
Open `http://127.0.0.1:4322` to interact with **Split Mobile (390px) + Desktop (1440px)** live previews, switch between `populated / loading / empty / error` states, trigger `Ctrl+K` command palette, generate unique variants, and copy/export `DESIGN.md` + code.

### 4. MCP Tools, Resources & Prompts (`bin/mcp-server.cjs`)
- **10 Tools:** `design_list_crew`, `design_inspect_project`, `design_research_patterns`, `design_create_prototype`, `design_regenerate_variant`, `design_audit_anti_slop`, `design_export_to_project`, `design_get_job`, `design_list_jobs`, `design_start_web`.
- **Resources:** `design://catalog/directions`, `design://catalog/github`, `design://catalog/ban-list`, `design://playbook`.
- **Prompts:** `study-and-design-app`, `anti-slop-audit-repo`.

---

## Development & Tests

```bash
npm run check
npm test
```

## License

MIT — see [`LICENSE`](LICENSE).