omp packages

@jocax/ui-designer0.2.2

Multi-team agent orchestration for brand-consistent Vue UI generation — ported from ui-agents as a pi-native package with zero Claude Code dependencies

jocax Published 4 days ago MIT ~163 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@jocax/ui-designer

Multi-team agent orchestration for brand-consistent Vue UI generation — define a brand identity once, then generate unlimited UI variants through specialized agent teams.

What

A pi-native package that ports the proven multi-team architecture from ui-agents. Twelve specialized agents organized into four teams (Setup, Brand, UI Generation, Validation) collaborate through an orchestrator to produce brand-consistent Vue components at scale. All components use CSS custom properties derived from brand.yaml — zero hardcoded values.

Why

  • Generate UI at scale with multi-agent teams working in parallel
  • Enforce brand consistency through a centralized brand.yaml identity
  • Zero Claude Code dependencies — pure pi, pure Ollama
  • Agents maintain mental models that compound knowledge across sessions
  • Built on @jocax/agent-orchestrator for battle-tested team dispatch

Install

Install the package from npm:

{
  "source": "npm:@jocax/ui-designer"
}

Usage

On startup, the extension bootstraps 12 agents, 7 skills, and team/chain config into your project's .pi/ directory. The agent-orchestrator team and chain modes activate automatically.

Commands

All commands use the ui-designer: namespace prefix.

Command Arguments Description
/ui-designer:new-brand <name> <prompt> Create a new brand from template, customize brand.yaml
/ui-designer:new-product <brand> <product> <prompt> Create a product within a brand
/ui-designer:new-tree <brand> <product> <tree> <desc> Add a tree (purpose category) to a product
/ui-designer:new-branch <brand> <product> <tree> <branch> <brief> Scaffold + generate a single branch with full validation
/ui-designer:generate <brand> <product> <tree> <count> <brief> Generate N variant branches with round-robin parallel teams
/ui-designer:fork-leaf <brand> <product> <tree> <branch> <count> <changes> Fork an existing component N times with variations
/ui-designer:rebrand <brand> [product] <prompt> Cascade brand.yaml changes to all existing components
/ui-designer:validate <brand> <product> [tree] [branch] Run validation pipeline on specific or all branches
/ui-designer:ui <prompt> Natural language catch-all — parses intent and routes to correct workflow
/ui-designer:viewer start | stop | status Manage the Vue viewer dev server on port 9400
/ui-designer:agent <name> Show detailed status and recent output for a specific agent
/ui-designer:logs [agent] [run-id] View pipeline run logs — list runs, or show agent output

Workflow

1. /ui-designer:new-brand cyberforge "AI security forged in neon"  — create brand
2. /ui-designer:new-product cyberforge app "Main dashboard"           — add product
3. /ui-designer:new-tree cyberforge app landing "Landing pages"       — add tree
4. /ui-designer:generate cyberforge app landing 3 "Hero section"      — generate variants
5. /ui-designer:validate cyberforge app landing                        — validate results
6. /ui-designer:logs vue-generator                                     — inspect agent output
7. /ui-designer:viewer start                                           — browse in browser

Architecture

Orchestrator → routes user requests
  ├── Setup Team (lead + scaffold worker + structure validator)
  ├── Brand Team (lead + brand analyst)
  ├── UI Generation Team ×3 (lead + vue generator + animation specialist)
  └── Validation Team ×3 (lead + soft validator + hard validator)

Agent Hierarchy

Team Agents Role
Setup Lead, Scaffold Worker, Structure Validator Directory scaffolding, trees.yaml, Zod validation
Brand Lead, Brand Analyst Brand identity, token compliance, generation briefs
UI Generation Lead, Vue Generator, Animation Specialist Vue SFC authoring, CSS custom properties, animations
Validation Lead, Soft Validator, Hard Validator Screenshot capture, brand compliance, responsive testing

Brand System

The UI Designer enforces a zero-hardcoded-values rule through a centralized brand identity pipeline.

Hierarchy
Brand → Product → Tree → Branch → Leaf

aegis/                          ← brand
├── brand.yaml                  ← brand identity (palette, typography, spacing, etc.)
└── products/
    └── app/                    ← product
        ├── brand.yaml          ← optional product-level override (deep-merged)
        ├── trees.yaml          ← manifest of all trees/branches
        └── trees/
            └── landing/        ← tree (purpose category)
                ├── hero-v1/    ← branch (variant)
                │   └── index.vue  ← leaf (generated component)
                └── hero-v2/
brand.yaml Fields
Section Fields
palette 13 colors (primary, secondary, accent, background, surface, text, muted, border, overlay, error, warning, success, bg-secondary)
typography heading, body, mono fonts + scale (h1-h3, body, small, caption)
spacing unit, radius-sm/md/lg, container-max
breakpoints sm, md, lg, xl
shadows sm, md, lg
motion duration-fast/normal/slow, easing
identity mission, description, keywords, voice, avoid list
assets logo, favicon, media
CSS Custom Property Mapping

