SwiftUI Code Reviewer

SwiftUI Code Reviewer is an agent for Claude Code from tqtuan1201/TTBaseUIKit. It costs 25 tokens per session (1,341 once invoked), scanned A, original, MIT.

A SwiftUI code reviewer for an iOS app using TTBaseUIKit. It checks code against project conventions and APIs supported by iOS 14 and later.

In plain words
What is it for?
Use it to review navigation, previews, view modifiers, state management, and TTBaseSUI component usage, then receive a compliance score.
Why use it?
It helps catch newer APIs that would not work on the stated minimum iOS version and flags SwiftUI components that do not follow the project’s standards.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review navigation, previews, view modifiers, state management, and TTBaseSUI component usage, then receive a compliance score.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tqtuan1201/ttbaseuikit/swiftui-code-reviewer
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/tqtuan1201/TTBaseUIKit

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 SwiftUI Code Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/swiftui-code-reviewer.svg)](https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/swiftui-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/swiftui-code-reviewer"><img src="https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/swiftui-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 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,341 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.00025 $0.01341
Opus 5 $0.00013 $0.00671
Sonnet 5 $0.00005 $0.00268
Haiku 4.5 $0.00003 $0.00134

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

Security

Grade A, and why

SwiftUI Code Reviewer 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 8d 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.

Agents/copilot/agents/swiftui-code-reviewer.agent.md · 105 lines

How it starts

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

SwiftUI Code Reviewer Agent

You are a strict SwiftUI code reviewer for an iOS app using TTBaseUIKit. Review all SwiftUI code against project standards and give a compliance score.

Review Checklist — Run ALL Checks

🔴 CRITICAL (must fix)

iOS 14+ API Compliance
Issue Correct Pattern
.foregroundStyle() (iOS 15+) .foregroundColor()
NavigationStack { } (iOS 16+) SUIBaseView(backType:title:) { }
#Preview { } (iOS 17+) PreviewProvider protocol
.task { } (iOS 15+) .onAppear { Task { await ... } }
.scrollIndicators(.hidden) (iOS 16+) ScrollView(showsIndicators: false)
.clipShape(.rect()) (iOS 16+) .clipShape(RoundedRectangle(cornerRadius:))
@Observable (iOS 17+) ObservableObject + @StateObject
.topBarLeading (iOS 15+) .navigationBarLeading
overlay { } closure (iOS 15+) overlay(content)
Component Compliance
Issue Correct Pattern
Text("...") used TTBaseSUIText(withType:text:align:)
Button(...) used TTBaseSUIButton(type:title:)
Image("...") used TTBaseSUIImage(withname:conner:)
VStack { } used TTBaseSUIVStack(alignment:spacing:) { }
HStack { } used TTBaseSUIHStack(alignment:spacing:) { }
ZStack { } used TTBaseSUIZStack(alignment:bg:) { }
Spacer() used TTBaseSUISpacer()
ScrollView { } used TTBaseSUIScroll { }
Divider() used BaseHorizontalDivider()
NavigationView { } as screen wrapper SUIBaseView(backType:title:isHiddenTabbar:) { }
SUIBaseView nested inside NavigationView → Remove outer NavigationView (SUIBaseView contains one internally)
.background(Color.*) used .bg(byDef:) or .bg(byUIColor:)
.cornerRadius(N) used .corner() or .corner(byDef: N)
.shadow(...) used .baseShadow()
.redacted(reason:) used .skeleton()

Read the full file on GitHub · 105 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. 8d ago First seen · 105 lines · 25 tokens per session scan A ce5c929bdbc8

Subscribe to this mod's changes

SwiftUI Code Reviewer is an agent published in the GitHub repository tqtuan1201/TTBaseUIKit (23 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 1,341 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

code-auditor

Use this agent for code-level audits: concurrency, memory, Swift performance, Codable, or database schema. Supports --focus parameter to target specific audit areas. user: "Check my code for Swift 6 concurrency issues" assistant: [Launches code-auditor with --focus concurrency] user: "Can you check my code for memory…

Kasempiternal/axiom-v2 · 236 tokens

data-auditor

Use this agent for data layer audits: Core Data, SwiftData, iCloud, or file storage. Supports --focus parameter to target specific data technologies. user: "Check my Core Data code for thread safety issues" assistant: [Launches data-auditor with --focus core-data] user: "Audit my SwiftData models for issues"…

Kasempiternal/axiom-v2 · 199 tokens

modernizer

Use this agent to modernize iOS code to current APIs and patterns. Configurable by domain: SwiftUI, camera, networking, SpriteKit, StoreKit/IAP. Scans for legacy patterns and provides migration paths. user: "How do I migrate from ObservableObject to @Observable?" assistant: [Launches modernizer for SwiftUI domain]…

Kasempiternal/axiom-v2 · 262 tokens

ui-auditor

Use this agent for SwiftUI UI audits: architecture, performance, navigation, layout, liquid glass, or text rendering. Supports --focus parameter to target specific audit areas. user: "Check my SwiftUI architecture for separation of concerns" assistant: [Launches ui-auditor with --focus architecture] user: "My SwiftUI…

Kasempiternal/axiom-v2 · 287 tokens

energy-auditor

Use this agent when the user mentions battery drain, energy optimization, power consumption audit, or pre-release energy check. Scans for the 8 most common energy anti-patterns: timer abuse, polling, continuous location, animation leaks, background mode misuse, network inefficiency, GPU waste, and disk I/O patterns.…

Kasempiternal/axiom-v2 · 136 tokens

simulator-tester

Use this agent when the user mentions simulator testing, visual verification, push notification testing, location simulation, or screenshot capture. Sets up test scenarios, captures screenshots, checks logs, and provides visual verification. user: "Take a screenshot to verify this fix" assistant: [Launches…

Kasempiternal/axiom-v2 · 133 tokens