Agent skill

iOS UI Refactor

by pproenca in pproenca/dot-skills

Principal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles.

MITAuto-check passedMobile

Install iOS UI Refactor

skills CLI
$ npx skills add pproenca/dot-skills --skill ios-ui-refactor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills ios-ui-refactor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/ios-ui-refactor .claude/skills/ios-ui-refactor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ios-ui-refactor
GitHub stars
214
Token cost
~3k tokens
SKILL.md length
1,102 words
Files
55 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

Principal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles.

  • Works in 8 steps: Less, But Better (CRITICAL) → Self-Evident Design (CRITICAL) → Honest Interfaces (CRITICAL) → …
  • Improving existing SwiftUI screens
  • SKILL.md covers Scope & Relationship to…, Clinic Architecture Contract…, When to Apply and Rule Categories by Priority, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

iOS UI Refactor is an agent skill from pproenca/dot-skills. Principal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles. Use when auditing or improving existing SwiftUI screens, transitions, animations, and visual systems while preserving brand identity and respecting clinic Domain/Data/App boundaries.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 57 other files, including reference files and assets (for example `assets/templates/_template.md`, `metadata.json` and `references/_sections.md`).

It sits in Mobile, covering iOS development, Refactoring and Brand strategy and identity. It works with iOS, SwiftUI and Swift. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Improving existing SwiftUI screens
  • Visual systems while preserving brand identity and respecting clinic Domain/Data/App boundaries

