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.
npx agentmods add agents/okminlee/everything-claude-code-ios/swift-code-reviewer-examplegit clone --depth 1 https://github.com/OkminLee/everything-claude-code-iosWhat 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 | $0.00000 | $0.00823 |
| Opus 5 | $0.00000 | $0.00411 |
| Sonnet 5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00082 |
Grade A, and why
swift-code-reviewer-example 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 2d 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 — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
swift-code-reviewer 사용 예제
PR 코드 리뷰 세션 예시입니다.
시나리오
새 기능 PR이 올라왔고, 코드 리뷰를 요청하는 상황입니다.
세션 예시
사용자 요청
@swift-code-reviewer
방금 올린 PR 리뷰해줘. 사용자 인증 기능 추가했어.
에이전트 응답 예시
## Code Review Summary
### Files Reviewed
- `Sources/Features/Auth/LoginView.swift` (New)
- `Sources/Features/Auth/LoginViewModel.swift` (New)
- `Sources/Services/AuthService.swift` (New)
- `Sources/Core/Keychain/KeychainManager.swift` (Modified)
---
### 🔴 Critical Issues (2)
| Issue | Location | Fix |
|-------|----------|-----|
| 토큰이 UserDefaults에 저장됨 | AuthService.swift:42 | Keychain 사용 |
| 하드코딩된 API 키 | AuthService.swift:15 | 환경 변수로 이동 |
**1. 토큰이 UserDefaults에 저장됨**
```swift
// ❌ AuthService.swift:42
UserDefaults.standard.set(token, forKey: "authToken")
// ✅ 수정
try KeychainManager.shared.save(
token,
forKey: "authToken",
accessibility: .whenUnlockedThisDeviceOnly
)
2. 하드코딩된 API 키
// ❌ AuthService.swift:15
private let apiKey = "sk-proj-xxxxx"
// ✅ 수정 - xcconfig 또는 환경 변수 사용
private var apiKey: String {
Bundle.main.infoDictionary?["API_KEY"] as? String ?? ""
}
🟡 High Issues (3)
| Issue | Location | Fix |
|---|---|---|
| weak self 누락 | LoginViewModel.swift:28 | [weak self] 추가 |
| Force unwrap 사용 | LoginView.swift:55 | guard let 사용 |
| print() 문 존재 | AuthService.swift:67 | #if DEBUG로 감싸기 |
1. weak self 누락
// ❌ LoginViewModel.swift:28
Task {
let result = await authService.login(email: email, password: password)
self.handleResult(result) // 잠재적 retain cycle
}
// ✅ 수정
Task { [weak self] in
guard let self else { return }
let result = await authService.login(email: email, password: password)
self.handleResult(result)
}
🟢 Suggestions (2)
- LoginViewModel을 @MainActor로 마킹 - UI 업데이트 안전성
- 에러 타입 세분화 - AuthError enum 정의 권장
Good Practices Found
- Dependency Injection 패턴 잘 적용됨
- Protocol 기반 추상화로 테스트 용이
- SwiftUI 뷰가 200줄 이하로 적절한 크기
Verdict: ❌ Block
Critical 이슈 2개 해결 후 재리뷰 필요합니다.
우선순위:
- UserDefaults → Keychain 마이그레이션
- 하드코딩된 API 키 제거
- weak self 추가
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.
- 2d ago First seen · 130 lines · 0 tokens per session scan A 5fb36974c315
swift-code-reviewer-example is an agent published in the GitHub repository OkminLee/everything-claude-code-ios (58 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 823 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-08-30.
Other agents, from other repositories
android-developer
Expert Android developer specializing in Kotlin, Jetpack Compose, and modern Android architecture.
ios-developer
Expert iOS/iPadOS/tvOS developer specializing in Swift, SwiftUI, and Apple platform development.
copilot
cd your-android-project git clone https://github.com/haidrrrry/compose-kotlin-agent-skills.git .github/skills/compose-kotlin-agent-skills.
agentic-coding-swift-ios-reviewer
Conditional code-review persona, selected when the diff touches Swift files, SwiftUI/UIKit views, iOS entitlements, privacy manifests, Core Data models, SPM manifests, storyboards/XIBs, or semantic .pbxproj changes. Reviews for SwiftUI correctness, state management, memory safety, Swift concurrency, Core Data…
aider
Aider reads CONVENTIONS.md, .aider.conf.yml, and files you add to context.
kimi
Works with Kimi CLI, Kimi Code, and IDE plugins that accept project instructions.