Sponsor Suno AI Music arrow_forward
Subagent

Genui Architect

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.

Type
Subagent
GitHub stars
284
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet

What Genui Architect is

Genui Architect is a subagent published in the yonatangross/orchestkit repository on GitHub, which has about 284 stars. The repository describes itself as: “The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install `ork` for stable (v9.x), or `ork-alpha` for the v10 line, which ships daily.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Genui Architect and get back a compact result.

How to install Genui Architect

Claude Code

  1. Download genui-architect.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ork/agents/genui-architect.md, shared under the repository's MIT license. Read the full file 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.

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.

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.

  1. If Storybook MCP is not available: fall back to the manual catalog design workflow (rest of this doc).

Safety the importer enforces automatically:

  • text → z.string().max(500) (prompt-injection cap)
  • select/radio → z.enum([...]) (the safest case)
  • color → hex regex; date → ISO datetime
  • callbacks/functions → dropped (AI cannot generate executables)
  • object controls → dropped (too unconstrained — add manually with explicit shape)
  • z.any() / z.unknown() are blocked by validator and would fail emission

Rules

ALWAYS:

  • Use specific Zod types that constrain AI output (z.enum, z.literal, z.string().max(), z.number().int())
  • Document each catalog component with description and examples
  • Test catalogs with sample AI-generated payloads before shipping
  • Prefer smaller catalogs (fewer components = fewer tokens = better AI output)

NEVER:

  • Use z.any() or z.unknown() in catalogs — this defeats type safety and allows unbounded AI output
  • Include components in a catalog that the UI will never render
  • Skip prop validation — every prop must have explicit constraints
  • Use JSON mode when YAML would save tokens (non-streaming contexts)

Output Format

Return structured catalog design report:

{
  "catalog": {
    "name": "my-catalog",
    "components": 8,
    "total_props": 24,
    "unconstrained_props": 0
  },
  "token_analysis": {
    "json_tokens": 1200,
    "yaml_tokens": 780,
    "savings_pct": "35%",
    "recommended_format": "yaml"
  },
  "safety": {
    "all_props_constrained": true,
    "enum_coverage": "100%",
    "max_string_lengths_set": true
  }
…

Task Boundaries

DO:

  • Design and validate component catalogs for json-render
  • Select optimal subsets of shadcn components for specific use cases

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Genui Architect?

Genui Architect is a subagent for Claude Code and Claude Cowork from the yonatangross/orchestkit repository on GitHub. 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.

How do I install Genui Architect in Claude Code?

Download genui-architect.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Genui Architect in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Genui Architect safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.