Example prompts

  • “/ios-ui-refactor”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Less, But Better (CRITICAL)
  2. Self-Evident Design (CRITICAL)
  3. Honest Interfaces (CRITICAL)
  4. Invisible Design (HIGH)
  5. Systems, Not Pieces (HIGH)
  6. Thorough to the Last Detail (HIGH)
  7. Enduring Over Trendy (MEDIUM-HIGH)
  8. Refined Through Iteration (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

iOS UI Refactor loads about 3k tokens when it runs, and up to ~67k if it reads all its reference files. Until then it costs about 89 tokens; SKILL.md has 1,102 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~67k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 1,102 words, ~2,968 tokens.

Download SKILL.mdSave it as .claude/skills/ios-ui-refactor/SKILL.md (or your agent's skills folder). This skill also uses 54 other files; get the full folder from GitHub.
name
ios-ui-refactor
description
Principal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles. Use when auditing or improving existing SwiftUI screens, transitions, animations, and visual systems while preserving brand identity and respecting clinic Domain/Data/App boundaries.

Apple HIG SwiftUI iOS 26 / Swift 6.2 Best Practices

A principal designer's lens for evaluating and refactoring SwiftUI interfaces to Apple-quality standards, grounded in Rams, Segall, and Edson. Contains 51 rules across 8 categories, each grounded in specific principles from three foundational design texts:

  • Dieter Rams — Ten Principles for Good Design ("less, but better," "design should be honest")
  • Ken Segall — Insanely Simple (simplicity as a core principle for intuitive, beautiful products)
  • John Edson — Design Like Apple (design-focused culture, prototyping to perfection, the product is the marketing)

Categories are ordered by a visual review process: start with what to remove, then what to clarify, then what to make honest, invisible, systematic, thorough, enduring, and finally what to refine.

Scope & Relationship to Sibling Skills

This skill is the refactoring and review lens — it evaluates existing UI and identifies visual anti-patterns to fix. When loaded alongside ios-design (building new UI), ios-hig (HIG compliance), or swift-refactor (code-level refactoring), this skill supersedes overlapping rules with more detailed "incorrect -> correct" transformations and "When NOT to apply" guidance. Use this skill for auditing and improving existing screens; use the siblings for greenfield implementation.

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Reviewing existing SwiftUI screens for visual quality issues
  • Auditing whether every element on screen earns its place (Rams #10)
  • Evaluating if the interface is self-explanatory without tooltips (Rams #4)
  • Checking that colors, states, and hierarchy tell the truth (Rams #6)
  • Ensuring animations and materials are invisible, not decorative (Rams #5)
  • Verifying spacing, radii, and colors form a coherent system (Edson "Systems Thinking")
  • Confirming edge cases — reduce motion, touch targets, safe areas — are handled (Rams #8)
  • Adopting iOS 26 / Swift 6.2 APIs that refine previously impossible interactions (Edson "Design Out Loud")

Rule Categories by Priority

PriorityCategoryPrincipleImpactPrefixRules
1Less, But BetterRams #10 + Segall "Think Minimal"CRITICALless-7
2Self-Evident DesignRams #4 + Segall "Think Human"CRITICALevident-6
3Honest InterfacesRams #6 + Segall "Think Brutal"CRITICALhonest-6
4Invisible DesignRams #5 + Edson "Product Is Marketing"HIGHinvisible-6
5Systems, Not PiecesEdson "Systems Thinking" + Rams #8HIGHsystem-6
6Thorough to the Last DetailRams #8 + Rams #2HIGHthorough-7
7Enduring Over TrendyRams #7 + Edson "Design With Conviction"MEDIUM-HIGHenduring-5
8Refined Through IterationEdson "Design Out Loud" + Rams #1/#3MEDIUMrefined-8

Quick Reference

1. Less, But Better (CRITICAL)

Rams #10: "Good design is as little design as possible." Segall: Apple succeeded by saying no to a thousand things.

2. Self-Evident Design (CRITICAL)

Rams #4: "Good design makes a product understandable." Segall: interfaces must speak in terms people understand.

Show full SKILL.md (471 more words)Show less
3. Honest Interfaces (CRITICAL)

Rams #6: "Good design is honest." Segall: clarity without sugar-coating.

4. Invisible Design (HIGH)

Rams #5: "Good design is unobtrusive." Edson: the product itself is the marketing.

5. Systems, Not Pieces (HIGH)

Edson: "Design is systems thinking." Rams #8: nothing must be arbitrary or left to chance.

6. Thorough to the Last Detail (HIGH)

Rams #8: "Care and accuracy in the design process show respect for the user." Rams #2: if the user cannot reliably use it, the product has failed.

7. Enduring Over Trendy (MEDIUM-HIGH)

Rams #7: "Good design is long-lasting." Edson: commit to a voice that persists across product generations.

8. Refined Through Iteration (MEDIUM)

Edson: "Design out loud" — prototype relentlessly until every interaction feels inevitable. Rams #1: innovation serves genuine purpose.

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and principle grounding
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 54 other files (references, assets) in skills/.experimental/ios-ui-refactor of pproenca/dot-skills.

  • SKILL.md
  • assets/templates/_template.md
  • metadata.json
  • references/_sections.md
  • references/enduring-card-modularity.md
  • references/enduring-swipe-back.md
  • references/enduring-system-text-styles.md
  • references/enduring-weight-not-caps.md
  • references/enduring-zoom-navigation.md
  • references/evident-label-clarity.md
  • references/evident-navigation-intent.md
  • references/evident-progressive-disclosure.md
  • references/evident-reading-order.md
  • references/evident-visual-weight.md
  • references/evident-whitespace-grouping.md
  • references/honest-contrast.md
  • references/honest-dark-mode.md
  • references/honest-depth-cues.md
  • … and 37 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

iOS UI Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

iOS UI Refactor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
iOS UI Refactor this skillpproenca/dot-skills214—~3kAutomated safety check: PassMIT
View Refactorrobinebers/openusage4.3k—~1.4kAutomated safety check: PassMIT
Swiftui Expert SkillAFK-surf/OpenBridge4302 repos~3.9kAutomated safety check: PassMIT
Swiftui AnimationAstraFoundry/KumoApp290—~4.1kAutomated safety check: PassAGPL-3.0
Snapshot Testsmicrosoft/SwiftStreamingMarkdown377—~2.2kAutomated safety check: PassMIT
Bootstrap iOSRayFernando1337/rayfernando-skills130—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • View Refactor

    robinebers/openusage

    Refactor macOS SwiftUI views and scenes with strong defaults for small dedicated subviews, stable sidebar and selection structure, explicit command and toolbar ownership, scene-aware state, and…

    4.3k GitHub stars~1.4k tokensUpdated yesterday
    MobileAuto-check passed
  • Swiftui Expert Skill

    AFK-surf/OpenBridge

    Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, modern APIs, Swift concurrency, and iOS 26+ Liquid Glass adoption.

    430 GitHub starsUsed in 2 repos~3.9k tokens
    MobileAuto-check passed
  • Swiftui Animation

    AstraFoundry/KumoApp

    Implement, review, or improve SwiftUI animations and transitions.

    290 GitHub stars~4.1k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Snapshot Tests

    microsoft/SwiftStreamingMarkdown

    Official

    Record and validate swift-snapshot-testing snapshots in the SwiftStreamingMarkdown package: regenerate reference PNGs, run snapshot tests, and diff failed snapshots.

    377 GitHub stars~2.2k tokensUpdated 12 days ago
    MobileAuto-check passed
  • Bootstrap iOS

    RayFernando1337/rayfernando-skills

    Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work.

    130 GitHub stars~1.1k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Swiftui Animation

    dpearson2699/swift-ios-skills

    Implement, diagnose, or review SwiftUI motion using explicit and scoped implicit animations, springs, transitions, PhaseAnimator, KeyframeAnimator, matched geometry or navigation zoom, SF Symbol…

    1.2k GitHub stars~3.9k tokensUpdated 2 mo ago
    MobileAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about iOS UI Refactor

What does iOS UI Refactor do?

Principal-level SwiftUI UI review and refactoring patterns for iOS 26 / Swift 6.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles. iOS UI Refactor is an agent skill from pproenca/dot-skills.2 clinic-architecture apps, grounded in Rams, Segall, and Edson principles.

When should I use iOS UI Refactor?

iOS UI Refactor fits situations like: improving existing SwiftUI screens; visual systems while preserving brand identity and respecting clinic Domain/Data/App boundaries.

How do I install iOS UI Refactor in Claude Code?

Run `npx skills add pproenca/dot-skills --skill ios-ui-refactor -a claude-code`. Or copy the skill folder (skills/.experimental/ios-ui-refactor in pproenca/dot-skills) into .claude/skills/ios-ui-refactor in your project. Claude Code loads it when a task matches its description.

How do I install iOS UI Refactor in Codex?

Run `npx skills add pproenca/dot-skills --skill ios-ui-refactor -a codex`. Or copy the skill folder (skills/.experimental/ios-ui-refactor in pproenca/dot-skills) into .agents/skills/ios-ui-refactor in your project. Codex loads it when a task matches its description.

Can I use iOS UI Refactor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill ios-ui-refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ios-ui-refactor, .gemini/skills/ios-ui-refactor, .github/skills/ios-ui-refactor and .opencode/skills/ios-ui-refactor in your project.

What does iOS UI Refactor need to run?

SKILL.md names no scripts, command-line tools or credentials: iOS UI Refactor is instructions for the agent only.

Does iOS UI Refactor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is iOS UI Refactor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does iOS UI Refactor use?

iOS UI Refactor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does iOS UI Refactor use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 64k tokens, read only when the agent opens those files.

What are the alternatives to iOS UI Refactor?

Skills that share tags, products or a category with iOS UI Refactor: View Refactor (robinebers/openusage, 4.3k stars), Swiftui Expert Skill (AFK-surf/OpenBridge, 430 stars), Swiftui Animation (AstraFoundry/KumoApp, 290 stars) and Snapshot Tests (microsoft/SwiftStreamingMarkdown, 377 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains iOS UI Refactor?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.