chowser: Skill for Claude Code

.agents/skills/swift-modern-architecture-skill/SKILL.md

swift-modern-architecture-skill is a skill for Claude Code, Codex from bsreeram08/chowser. It costs 70 tokens per session (1,954 once invoked), scanned A, original, MIT.

A guide to current Swift tools for building iPhone, iPad, and Apple-platform apps with SwiftUI. It covers Swift 6 concurrency, SwiftData for storing app data, and modern state and navigation APIs.

In plain words
What is it for?
Use it when creating or modernizing SwiftUI apps, choosing an app structure, storing data with SwiftData, managing state, or writing asynchronous code with async/await.
Why use it?
It helps avoid older approaches such as Core Data, Combine, Grand Central Dispatch, and NavigationView when a project targets newer Apple systems. This keeps new code aligned with the stated Swift 6 and iOS 18+ patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is bsreeram08/chowser's own configuration. It tells Claude Code and Codex how to work on chowser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chowser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bsreeram08/chowser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bsreeram08/chowser/main/.agents/skills/swift-modern-architecture-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bsreeram08/chowser

Made for: Claude Code, Codex.

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-modern-architecture-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-modern-architecture-skill/github.svg)](https://agentmods.dev/skills/bsreeram08/chowser/swift-modern-architecture-skill)
Your own site
<a href="https://agentmods.dev/skills/bsreeram08/chowser/swift-modern-architecture-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-modern-architecture-skill/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 swift-modern-architecture-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/bsreeram08/chowser/swift-modern-architecture-skill"><img src="https://agentmods.dev/badge/skills/bsreeram08/chowser/swift-modern-architecture-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,954 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.00070 $0.01954
Opus 5.5 $0.00028 $0.00782
Sonnet 5.5 $0.00014 $0.00391
Haiku 4.5 $0.00007 $0.00195

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

Security

Grade A, and why

swift-modern-architecture-skill 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/skills/swift-modern-architecture-skill/SKILL.md · 299 lines

How it starts

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

Swift Modern Architecture Skill

Build iOS apps using Swift 6 and iOS 18+ best practices. This skill ensures code uses modern patterns: SwiftData (not Core Data), Observation framework (not Combine), Swift concurrency (not GCD), and current SwiftUI APIs.

Core Principles

1. Swift 6 Concurrency First

Always use Swift concurrency (async/await, actor, @MainActor) instead of GCD or completion handlers. Use structured concurrency (TaskGroup, async let) over unstructured tasks.

2. Observation Framework Over Combine

Use @Observable macro for state management instead of ObservableObject with @Published. The Observation framework is more efficient and has cleaner syntax.

3. SwiftData Over Core Data

For new projects, always use SwiftData with @Model and @Query. SwiftData provides simpler APIs while maintaining Core Data's power.

4. Modern SwiftUI APIs

Use NavigationStack (not NavigationView), @Entry for environment values, .task modifier for async work, and built-in components like ContentUnavailableView.

5. Type Safety

Use enums instead of strings for identifiers, typed throws for specific errors, and proper Sendable conformance for thread safety.

6. Value Types When Possible

Prefer structs and enums over classes unless reference semantics are required. Use actor for thread-safe shared mutable state.

When to Use This Skill

Activate this skill when:

  • Writing Swift or iOS application code
  • Designing application architecture
  • Reviewing or modernizing existing Swift code
  • Setting up SwiftUI views, view models, or data models
  • Implementing networking, persistence, or business logic
  • Working with async operations or concurrency

Architecture Pattern: MVVM with Observation

View Model Structure

@Observable
final class ViewModel {
    // Private dependencies
    private let service: ServiceProtocol
    
    // Public readable state
    private(set) var data: [Item] = []
    private(set) var isLoading = false
    private(set) var error: Error?
    
    // User input state (use @Bindable in view)
    var searchText = ""
    var selectedFilter: Filter = .all
    
    init(service: ServiceProtocol) {
        self.service = service
    }
    
    // Public actions
    func loadData() async {
        isLoading = true
        defer { isLoading = false }
        
        do {
            data = try await service.fetchData()
        } catch {
            self.error = error
        }
    }
}

Read the full file on GitHub · 299 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 299 lines · 70 tokens per session scan A e9a563193eaf

Subscribe to this mod's changes

swift-modern-architecture-skill is a skill published in the GitHub repository bsreeram08/chowser (12 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,954 once invoked, about $0.0003 per session on Opus 5.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-11-28.

Related

swift-modern-architecture-skill compared with skills from other repositories

swift-modern-architecture-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-modern-architecture-skillbsreeram08/chowserSkill121mo agoMITA70Claude Code, Codex
swift-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A76Claude Code
swift-coding-standardswilliamzujkowski/standardsSkill233mo agoMITA23Claude Code, Codex
swiftmiles990/claude-software-skillsSkill2610mo agoMITA11Claude Code, Codex
building-apple-platform-productskylehughes/apple-platform-build-tools-claude-code-pluginSkill598mo agoMITB82Claude Code, Codex
swift_expertApexIQ/skillsmithSkill58mo agoMITA20Claude Code, Codex
moai-lang-swiftmosif16/codex-SkillsSkill181y agononeA51Claude Code