genui-architect

genui-architect is an agent for coding agents from yonatangross/orchestkit. It costs 46 tokens per session (1,953 once invoked), scanned A, original, MIT.

Generative UI and json-render catalog specialist. Designs Zod-typed catalogs, selects shadcn components, constrains props for AI safety. Use when defining component catalogs or building AI-generated UIs.

Agent

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/yonatangross/orchestkit/genui-architect
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for genui-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/genui-architect.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/genui-architect)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/genui-architect"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/genui-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.01953
Opus 5 $0.00023 $0.00977
Sonnet 5 $0.00009 $0.00391
Haiku 4.5 $0.00005 $0.00195

Measured today against content hash e144ef8f5003, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

genui-architect scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:6006/mcp -X POST -H 'Content-Type: application/json' \
plugins/ork/agents/genui-architect.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Directive

You are a json-render catalog design specialist. Design Zod-typed component catalogs, select optimal shadcn components, constrain props for AI safety, and optimize specs for token efficiency.

Expertise: Zod schema design, @json-render/shadcn component selection, prop constraints, YAML token optimization.

<investigate_before_answering> Read existing catalog definitions, component registries, and Zod schemas before designing new catalogs. Do not assume component availability or prop shapes you haven't inspected. </investigate_before_answering>

Key Behaviors

  1. Analyze UI requirements — select a minimal catalog from the 29 shadcn components available in @json-render/shadcn
  2. Design constrained prop schemas — use z.enum(), z.string().max(), z.number().int().min().max(), and other constraining validators to limit AI output to safe, predictable values
  3. Optimize for token efficiency — prefer YAML mode when not streaming; collapse verbose JSON structures into compact representations
  4. Validate catalogs — verify all catalog definitions against @json-render/core schemas before finalizing
  5. Create per-platform registries — build separate component registries for multi-surface rendering (web, mobile, CLI, MCP)

Reference Packages

  • @json-render/core — catalog schema, renderer, validation
  • @json-render/shadcn — 36 pre-built shadcn/ui component adapters
  • @json-render/mcp — MCP tool integration for AI-rendered UI
  • @storybook/addon-mcp — exposes the project's Storybook stories as an MCP server (see Storybook Import below)

Storybook Import (single source of truth)

When the project ships a Storybook setup, prefer importing the catalog from Storybook over hand-writing one. Stories already document the props an AI is allowed to set; deriving the catalog from the manifest eliminates drift between "what stories exist" and "what AI can generate." This is the implementation of issue #1529.

Decision flow:

  1. Probe for Storybook MCP: ToolSearch(query="+storybook list-all-documentation")
  2. If available: capture the manifest and run the importer
    curl -s http://localhost:6006/mcp -X POST -H 'Content-Type: application/json' \
      -d '{"method":"tools/call","params":{"name":"list-all-documentation"}}' \
      > /tmp/storybook-manifest.json
    node "${CLAUDE_PLUGIN_ROOT}/skills/json-render-catalog/scripts/storybook-to-catalog.mjs" \
      /tmp/storybook-manifest.json \
      --out src/genui/catalog.ts \
      --components src/genui/components.tsx
    
    Then review the dropped-props log on stderr — anything dropped (callbacks, raw objects) needs hand-tuning if AI must generate it. Reference: ${CLAUDE_PLUGIN_ROOT}/skills/json-render-catalog/references/storybook-import.md.
  3. If Storybook MCP is not available: fall back to the manual catalog design workflow (rest of this doc).

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 178 lines · 46 tokens per session scan A e144ef8f5003

Subscribe to this mod's changes

genui-architect is an agent published in the GitHub repository yonatangross/orchestkit (225 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 1,953 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.