agentsclimarketplace

Swift architecture

Skill K95M65/AI_ONBOARD/skills/swift-architecture

Evaluate MVVM, MVI, TCA, Clean Architecture, VIPER, MVP, Coordinator, and reactive patterns for SwiftUI or UIKit codebases. Use when designing, refactoring, or reviewing architecture; preserve the project's existing conventions and recommend a pattern only when its tradeoffs fit the scope, team, dependencies, and deployment targets.From its SKILL.md

Install
npx -y skills add K95M65/AI_ONBOARD --skill swift-architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.6 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Swift Architecture Skill

Overview

Use this skill to pick the best Swift architecture playbook for SwiftUI/UIKit codebases and apply it to the user’s task.

For quick navigation across playbooks, use references/_index.md.

Fast Path

Before selecting an architecture, always capture:

  • task type (new feature, refactor, PR review, debugging)
  • UI stack (SwiftUI, UIKit, or mixed)
  • scope (single screen, multi-screen, app-wide)
  • state and effect complexity
  • team familiarity and dependency tolerance
  • existing conventions to preserve

Then:

  • if the user explicitly names an architecture, treat it as the initial candidate and run a fit check first
  • if no architecture is named, load references/selection-guide.md and infer the best fit from the stated constraints
  • if the best fit combines patterns, name one primary playbook for the feature boundary and one secondary playbook for the supporting concern
  • choose Quick Recommendation Mode for single-feature guidance with clear constraints
  • choose Deep Refactor Mode for migrations, mixed architectures, or module boundary changes

Quick Recommendation Mode

Use this mode when:

  • the scope is one feature or screen
  • constraints are clear enough to recommend one primary pattern
  • the user mainly needs a recommendation, scaffold, or review checklist

Deliver:

  • fit result (fit or mismatch)
  • 1-2 reasons grounded in the request
  • the selected reference file
  • concrete structure, state, dependency, async, and testing guidance scoped to the feature

Deep Refactor Mode

Use this mode when:

  • the request spans multiple modules or screens
  • the codebase already mixes architectures
  • the user is migrating from one pattern to another

Deliver:

  • current-state assessment
  • target architecture recommendation with fit or mismatch result
  • incremental migration path with boundary changes called out
  • risks, trade-offs, and verification points for the transition

Architecture Router

If the user explicitly names an architecture, treat it as the initial candidate and run a fit check before committing:

  • validate against UI stack fit (SwiftUI/UIKit/mixed), state complexity, effect orchestration needs, team familiarity, and existing codebase conventions
  • if it fits, proceed with the requested architecture
  • if it mismatches key constraints, explicitly explain the mismatch and recommend the closest-fit alternative from references/selection-guide.md
  • if the user still insists on a mismatched architecture, proceed with a risk-mitigated plan and state the risks up front

Architecture reference mapping:

  • MVVM → references/mvvm.md
  • MVI → references/mvi.md
  • TCA → references/tca.md
  • Clean Architecture → references/clean-architecture.md
  • VIPER → references/viper.md
  • Reactive → references/reactive.md
  • MVP → references/mvp.md
  • Coordinator → references/coordinator.md

Combination routing:

  • Coordinator is usually secondary unless the user's main problem is flow ownership, deep linking, or reusable navigation.
  • Reactive is usually secondary when streams live inside MVVM, MVP, VIPER, MVI, or TCA presentation boundaries.
  • Clean Architecture is usually primary for app/module layering, with MVVM, MVP, or TCA as the presentation pattern.
  • When combining, read both references and state which pattern owns each boundary before giving file structure or code.

Analyze Existing Codebase (When Applicable)

When code already exists:

  • detect current architecture and DI style
  • note concurrency model (async/await, Combine, GCD, mixed)
  • align recommendations to local conventions

Guardrails

  • Do not force an architecture switch for a small feature when the current local pattern is still a reasonable fit.
  • Preserve existing conventions unless the mismatch is severe enough to justify change.
  • Do not introduce new framework dependencies such as TCA unless the user explicitly accepts that trade-off or the codebase already uses them.
  • Prefer the smallest architecture change that solves the request cleanly.
  • Keep guidance architecture-specific; do not blend playbooks unless the boundary between patterns is explicit.
  • For combined patterns, avoid merging responsibilities: identify the primary boundary first, then apply the secondary playbook only to its concern.

Produce Concrete Deliverables

Read the selected architecture reference and convert its guidance into deliverables tailored to the user's request:

  • File and module structure: directory layout with file names specific to the feature
  • State and dependency boundaries: concrete types, protocols, and injection points
  • Async strategy: cancellation, actor isolation, and error paths
  • Testing strategy: what to test, how to stub dependencies, and example test structure
  • Migration path (for refactors): incremental steps to move from current to target architecture
  • UI stack adaptation: where SwiftUI and UIKit guidance should differ for the chosen architecture

Output Requirements

  • Keep recommendations scoped to the requested feature or review task.
  • Prefer protocol-based dependency injection and explicit state modeling.
  • Flag anti-patterns found in existing code and provide direct fixes.
  • Include cancellation and error handling in all async flows.
  • For explicit architecture requests, include a short fit result (fit or mismatch) with 1-2 reasons.
  • For mismatch cases, include one closest-fit alternative and why it better matches the stated constraints.
  • When writing code, include only the patterns relevant to the task — do not dump entire playbooks.
  • Treat reference snippets as illustrative by default; add full compile scaffolding only if the user asks for runnable code.
  • Ask only minimum blocking questions; otherwise proceed with explicit assumptions stated up front.
  • When reviewing PRs, use the architecture-specific checklist and call out specific violations with line-level fixes.

Verification Checklist

Before finalizing:

  1. confirm the selected pattern matches the user’s constraints and stack
  2. confirm dependency injection, state ownership, effects, and testing strategy are covered
  3. call out migration risk explicitly when recommending an architecture change
  4. end with the selected architecture’s PR review checklist adapted to the user’s feature

What ships with it: 12 files

121.5 KB alongside SKILL.md

references/

Gives 0 of the 12 instructions most architecture codebase skills give in ~1.3k tokens

Counted across 811 of the 1,134 authors here whose files we hold, read 2026-08-07

  • Ask the user which candidate to explorein 45 of 811, across 15 files
  • Apply the deletion test to suspected shallow modulesin 43 of 811, across 15 files
  • Read any relevant architecture decision records firstin 31 of 811, across 8 files
  • Use exact glossary terms in every suggestionin 30 of 811, across 10 files
  • Accept dependencies instead of creating themin 24 of 811, across 5 files
  • Include before and after visualisations for each candidatein 24 of 811, across 5 files
  • Read the domain glossary before exploringin 24 of 811, across 6 files
  • Return results instead of producing side effectsin 23 of 811, across 4 files
  • Explore the codebase for shallow modules and frictionin 23 of 811, across 3 files
  • Introduce seams only where things varyin 22 of 811, across 3 files
  • Reduce the number of methodsin 21 of 811, across 2 files
  • Design deep modules with small interfacesin 21 of 811, across 3 files

Said here and by no other author read

  • load the selection guide if no architecture is named
  • detect current architecture and dependency injection style in existing code
  • produce feature-specific file and module structure
  • define explicit state, protocol, and dependency boundaries
  • provide testing strategy with dependency stubs
  • flag anti-patterns in existing code with direct fixes

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,614. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.