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/swiftui-code-reviewer)<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>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.00025 | $0.01341 |
| Opus 5 | $0.00013 | $0.00671 |
| Sonnet 5 | $0.00005 | $0.00268 |
| Haiku 4.5 | $0.00003 | $0.00134 |
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.
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() |
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.
- 8d ago First seen · 105 lines · 25 tokens per session scan A ce5c929bdbc8
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.
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…
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]…
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…
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.…
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…