scaffold-a2ui

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

A feature scaffold for Angular A2UI, a protocol and renderer that lets an agent describe user-interface components for an Angular app. It includes a component catalog, recursive renderer, agent service, sanitizer, chat page, and tests.

In plain words
What is it for?
Use it to add an agent-driven chat page that renders approved UI components, communicates with an agent, sanitizes incoming content, and tests the renderer.
Why use it?
It provides the structure for turning agent-produced interface descriptions into controlled Angular components while keeping rendering and security checks in separate parts of the feature.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add an agent-driven chat page that renders approved UI components, communicates with an agent, sanitizes incoming content, and tests the renderer.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-a2ui.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-a2ui)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-a2ui"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-a2ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 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,060 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.00043 $0.01060
Opus 5 $0.00022 $0.00530
Sonnet 5 $0.00009 $0.00212
Haiku 4.5 $0.00004 $0.00106

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

Security

Grade A, and why

scaffold-a2ui 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-a2ui.md · 66 lines

How it starts

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

Scaffold A2UI Angular Renderer

Create an A2UI renderer feature module in an existing Angular 21.x project.

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

Pre-requisites

Official SDK: npm install @a2ui/angular is the official Angular renderer SDK. If the project can use it, prefer the official package over a custom renderer implementation.

  1. Read the a2ui-angular skill (SKILL.md and all reference/*.md files) for protocol spec, security rules, component catalog, and renderer patterns.
  2. Read the angular-spa skill's reference/angular-conventions.md for Angular coding standards.
  3. Use Context7 MCP to verify Angular signal inputs/outputs API if unsure.

Steps

  1. Create feature folder structure

    src/app/features/<name>/
    +-- models/a2ui.model.ts
    +-- services/a2ui-catalog.service.ts
    +-- services/a2ui-agent.service.ts
    +-- services/a2ui-sanitizer.service.ts
    +-- components/a2ui-renderer/a2ui-renderer.component.ts
    +-- components/a2ui-renderer/a2ui-renderer.component.spec.ts
    +-- components/a2ui-chat/a2ui-chat.component.ts
    +-- components/a2ui-chat/a2ui-chat.component.spec.ts
    +-- <name>.routes.ts
    
  2. Create A2UI modelsA2UIValue, A2UIChildren, A2UIComponent, SurfaceUpdate, DataModelUpdate, A2UIMessage, SurfaceState, UserAction, ChatMessage interfaces. UserAction is the client→agent message type: { name, surfaceId, sourceComponentId, timestamp, context }. Follow reference/a2ui-renderer-patterns.md models section.

  3. Create catalog service — Allowlist of official A2UI v0.8 component types: Row, Column, Text, Image, Icon, Button, TextField, Checkbox, DateTimeInput, Card, Modal, Tabs, List, Divider. Follow reference/a2ui-security.md.

  4. Create sanitizer service — URL validation (protocol check), text length limits. Follow reference/a2ui-security.md.

  5. Create recursive renderer component — Maps official A2UI v0.8 types (Row, Column, Text, Image, Icon, Button, TextField, Checkbox, DateTimeInput, Card, Modal, Tabs, List, Divider) to Angular/daisyUI components via @switch. Uses signal inputs, computed() for child filtering, validates against catalog. Note: Card uses child (single id string); layout components use children.explicitList. Follow reference/a2ui-renderer-patterns.md.

Read the full file on GitHub · 66 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 · 66 lines · 43 tokens per session scan A 2d55607cb438

Subscribe to this mod's changes

scaffold-a2ui is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 1,060 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.