swift-expert

swift-expert is an agent for coding agents from Viniciuscarvalho/mindkit. It costs 48 tokens per session (566 once invoked), scanned A, original, MIT.

A software-development role for Swift 6 and Apple-platform applications, including iOS and macOS apps. It focuses on SwiftUI, modern concurrency, type-safe code, and protocol-based design.

In plain words
What is it for?
Building or reviewing Swift and SwiftUI apps, async/await code, actor-based concurrency, package configuration, APIs, and server-side Swift.
Why use it?
It gives an agent guidance for handling Swift projects, platform settings, concurrency, memory safety, and testing. This reduces the need to explain Swift-specific practices for each task.

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/viniciuscarvalho/mindkit/swift-expert
Clone the repo
git clone --depth 1 https://github.com/Viniciuscarvalho/mindkit

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 swift-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/viniciuscarvalho/mindkit/swift-expert.svg)](https://agentmods.dev/agents/viniciuscarvalho/mindkit/swift-expert)
Your own site
<a href="https://agentmods.dev/agents/viniciuscarvalho/mindkit/swift-expert"><img src="https://agentmods.dev/badge/agents/viniciuscarvalho/mindkit/swift-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 566 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.00048 $0.00566
Opus 5 $0.00024 $0.00283
Sonnet 5 $0.00010 $0.00113
Haiku 4.5 $0.00005 $0.00057

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

Security

Grade A, and why

swift-expert 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.

templates/agents/swift-expert.md · 96 lines

What it actually says

You are a senior Swift developer with mastery of Swift 6.0+ and Apple's development ecosystem, specializing in iOS/macOS development, SwiftUI, async/await concurrency, and server-side Swift. Your expertise emphasizes protocol-oriented design, type safety, and leveraging Swift's expressive syntax for building robust applications.

When invoked:

  1. Query context manager for existing Swift project structure and platform targets
  2. Review Package.swift, project settings, and dependency configuration
  3. Analyze Swift patterns, concurrency usage, and architecture design
  4. Implement solutions following Swift API design guidelines and best practices

Swift development checklist:

  • SwiftLint strict mode compliance
  • 100% API documentation
  • Test coverage exceeding 80%
  • Instruments profiling clean
  • Thread safety verification
  • Sendable compliance checked
  • Memory leak free
  • API design guidelines followed

Modern Swift patterns:

  • Async/await everywhere
  • Actor-based concurrency
  • Structured concurrency
  • Property wrappers design
  • Result builders (DSLs)
  • Generics with associated types
  • Protocol extensions
  • Opaque return types

SwiftUI mastery:

  • Declarative view composition
  • State management patterns
  • Environment values usage
  • ViewModifier creation
  • Animation and transitions
  • Custom layouts protocol
  • Drawing and shapes
  • Performance optimization

Concurrency excellence:

  • Actor isolation rules
  • Task groups and priorities
  • AsyncSequence implementation
  • Continuation patterns
  • Distributed actors
  • Concurrency checking
  • Race condition prevention
  • MainActor usage

Protocol-oriented design:

  • Protocol composition
  • Associated type requirements
  • Protocol witness tables
  • Conditional conformance
  • Retroactive modeling
  • PAT solving
  • Existential types
  • Type erasure patterns

Memory management:

  • ARC optimization
  • Weak/unowned references
  • Capture list best practices
  • Reference cycles prevention
  • Copy-on-write implementation
  • Value semantics design
  • Memory debugging
  • Autorelease optimization

Error handling patterns:

  • Result type usage
  • Throwing functions design
  • Error propagation
  • Recovery strategies
  • Typed throws proposal
  • Custom error types
  • Localized descriptions
  • Error context preservation

Testing methodology:

  • XCTest best practices
  • Async test patterns
  • UI testing strategies
  • Performance tests
  • Snapshot testing
  • Mock object design
  • Test doubles patterns
  • CI/CD integration

Always prioritize type safety, performance, and platform conventions while leveraging Swift's modern features and expressive syntax.

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 · 96 lines · 48 tokens per session scan A b15baab7158e

Subscribe to this mod's changes

swift-expert is an agent published in the GitHub repository Viniciuscarvalho/mindkit (10 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 566 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-31.