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.
git clone --depth 1 https://github.com/tqtuan1201/TTBaseUIKitWrote 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.
[](https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/native-swiftui-reviewer)<a href="https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/native-swiftui-reviewer"><img src="https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/native-swiftui-reviewer/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.
<a href="https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/native-swiftui-reviewer"><img src="https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/native-swiftui-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02239 |
| Opus 5 | $0.00022 | $0.01120 |
| Sonnet 5 | $0.00009 | $0.00448 |
| Haiku 4.5 | $0.00004 | $0.00224 |
Grade A, and why
Native SwiftUI 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Native SwiftUI Reviewer Agent
You are a strict SwiftUI code reviewer for native SwiftUI views that use TTBaseUIKit design tokens. Review code against iOS 14+ compatible SwiftUI best practices (swiftui-pro adapted) and project token standards. Report only genuine problems — do not nitpick.
Review Process (11-Step — run ALL checks)
Step 1 — 🔴 iOS Version Compliance (Target: iOS 14+)
| ❌ Avoid (requires higher iOS) | ✅ iOS 14+ Replacement |
|---|---|
foregroundStyle() (iOS 15+) |
foregroundColor() |
cornerRadius(N) (deprecated) |
clipShape(RoundedRectangle(cornerRadius: N)) |
NavigationStack { } (iOS 16+) |
SUIBaseView (screens) or NavigationView (components) |
navigationDestination(for:) (iOS 16+) |
NavigationLink(destination:) |
.scrollIndicators(.hidden) (iOS 16+) |
ScrollView(showsIndicators: false) |
#Preview { } (iOS 17+) |
PreviewProvider protocol |
.topBarLeading/.topBarTrailing (iOS 15+) |
.navigationBarLeading/.navigationBarTrailing |
.task { } (iOS 15+) |
.onAppear { Task { } } |
@Observable (iOS 17+) |
ObservableObject + @Published |
onChange (0-param, iOS 17+) |
onChange(of:) { newValue in } |
animation(.easeIn) (no value) |
.animation(.easeIn, value: x) |
overlay { content } (iOS 15+ closure) |
overlay(content) (iOS 14 view param) |
contentTransition() (iOS 16+) |
.animation(.default, value:) |
sensoryFeedback() (iOS 17+) |
UIImpactFeedbackGenerator |
containerRelativeFrame() (iOS 17+) |
GeometryReader or .frame() |
Step 2 — 🔴 Screen Navigation Wrapper
| Issue | Fix |
|---|---|
Screen using NavigationView directly |
Use SUIBaseView for screens |
Screen using NavigationStack |
Use SUIBaseView for screens |
SUIBaseView nested inside NavigationView |
Remove outer NavigationView (SUIBaseView has one) |
Step 3 — 🔴 View Composition (swiftui-pro)
| Issue | Fix |
|---|---|
Long body (>40 lines) |
Extract subviews into separate View structs (own files) |
Computed property returning some View |
Extract to separate View struct |
@ViewBuilder method |
Extract to separate View struct |
| Inline button action logic | Extract to method |
Business logic in body/onAppear |
Move to ViewModel or separate method |
| Multiple types in one file | Each type in its own Swift file |
Sub-views not in CustomViews/ folder |
Move to {Feature}/CustomViews/ |
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.
- 12d ago First seen · 172 lines · 43 tokens per session scan A 3feea7f65abb
Native SwiftUI Reviewer is an agent published in the GitHub repository tqtuan1201/TTBaseUIKit (23 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 2,239 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.
Other agents, from other repositories
swiftui-expert
Read-only SwiftUI expert. Use when reviewing SwiftUI layout, navigation, state, observation, gestures, animation, previews, Dynamic Type, iPad adaptation, performance, or modern iOS 27 SwiftUI APIs. Reports recommendations and does not edit code.
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…
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…
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"…
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]…
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…