← Catalog

@jocax/ui-designer

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

Extension

Install

Install with PiG

pig install npm:@jocax/ui-designer

Install with Pi

pi install npm:@jocax/ui-designer
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.2 (README.md). PiG does not review it.

@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.

CommandArgumentsDescription
/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:viewerstart | stop | statusManage 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

TeamAgentsRole
SetupLead, Scaffold Worker, Structure ValidatorDirectory scaffolding, trees.yaml, Zod validation
BrandLead, Brand AnalystBrand identity, token compliance, generation briefs
UI GenerationLead, Vue Generator, Animation SpecialistVue SFC authoring, CSS custom properties, animations
ValidationLead, Soft Validator, Hard ValidatorScreenshot 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
SectionFields
palette13 colors (primary, secondary, accent, background, surface, text, muted, border, overlay, error, warning, success, bg-secondary)
typographyheading, body, mono fonts + scale (h1-h3, body, small, caption)
spacingunit, radius-sm/md/lg, container-max
breakpointssm, md, lg, xl
shadowssm, md, lg
motionduration-fast/normal/slow, easing
identitymission, description, keywords, voice, avoid list
assetslogo, 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

VariableDefaultDescription
AE_PI_UI_DESIGNERtrueEnable the UI Designer extension
AE_PI_UI_DESIGNER_FORCE_COPYfalseForce overwrite existing agent files on session start
AE_PI_UI_DESIGNER_BRAND_TOKENStrueInject brand CSS custom property reference into agent prompts
AE_PI_UI_DESIGNER_AGENT_TIMEOUT_MS300000How 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_URLhttp://localhost:11434/v1Where to reach Ollama. Only used when no provider for the session's provider id is configured
AE_PI_UI_DESIGNER_SEQUENTIAL_IDSfalseSet 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:

SkillApplies ToDescription
zero-micro-managementLeads + OrchestratorDelegate, never execute directly
high-autonomyAll agentsAct decisively, don't ask clarifying questions
conversational-responseLeads + OrchestratorNatural, direct response patterns
mental-modelAll agentsRead/update expertise files across sessions
active-listenerAll agentsRead conversation log before responding
precise-workerWorkersExecute exactly as assigned
parallel-mental-model-updatesParallel team instancesShared 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.

StepDo thisWatch
1Let the agent's first task runit answers with a three-line summary of brand.yaml
2Type /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
3Type /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
4Type /ui-designer:dashboard, then /ui-designer:logsthe 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
5Send the scenario's follow-up promptthe 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/