create-view

create-view is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 0 tokens per session (306 once invoked), scanned A, original, Apache-2.0.

A command that creates a SwiftUI screen, reusable component, or modal view with the surrounding code structure it needs. SwiftUI is Apple's framework for building app interfaces in Swift.

In plain words
What is it for?
Use it to add SwiftUI screens or reusable components, connect them to a navigation flow, handle loading and error states, support dark mode, and prepare previews.
Why use it?
It reduces the repetitive setup involved in creating views and connecting them to navigation, data, previews, accessibility, and different UI states. It also helps keep business rules outside the view by following the MVVM pattern.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ios-developer plugin — 2 commands shipped together

Good fit Use it to add SwiftUI screens or reusable components, connect them to a navigation flow, handle loading and error states, support dark mode, and prepare previews.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/create-view
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,717 stars · on GitHub

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/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install ios-developer, the plugin that ships this one along with the rest of its 2 commands.

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 create-view

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/create-view/github.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/create-view)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/create-view"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/create-view/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-view

Your own site · 80×15
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/create-view"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/create-view.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 306 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.00000 $0.00306
Opus 5.5 $0.00000 $0.00122
Sonnet 5.5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00031

Measured 1mo ago against content hash 57dffefc12c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-view 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 1mo 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.

plugins/ios-developer/commands/create-view.md · 29 lines

What it actually says

/create-view - Create SwiftUI View

Generate a SwiftUI view with proper architecture and best practices.

Steps

  1. Ask the user for the view name, purpose, and data requirements
  2. Determine the view type: screen (full page), component (reusable), or sheet (modal)
  3. Create the SwiftUI view file with the appropriate structure
  4. Add @State, @Binding, @ObservedObject, or @EnvironmentObject properties as needed
  5. Implement the view body with proper layout: VStack, HStack, ZStack, List, or Grid
  6. Add navigation elements: NavigationLink, sheet, alert, or confirmationDialog
  7. Include loading, empty, and error states with appropriate UI
  8. Add accessibility modifiers: accessibilityLabel, accessibilityHint, accessibilityValue
  9. Implement dark mode support with proper color assets
  10. Create a PreviewProvider with multiple preview configurations
  11. Add the view to the navigation flow in the appropriate coordinator or router
  12. Document the view's purpose, parameters, and usage examples

Rules

  • Follow MVVM architecture: views should not contain business logic
  • Use @StateObject for owned data, @ObservedObject for injected data
  • Keep views small; extract subviews for sections over 30 lines
  • Use SF Symbols for icons instead of custom assets when available
  • Support Dynamic Type for all text elements
  • Add proper keyboard handling for form views
  • Use the project's design system colors and typography
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. 1mo ago First seen · 29 lines · 0 tokens per session scan A 57dffefc12c6

Subscribe to this mod's changes

create-view is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,717 stars, last pushed 5mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 306 tokens. 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.