UIKit Code Reviewer

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

An automated reviewer for iOS interface code built with UIKit and the TTBaseUIKit component library. It checks the code against that project's patterns, architecture, and iOS version requirements.

In plain words
What is it for?
Use it to review screens, view models, navigation, constraints, closures, and UIKit components for TTBaseUIKit compliance, MVVM structure, API usage, and iOS best practices.
Why use it?
It helps find code that breaks the project's shared UI rules, uses newer iOS APIs than allowed, or creates memory and architecture problems. It also gives a compliance score.

Agent for Claude Code

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

Good fit Use it to review screens, view models, navigation, constraints, closures, and UIKit components for TTBaseUIKit compliance, MVVM structure, API usage, and iOS best practices.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tqtuan1201/ttbaseuikit/uikit-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 UIKit Code Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/uikit-code-reviewer/github.svg)](https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/uikit-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/uikit-code-reviewer"><img src="https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/uikit-code-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.

agentmods 80×15 button for UIKit Code Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/tqtuan1201/ttbaseuikit/uikit-code-reviewer"><img src="https://agentmods.dev/badge/agents/tqtuan1201/ttbaseuikit/uikit-code-reviewer.svg" alt="Reviewed on agentmods" width="80" 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 950 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.00950
Opus 5 $0.00013 $0.00475
Sonnet 5 $0.00005 $0.00190
Haiku 4.5 $0.00003 $0.00095

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

Security

Grade A, and why

UIKit 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 9d 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/uikit-code-reviewer.agent.md · 92 lines

How it starts

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

UIKit Code Reviewer Agent

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

Review Checklist — Run ALL Checks

🔴 CRITICAL (must fix)

iOS 14+ API Compliance
Issue Correct Pattern
UIButtonConfiguration (iOS 15+) → TTBaseUIKit button components
UISheetPresentationController (iOS 15+) presentDef(vc:, type: .pageSheet)
UIContentUnavailableConfiguration (iOS 17+) → Custom empty state views
Any iOS 15+/16+/17+ API → Use iOS 14-compatible alternative
Component Compliance
Issue Correct Pattern
UILabel() used TTBaseUILabel(withType:text:align:)
UIButton() used TTBaseUIButton(textString:type:isSetHeight:)
UITextField() used TTBaseUITextField(withPlaceholder:type:)
navigationController?.pushViewController self.push(vc)
dismiss(animated:) self.onDismiss() or self.close()
NSLayoutConstraint.activate → TTBaseUIKit chain .setX().done()
Strong self in closures [weak self] + self?.
import UIKit in ViewModel → Remove, use Foundation only
Subviews on self.view self.contentView
Direct URLSession API call → Use RequestAPI + RequestAPIDataItem
Encodable for request body → Subclass RequestData
Missing super.encode(to:) in RequestData → Always call first

🟡 WARNINGS (should fix)

Issue Better Pattern
Hardcoded colors UIColor(hex:) TTView.* tokens
Hardcoded sizes 44, 16, 8 TTSize.H_BUTTON, TTSize.P_CONS_DEF * 2
Missing deinit → Add with removeObserver + XPrint
addTarget(self, action:) on TTBaseUIButton .onTouchHandler
Missing super in lifecycle → Always call super
DispatchQueue.main.async in VC callback → ViewModel should dispatch
layer.shadowColor manually BaseShadowPanelView
Raw print() XPrint()
Hardcoded strings XText("key")
Missing // [TTBaseUIKit-AI-Agents]: marker comment → Add marker at file top / above class / above standalone func
API response not checked resMess.onCheckSuccess()

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

Subscribe to this mod's changes

UIKit 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 950 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