Swift Uikit Skill logo

Swift Uikit Skill

Community
Lakr233
swift-uikit-skill

Build, review, and improve programmatic UIKit applications following proven patterns for Auto Layout, table views, collection views, navigation, animation, Core Data, networking, and architecture. Use when writing new UIKit features, refactoring existing view controllers, reviewing UIKit code quality, building custom controls, or implementing common iOS design patterns like load-and-retry, onboarding, or collapsible headers.

Overview

PublisherLakr233
RepositorySwift-UIKit-Skill
Skill nameswift-uikit-skill
Stars
49
Forks
4
Bundled files
20
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 20 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Lakr233 on GitHub. Read the source before you install it.

Installation

Install the Swift Uikit Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Lakr233/Swift-UIKit-Skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lakr233/Swift-UIKit-Skill.git \
  .claude/skills/swift-uikit-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swift Uikit Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Swift Uikit Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Swift Uikit Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Swift UIKit Skill

Operating Rules

  • All UI is built programmatically (no Storyboards). Always set translatesAutoresizingMaskIntoConstraints = false.
  • Prefer NSLayoutConstraint.activate([...]) for batch constraint activation.
  • Organize view controller code with extensions: separate style(), layout(), and protocol conformances.
  • Use factory functions for repetitive UI element creation.
  • Use weak references for delegates and [weak self] in closures to prevent retain cycles.
  • Prefer Result<Success, Error> for async completion handlers.
  • Always dispatch UI updates to the main thread from async callbacks.
  • Extract custom views flush to their container; parent manages spacing.
  • Use child view controllers for complex, self-contained screen sections.
  • Consult relevant reference files before implementing any topic.

Task Workflow

Review existing UIKit code

  • Read the code under review and identify which topics apply
  • Run the Topic Router below for each relevant topic
  • Check for retain cycles (missing weak delegates, missing [weak self])
  • Verify Auto Layout completeness (unambiguous constraints, no warnings)
  • Flag deprecated patterns (e.g., manual beginUpdates/endUpdates when Diffable is available)

Improve existing UIKit code

  • Audit current implementation against the Topic Router topics
  • Extract large view controllers into child VCs and custom views
  • Replace inline UI creation with factory functions
  • Migrate legacy table/collection view data sources to Diffable where appropriate
  • Add proper error handling with Result types

Implement new UIKit feature

  • Design data flow first: identify service, view model, view controller, and view layers
  • Structure views for composition (extracted views + child view controllers)
  • Apply correct animation patterns (constraint-based, Core Animation, or UIView)
  • Use protocol-delegate for sustained relationships; closures for one-shot callbacks
  • Add proper loading/error states

Topic Router

Consult the reference file for each topic relevant to the current task:

TopicReference
UITableViewreferences/uitableview.md
UICollectionViewreferences/uicollectionview.md
UINavigationControllerreferences/uinavigationcontroller.md
UIScrollViewreferences/uiscrollview.md
Core Animationreferences/core-animation.md
Core Graphicsreferences/core-graphics.md
Auto Layout animationreferences/auto-layout-animation.md
Communication patternsreferences/communication-patterns.md
Architecture patternsreferences/architecture-patterns.md
View extractionreferences/view-extraction.md
Navigation patternsreferences/navigation-patterns.md
Design patterns (UI)references/design-patterns.md
Networkingreferences/networking.md
Factory functionsreferences/factory-patterns.md
Nib / XIB patternsreferences/nib-patterns.md
NSAttributedStringreferences/nsattributedstring.md
Gesture recognizersreferences/gesture-recognizers.md
Custom controlsreferences/custom-controls.md
Currency formattingreferences/currency-formatting.md
Deep linkingreferences/deep-linking.md

Correctness Checklist

These are hard rules -- violations are always bugs:

  • Every programmatic view sets translatesAutoresizingMaskIntoConstraints = false
  • Delegates are declared weak var delegate: SomeDelegate?
  • Async closures capture [weak self] when referencing the owning object
  • UI updates from async callbacks are dispatched to DispatchQueue.main
  • beginUpdates() / endUpdates() bracket all batch table view mutations
  • Diffable data source items conform to Hashable with stable identifiers
  • Child view controllers follow the 3-step lifecycle: addChild(), addSubview(), didMove(toParent:)
  • Custom views define intrinsicContentSize when they have a natural size
  • NSFetchedResultsController delegate implements all three callbacks (willChange, didChange, didChangeContent)
  • Core Animation model layer is updated after animation to persist final state
  • NSLayoutConstraint.activate() is used instead of isActive = true one-by-one
  • Factory functions return views with translatesAutoresizingMaskIntoConstraints already set to false

Quick Diagnostics

SymptomLikely causeReference
View doesn't appearMissing translatesAutoresizingMaskIntoConstraints = falsereferences/view-extraction.md
Table view crashes on insertData source count mismatch with beginUpdatesreferences/uitableview.md
Animation snaps to final stateModel layer not updated after CA animationreferences/core-animation.md
Retain cycle / memory leakMissing weak on delegate or [weak self]references/communication-patterns.md
Scroll view doesn't scrollMissing content size or broken constraint chainreferences/uiscrollview.md
Shadow clipped by viewmasksToBounds = true on layerreferences/core-animation.md
Gradient/shadow wrong sizeSet bounds-dependent layers in viewDidAppearreferences/core-animation.md
Collection view emptyForgot to register cell or data source nilreferences/uicollectionview.md
Core Data threading crashAccessing managed object on wrong queuereferences/networking.md
Navigation bar title missingNot setting title or navigationItem.titlereferences/uinavigationcontroller.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Swift Uikit Skill AI skill do?

Build, review, and improve programmatic UIKit applications following proven patterns for Auto Layout, table views, collection views, navigation, animation, Core Data, networking, and architecture. Use when writing new UIKit features, refactoring existing view controllers, reviewing UIKit code quality, building custom controls, or implementing common iOS design patterns like load-and-retry, onboarding, or collapsible headers.

Why use Swift Uikit Skill on TypingMind?

Because you install it once and use it with any model. Swift Uikit Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Swift Uikit Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Lakr233/Swift-UIKit-Skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Swift Uikit Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Swift Uikit Skill?

As many as you like. As long as a model supports skills, you can use Swift Uikit Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Swift Uikit Skill AI skill free?

Yes. It is published on GitHub by Lakr233 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