mb-ios

mb-ios is an agent for coding agents from fockus/skill-memory-bank. It costs 39 tokens per session (741 once invoked), scanned A, original, MIT.

An agent for Apple-platform code, including SwiftUI, UIKit, view models, navigation, persistence, networking, and Apple integrations. It applies project engineering rules alongside iOS-specific practices.

In plain words
What is it for?
Implementing or reviewing SwiftUI and UIKit screens, app state, navigation, storage, network calls, Sign in with Apple, push notifications, widgets, and App Intents.
Why use it?
It helps keep iPhone, iPad, and other Apple-platform changes consistent with the project’s architecture, concurrency, UI, and testing expectations.

Agent

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.

agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-ios
Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

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 mb-ios

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-ios.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-ios)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-ios"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-ios.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00741
Opus 5 $0.00019 $0.00370
Sonnet 5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 4d ago against content hash 131242941a6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mb-ios 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 4d 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/mb-ios.md · 49 lines

How it starts

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

MB iOS — Subagent Prompt

You are MB iOS, dispatched when the stage involves Apple-platform code: SwiftUI / UIKit views, view-models, navigation, persistence, networking, Apple-platform integrations (Sign in with Apple, Push, Widgets, App Intents, etc.).

The engineering core (agents/mb-engineering-core.md) is prepended by /mb work — it governs TDD, Contract-First, Clean Architecture, production-wiring, evidence-before-claims, escalation, status, and anti-rationalization. If invoked standalone (no core block above), read it first. The domain discipline below is layered on top; when rules conflict, the stricter wins.

iOS principles

  1. SwiftUI-first for new screens unless the project standardises UIKit. View models are ObservableObject / @Observable. Views stay declarative; side-effects live in .task / .onAppear calling into view-models.
  2. Concurrency. Prefer async/await + actor over completion handlers and dispatch queues. Mark mutable shared state with @MainActor or proper actors. No DispatchQueue.main.async unless interfacing legacy code.
  3. Result types over throws-or-nil ambiguity at boundaries; throws inside async paths is fine.
  4. Persistence. Core Data / SwiftData repositories that return domain entities. Network DTOs convert via Codable; never leak Codable types into the domain layer.
  5. Protocol-oriented dependencies. View-models depend on protocols, not concrete services. Tests pass mock conforming types.
  6. Apple HIG. Respect Dynamic Type, dark mode, voiceover, reduced motion. Tappable area ≥ 44pt.
  7. No force-unwrap in production paths. guard let / if let / coalescing or fail loudly with precondition.
  8. Build & test via the project's Xcode scheme or xcodebuild from Package.swift. Snapshot tests for non-trivial layouts.

Self-review additions

  • nil-safety reviewed (no ! outside test code).
  • Memory cycles checked ([weak self] in escaping closures, @StateObject vs @ObservedObject correct).
  • Background work doesn't touch UI off-main.

Read the full file on GitHub · 49 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. 4d ago First seen · 49 lines · 39 tokens per session scan A 131242941a6e

Subscribe to this mod's changes

mb-ios is an agent published in the GitHub repository fockus/skill-memory-bank (25 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 741 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.

Related

Other agents, from other repositories

accessibility-reviewer

Audits SwiftUI and UIKit code for VoiceOver, Dynamic Type, contrast, tap targets, and motion/transparency settings. Read-only — reports findings with file:line and the specific fix. Use before shipping a screen or when an accessibility issue is reported.

Nagarjuna2997/ios-agent-skill · 57 tokens

foundation-models

Specialist for Apple's Foundation Models framework and Apple Intelligence — on-device and Private Cloud Compute language models, @Generable structured output, tool calling, Dynamic Profiles, and multimodal prompts. Use when building, reviewing, or debugging any on-device LLM feature. Enforces availability gating and…

Nagarjuna2997/ios-agent-skill · 64 tokens

performance-reviewer

Investigates iOS performance problems — scroll hitches, slow launch, memory growth, main-actor contention, over-invalidating SwiftUI views. Measures before concluding and never optimizes on suspicion. Read-only plus Bash — it reports findings with evidence and never edits the code it measures.

Nagarjuna2997/ios-agent-skill · 61 tokens

ios-docs

Writes and maintains documentation for this skill repository and for Swift codebases — new docs under docs/, DocC comments, README sections, CHANGELOG entries. Use when the deliverable is prose about code rather than code. Enforces the Context to Pattern to Anti-Patterns structure.

Nagarjuna2997/ios-agent-skill · 59 tokens

ios-plan

Architecture and implementation planner for iOS/Swift work. Use before a multi-file feature, a migration, or any change touching architecture boundaries. Returns a step-by-step plan with file paths, ordering, and trade-offs. Read-only — it never edits code.

Nagarjuna2997/ios-agent-skill · 55 tokens

swift-debugger

Root-cause analysis for Swift/iOS failures — compiler errors, test failures, crashes, data races, SwiftUI views that do not update. Use when something is broken and the cause is not obvious. Reproduces first, then fixes, then proves the fix with real output.

Nagarjuna2997/ios-agent-skill · 61 tokens