CtrlK
BlogDocsLog inGet started
Tessl Logo

swiftui-view-refactor

Refactor SwiftUI views into smaller components with stable, explicit data flow.

58

Quality

68%

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

Fix and improve this skill with Tessl

tessl review fix ./plugins/AI-Agents-Safe-Coding-Skills/skills/swiftui-view-refactor/SKILL.md

The canonical home for this skill is swiftui-view-refactor in administrakt0r/AI-Agents-Safe-Coding-Skills

SKILL.md
Quality
Evals
Security

Quality

Content

82%Scale 1-5

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

This is a strong, well-crafted skill that provides concrete, actionable SwiftUI refactoring guidance with excellent code examples showing both preferred and avoided patterns. The workflow is clearly sequenced and the content respects Claude's intelligence by avoiding basic explanations. Minor improvements could include an explicit build/test verification step in the workflow and ensuring the referenced `references/mv-patterns.md` file exists in the bundle.

Suggestions

Add an explicit verification step to the workflow, e.g., 'Build the project and run previews to confirm no regressions before committing.'

DimensionReasoningScore

Conciseness

The skill is mostly efficient and avoids explaining basic SwiftUI concepts Claude already knows. There's minor verbosity in some explanatory sentences (e.g., 'Root-level branch swapping causes identity churn, broader invalidation, and extra recomputation') and the 'When to Use' section is somewhat redundant with the overview, but overall it's well-trimmed.

4 / 5

Actionability

The skill provides concrete, executable Swift code examples for every major guideline—preferred vs. avoided patterns, view model initialization, Observation usage, and action extraction. The examples are copy-paste ready and cover the common refactoring scenarios comprehensively.

5 / 5

Workflow Clarity

The 7-step workflow section provides a clear, ordered sequence for performing the refactor. Step 7 ('Keep behavior intact') serves as a validation checkpoint. However, there's no explicit verification step (e.g., 'build and confirm no regressions' or 'run previews to verify') which is a minor gap for a refactoring workflow that could introduce subtle breakage.

4 / 5

Progressive Disclosure

The content is well-structured with clear sections and a reference to `references/mv-patterns.md` for deeper MV rationale. However, the bundle has no files, so that reference is unverifiable. The skill is moderately long (~150 lines of content) but the inline examples are appropriate and not excessive enough to warrant separate files.

4 / 5

Total

17

/

20

Passed

Description

53%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.

The description is concise and identifies a clear domain (SwiftUI refactoring) with a specific focus on component extraction and data flow, but it lacks a 'Use when...' clause that would help Claude know when to select it. It would benefit from additional trigger terms covering common synonyms and user phrasings, as well as more specific actions beyond the general 'refactor' verb.

Suggestions

Add a 'Use when...' clause with trigger phrases like 'Use when the user asks to break up a SwiftUI view, extract subviews, simplify a large view, or fix data flow with @State/@Binding/@ObservedObject'.

Include more specific actions such as 'extract subviews, replace implicit dependencies with explicit @Binding parameters, introduce view models' to better convey the scope of the skill.

Add natural synonyms and related terms like 'break up view', 'split view', 'extract component', 'view hierarchy', '@State', '@Binding' to improve trigger term coverage.

DimensionReasoningScore

Specificity

Names the domain (SwiftUI views) and describes one concrete action (refactor into smaller components) with a qualifier about data flow, but doesn't list multiple specific actions or techniques involved in the refactoring process.

3 / 5

Completeness

Has a clear 'what' (refactor SwiftUI views into smaller components with stable data flow) but completely lacks a 'when' clause or any explicit trigger guidance for when Claude should select this skill.

3 / 5

Trigger Term Quality

Includes relevant keywords like 'SwiftUI', 'views', 'refactor', 'components', and 'data flow', but misses natural user phrases like 'break up view', 'extract subview', 'split view', '@State', '@Binding', or 'view composition'.

3 / 5

Distinctiveness Conflict Risk

Fairly distinct due to the specific combination of SwiftUI + refactoring + data flow, though it could overlap with general SwiftUI skills or general refactoring skills. The niche is reasonably well-defined.

4 / 5

Total

13

/

20

Passed

Validation

90%

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

Validation10 / 11 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

10

/

11

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-Skills
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.