CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

swiftui-patterns

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices. Use when building or reviewing SwiftUI views, @Observable state, navigation, or render performance.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A high-quality patterns skill: complete, executable code throughout, a useful wrapper-selection decision table, and a clear When-to-Activate plus anti-patterns framing. The main gains would come from trimming the few restatements of standard SwiftUI knowledge and moving deeper performance guidance into a reference file to slim the main body.

DimensionReasoningScore

Conciseness

The body is efficient — a decision table for wrapper selection, terse one-line rationales, and complete code with no tutorial padding. A few lines restate knowledge Claude already has (e.g., "LazyVStack and LazyHStack create views only when visible", "Never perform I/O, network calls, or heavy computation inside body"), which keeps it just below the lean-everywhere anchor 5.

4 / 5

Actionability

Every section provides complete, executable Swift code — a full @Observable view model, consuming view, environment injection, type-safe NavigationStack router, ViewModifier, Equatable view, and #Preview macros with mocks — covering the common cases copy-paste ready. The wrapper-selection table and anti-patterns list give concrete decision guidance.

5 / 5

Workflow Clarity

"When to Activate" opens with clear applicability conditions and each pattern section is unambiguous and self-contained (selection table → model → consumer → injection). It is a reference-style skill with no risky sequential workflow, so no validation checkpoints are needed, but there is also no explicit sequencing or decision flow tying sections together, keeping it below anchor 5.

4 / 5

Progressive Disclosure

The body is well organized with clear section headers (State Management, View Composition, Navigation, Performance, Previews, Anti-Patterns) and ends with explicitly signaled cross-skill references ("See skill: swift-actor-persistence"). There are no bundle files to split into, and the ~250-line inline content is appropriately sized for a patterns overview, but a few deep-dive sections (e.g., performance) could live in reference files to slim the overview.

4 / 5

Total

17

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it enumerates concrete capability areas, uses an explicit "Use when..." clause with natural trigger terms, and occupies a clearly distinct SwiftUI niche. The only improvement would be phrasing capabilities as actions (e.g., "Structure @Observable view models, build NavigationStack flows") and adding a few more synonyms such as "iOS app UI".

DimensionReasoningScore

Specificity

The description lists several concrete capability areas — "state management with @Observable", "view composition", "navigation", "performance optimization" — with only minor gaps (e.g., previews, environment injection). It falls just below anchor 5 because these are topic nouns rather than the fully action-verb enumeration ("Extract text and tables... fill forms...") the top anchor expects.

4 / 5

Completeness

It explicitly answers both what ("SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization...") and when with a concrete trigger clause ("Use when building or reviewing SwiftUI views, @Observable state, navigation, or render performance").

5 / 5

Trigger Term Quality

Natural user phrases like "building or reviewing SwiftUI views", "@Observable state", "navigation", and "render performance" give good keyword coverage. A few natural synonyms are missing (e.g., "iOS app UI", "Swift UI" spacing variant, "list performance"), so it does not reach anchor 5's comprehensive synonym coverage.

4 / 5

Distinctiveness Conflict Risk

"SwiftUI" plus "@Observable" and "render performance" carve out a clear niche distinct from adjacent Swift skills (e.g., the referenced swift-actor-persistence and swift-protocol-di-testing), with minimal risk of triggering for the wrong skill.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

affaan-m/ECC

Path

skills/swiftui-patterns/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.