scaffold-genui

scaffold-genui is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 36 tokens per session (1,282 once invoked), scanned A, original, MIT.

A feature scaffold for Flutter GenUI, a system for building conversational interfaces whose screens can be described by an agent. It includes the widget catalog, message models, agent connection, and chat screen structure.

In plain words
What is it for?
Use it to add an agent-powered chat feature with streamed communication, custom widgets, conversation state, and controlled actions such as opening links.
Why use it?
It gives an existing Flutter app the pieces needed to connect an agent to a chat-based, dynamically rendered interface without designing the feature structure from scratch.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add an agent-powered chat feature with streamed communication, custom widgets, conversation state, and controlled actions such as opening links.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kumaran-is/claude-code-onboarding/scaffold-genui
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.

Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

Made for: Claude Code.

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 scaffold-genui

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-genui.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-genui)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-genui"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-genui.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 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,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00036 $0.01282
Opus 5 $0.00018 $0.00641
Sonnet 5 $0.00007 $0.00256
Haiku 4.5 $0.00004 $0.00128

Measured 4d ago against content hash 01a53284a390, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scaffold-genui scanned grade A with 0 findings 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 4d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/scaffold-genui.md · 117 lines

How it starts

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

Scaffold Flutter GenUI Feature

Creates a Flutter GenUI conversational UI feature module in an existing Flutter project.

Feature name: $ARGUMENTS (default to "gen-ui-chat" if not provided)

Pre-requisites

  1. Read the flutter-genui skill (SKILL.md and all reference/*.md files) for SDK concepts, catalog design, security rules, and state binding patterns.
  2. Read the flutter-mobile skill's reference/flutter-conventions.md for Flutter coding standards.
  3. Verify Flutter/Dart APIs using dart-mcp-server MCP or Context7 MCP before using any API.

Steps

  1. Add GenUI dependencies to pubspec.yaml

    dependencies:
      genui:
        git:
          url: https://github.com/flutter/genui.git
          path: packages/genui
      genui_a2a:
        git:
          url: https://github.com/flutter/genui.git
          path: packages/genui_a2a
      intl: ^0.19.0          # for A2UIFunctionEvaluator formatting
      url_launcher: ^6.3.0   # for openUrl function
    
  2. Create feature folder structure

    lib/features/<name>/
    ├── models/
    │   └── gen_ui_message.dart          # ChatMessage, SurfaceState models
    ├── services/
    │   └── gen_ui_agent_service.dart    # SSE transport + Conversation setup
    ├── widgets/
    │   ├── gen_ui_renderer.dart         # SurfaceController + rendering logic
    │   ├── widget_catalog.dart          # Catalog with all registered CatalogItems
    │   ├── widget_types.dart            # Custom widget builders
    │   └── a2ui_function_evaluator.dart # Declarative functions evaluator
    ├── screens/
    │   └── gen_ui_chat_screen.dart      # Chat screen with history + GenUI surfaces
    └── <name>_page.dart                 # Lazy-loaded page entry point
    
  3. Create models (gen_ui_message.dart)

    • ChatMessage — role (user/assistant), text content, optional surfaceId
    • GenUIState — message history, loading flag, error state Use Riverpod StateNotifier or AsyncNotifier for state management.

Read the full file on GitHub · 117 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. 4d ago First seen · 117 lines · 36 tokens per session scan A 01a53284a390

Subscribe to this mod's changes

scaffold-genui is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,282 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.