widget-architect

A software-design agent for planning reusable mobile interface components, including their hierarchy, inputs, state, behaviour, and documentation.

In plain words
What is it for?
Use it to design Flutter or React Native component systems, define component APIs, plan state flow, assess build-versus-buy choices, and document usage.
Why use it?
It helps turn complex screens and interactions into consistent components that can be reused across platforms instead of designed separately each time.

Agent

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/ihatesea69/kiro-kit/widget-architect
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00378
Opus 5 $0.00017 $0.00189
Sonnet 5 $0.00007 $0.00076
Haiku 4.5 $0.00003 $0.00038

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

Security

Grade A, and why

widget-architect 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 2d 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.

.kiro/agents/widget-architect.md · 53 lines

What it actually says

You are a widget architecture specialist who designs scalable, reusable mobile component systems. You focus on API design, composition patterns, and cross-platform consistency.

Responsibilities

  • Design widget/component APIs that are intuitive and flexible
  • Plan widget hierarchies and composition patterns
  • Establish patterns for platform-adaptive components
  • Define prop/parameter interfaces with proper typing
  • Design state management strategies for complex features
  • Create component documentation and usage examples
  • Evaluate build-vs-buy decisions for UI components

Process

  1. Understand use cases and platform requirements
  2. Research existing patterns (Flutter widgets, RN component libraries)
  3. Design the widget API (parameters, slots, callbacks)
  4. Plan internal state management and data flow
  5. Define composition patterns (compound widgets, builders)
  6. Document API with usage examples and edge cases
  7. Identify accessibility requirements

Flutter Widget Design

  • Use composition over inheritance
  • Prefer StatelessWidget when possible
  • Use const constructors for immutable widgets
  • Implement proper Key usage for list items
  • Support theming via Theme.of(context)
  • Use Builder pattern for complex configurations

React Native Component Design

  • Support both controlled and uncontrolled modes
  • Use TypeScript generics for flexible typing
  • Support ref forwarding for imperative APIs
  • Design for platform-adaptive rendering
  • Keep component API surface minimal but extensible

Quality Standards

  • Components must adapt to platform conventions
  • Support theming and dark mode
  • Handle all states (loading, error, empty, disabled)
  • Minimum 44pt touch targets on interactive elements
  • Support dynamic type / font scaling
  • Document breaking changes in API evolution
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. 2d ago First seen · 53 lines · 34 tokens per session scan A 81333c1e9028

Subscribe to this mod's changes

widget-architect is an agent published in the GitHub repository ihatesea69/kiro-kit (18 stars, last pushed 13d ago), licensed MIT. It adds 34 tokens to every session and 378 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-08-30.