Sandbox
@efremidze/swift-architecture-skill

Swift architecture skill for Claude Code and Agent Skills

This repo packages Swift architecture guidance as an Agent Skills skill. It helps the agent pick a fit for your feature, then follows the matching playbook with patterns, anti-pattern fixes, testing notes, and a PR checklist.

69 stars5 forksPythonUpdated 1mo ago
Who it's for

Builders who want their agent to recommend and apply the right Swift or SwiftUI architecture for a feature or refactor.

What it delivers

You can keep architecture advice scoped to the task instead of getting generic MVVM-by-default guidance.

What it does

Architecture routing

Chooses a pattern based on UI stack, state complexity, and existing conventions, or validates a pattern you name.

Scoped playbooks

Provides separate reference pages for each architecture, with patterns, anti-pattern fixes, testing strategy, and a PR checklist.

Reference index

Uses `_index.md` as a fast navigation hub and problem router before the agent opens a specific playbook.

SwiftUI and UIKit coverage

Covers both stacks with async/await and actor-based concurrency examples throughout.

Snippet validation

CI checks Swift code fences across the playbooks so examples stay syntactically healthy.

How to get it

  1. 1Works with any tool that supports the Agent Skills format
    npx skills add https://github.com/efremidze/swift-architecture-skill --skill swift-architecture-skill
  2. 2Install from the marketplace for personal use
    /plugin marketplace add efremidze/swift-architecture-skill
    /plugin install swift-architecture-skill@swift-architecture-skill
  3. 3Clone the repo and copy the skill into your skills directory — ~/.claude/skills/ for…
    git clone https://github.com/efremidze/swift-architecture-skill.git
    mkdir -p ~/.claude/skills  # or .claude/skills for a project
    cp -r swift-architecture-skill/swift-architecture-skill ~/.claude/skills/swift-architecture-skill

README

Swift Architecture Skill

Validate Skill Agent Skills Release

Architecture guidance for AI coding tools — because LLMs default to MVVM for everything. This skill routes to the right pattern for your feature, keeps guidance scoped to your task, and gives you concrete code, anti-pattern fixes, and a PR checklist.

Supports the Agent Skills open format.

Features

  • Routes to the right architecture: Describe your feature and the skill selects the best fit based on UI stack, state complexity, and existing conventions. Name a pattern yourself and it validates the fit before you commit.
  • Scoped playbooks: Each architecture has its own reference — code patterns, anti-pattern fixes, testing strategy, and a PR checklist. Guidance never bleeds across patterns.
  • Reference index: A dedicated _index.md gives agents a fast navigation hub and problem router before diving into a playbook.
  • SwiftUI and UIKit: Every playbook covers both stacks with modern async/await and actor-based concurrency patterns throughout.
  • Snippet validation: CI parses Swift fences across the playbooks so examples stay syntactically healthy as guidance evolves.

Supported Architectures

MVP · MVVM · MVI · TCA · Clean Architecture · VIPER · Coordinator · Reactive

Each has a dedicated playbook with overview, patterns, anti-pattern fixes, testing strategy, and PR checklist. Start with the reference index for quick routing, or use the selection guide when the architecture is still undecided.

Installation

skills.sh (recommended)

Works with any tool that supports the Agent Skills format:

npx skills add https://github.com/efremidze/swift-architecture-skill --skill swift-architecture-skill

Claude Code plugin

Install from the marketplace for personal use:

/plugin marketplace add efremidze/swift-architecture-skill
/plugin install swift-architecture-skill@swift-architecture-skill

Or enable it for an entire project by committing this to .claude/settings.json:

{
  "extraKnownMarketplaces": {
    "swift-architecture-skill": {
      "source": {
        "source": "github",
        "repo": "efremidze/swift-architecture-skill"
      }
    }
  },
  "enabledPlugins": {
    "swift-architecture-skill@swift-architecture-skill": true
  }
}

Manual install

Clone the repo and copy the skill into your skills directory — ~/.claude/skills/ for personal use, or a project's .claude/skills/:

git clone https://github.com/efremidze/swift-architecture-skill.git
mkdir -p ~/.claude/skills  # or .claude/skills for a project
cp -r swift-architecture-skill/swift-architecture-skill ~/.claude/skills/swift-architecture-skill

Usage

Once installed, ask your agent:

Use swift-architecture-skill to recommend and scaffold architecture for this feature.

Example Prompts

I'm building a SwiftUI feed with pagination, pull-to-refresh, and live updates.
Which architecture should I use and why?
We're planning to use TCA for a simple settings screen with two toggles.
Is that the right call, or is it overkill for this feature?
This module started as MVVM but the ViewModel is doing too much — routing,
formatting, and business logic. Use swift-architecture-skill to refactor it
toward Clean Architecture and show me the layer boundaries.
We have a UIKit + MVP module we're migrating to SwiftUI. Should we keep MVP
or switch patterns during the migration, and how do we handle the transition
period where both coexist?

Skill Structure

swift-architecture-skill/
  SKILL.md                       # Routing logic and output requirements
  references/
    _index.md                    # Navigation hub and problem router
    selection-guide.md           # Decision framework across architectures
    mvp.md                       # MVP playbook
    mvvm.md                      # MVVM playbook
    mvi.md                       # MVI playbook
    tca.md                       # TCA playbook
    clean-architecture.md        # Clean Architecture playbook
    viper.md                     # VIPER playbook
    coordinator.md               # Coordinator playbook
    reactive.md                  # Reactive (Combine/RxSwift) playbook

Contributing

Contributions are welcome. A few things to keep in mind:

  • Respect the token budget. SKILL.md is loaded on every invocation — keep additions concise.
  • Don't repeat what LLMs already know. Focus on edge cases, common mistakes, and pattern-specific traps that models get wrong.
  • One playbook per pattern. Keep guidance scoped; don't let patterns bleed into each other.

See CONTRIBUTING.md for full structure and quality requirements.

Related

License

MIT. See LICENSE for details.

Files in the repo

Repository payload12 top-level entries
  • .claude
  • .claude-plugin
  • .github
  • .planning
  • swift-architecture-skill
  • tooling
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k