All generated components use CSS custom properties derived from brand.yaml:

/* Colors */
color: var(--color-text);
background: var(--color-background);
/* Typography */
font-family: var(--font-heading);
font-size: var(--text-h1-size);
/* Spacing */
padding: var(--spacing-4);
/* Radii */
border-radius: var(--radius-md);
/* Shadows */
box-shadow: var(--shadow-md);
/* Motion */
transition: all var(--motion-duration-normal) var(--motion-easing);

Hardcoded values are detected and rejected. Components with literal color: #fff or font-size: 16px fail validation.

Configuration

Variable Default Description
AE_PI_UI_DESIGNER true Enable the UI Designer extension
AE_PI_UI_DESIGNER_FORCE_COPY false Force overwrite existing agent files on session start
AE_PI_UI_DESIGNER_BRAND_TOKENS true Inject brand CSS custom property reference into agent prompts
AE_PI_UI_DESIGNER_AGENT_TIMEOUT_MS 300000 How long one sub-agent turn may take; 0 is unbounded. A turn that runs over is aborted and reported as a failure
AE_PI_UI_DESIGNER_OLLAMA_URL http://localhost:11434/v1 Where to reach Ollama. Only used when no provider for the session's provider id is configured
AE_PI_UI_DESIGNER_SEQUENTIAL_IDS false Set to true to count pipeline and dialog run ids up from 1 (run-001, dialog-001) instead of naming them from the wall clock, for reproducible demos and replays

A sub-agent's model is the first of: an explicit model passed with the call, the agent file's model:, the session's model, deepseek-v4-pro:cloud.

A sub-agent never gets an agent-spawning tool (dispatch_agent, agent, task), whatever its agent file lists.

Skills

Seven behavioral skills ship with the package:

Skill Applies To Description
zero-micro-management Leads + Orchestrator Delegate, never execute directly
high-autonomy All agents Act decisively, don't ask clarifying questions
conversational-response Leads + Orchestrator Natural, direct response patterns
mental-model All agents Read/update expertise files across sessions
active-listener All agents Read conversation log before responding
precise-worker Workers Execute exactly as assigned
parallel-mental-model-updates Parallel team instances Shared mental model file synchronization

Run the demo

just demo ui-designer

A herdr workspace opens with pi, this extension and a disposable copy of the vue-brand sandbox — a Vue project whose brand.yaml holds the brand rules. The package registers no tools, so you drive it with commands.

Step Do this Watch
1 Let the agent's first task run it answers with a three-line summary of brand.yaml
2 Type /ui-designer:new-brand demo-brand "calm, precise task board brand in blue and green" the dashboard runs setup-lead, then brand-lead, then structure-validator, each ending with ✓ <name> — done (Ns); it finishes with ✓ Brand "demo-brand" complete — 3 agents, <T>s after about 4.5 minutes; brands/demo-brand/brand.yaml and trees.yaml appear
3 Type /ui-designer:app demo-brand "a small task board" the dialog view shows app-architect, ux-designer and data-modeler taking turns (◉ Turn N complete) through all 12 turns without converging, about 3.4 minutes; the widget shows ✗ Pipeline complete · 12 turns · 3 agents · <T>s — the ✗ marks a dialog that ended without consensus, not an error — and the dialog tiles read done; then the scaffold, mock-data, brand-css and pages phases run; it ends with App "a-small-task-board" ready! and a Next: cd … && npm install && npm run dev line the sandbox cannot act on
4 Type /ui-designer:dashboard, then /ui-designer:logs the full agent grid, then the run list, ✓ run-001 — Brand "demo-brand"; a failed agent shows ✗ <name> — failed (Ns): <error text>, for example ✗ structure-validator — failed (0.2s): 410: {"message":"deepseek-v4-flash:0731 was retired …, and its log ends with the matching [error] … line
5 Send the scenario's follow-up prompt the agent lists the files under brands/ and apps/

Notifications are transient; /ui-designer:logs keeps what they showed. It lists only the pipeline runs under the project's logs/; the dialog's dialog-001 is written under apps/logs/ and is not listed. The demo sets AE_PI_UI_DESIGNER_SEQUENTIAL_IDS=true, so run ids are counted, not timestamped.

/ui-designer:app builds the app's style.css from brands/<brand>/brand.yaml, falling back to the project's root brand.yaml, then to built-in defaults.

The sub-agents run inside this pi and reach the session's provider through the agent directory's models.json; each agent file's model: still picks the model it runs on. The sandbox vendors no dependencies, so the generated app is never built or served and /ui-designer:viewer will not start.

Needs herdr 0.9.3 or newer, pi 0.80.8 or newer, and a signed-in Ollama — see demo-kit.

Development

# Type-check
npx tsc --noEmit --skipLibCheck -p software/packages/ui-designer/tsconfig.json

# Run tests
npx vitest run software/packages/ui-designer/tests/