CtrlK
BlogDocsLog inGet started
Tessl Logo

swiftui-patterns

SwiftUI 架构模式,使用 @Observable 进行状态管理,视图组合、导航、性能优化以及现代 iOS/macOS UI 最佳实践。

64

Quality

76%

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 ./skills/swiftui-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

80%

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

The body is a lean, highly actionable SwiftUI patterns catalog with executable code and clear selection guidance, but it is monolithic — all 255 lines sit in one file with no progressive disclosure to bundle files, and it lacks the explicit workflow checkpoints that a procedural skill would need.

Suggestions

Split detailed reference material (e.g., navigation routing patterns, performance deep-dives) into bundle files under references/ and link to them from concise overview sections to improve progressive disclosure.

Add a short decision workflow (identify state ownership → choose wrapper → compose views → route via NavigationStack) with a validation checkpoint (e.g., 'confirm only views reading changed state re-render') to lift workflow clarity.

Verify the cross-skill references (swift-actor-persistence, swift-protocol-di-testing) resolve to real skills, and consider mirroring the most relevant snippet inline so the body is self-sufficient.

DimensionReasoningScore

Conciseness

The body is dense with executable Swift and minimal prose; it does not re-explain basics Claude already knows, and the brief rationale statements (e.g., why @Observable tracks property-level changes) earn their tokens by justifying decisions rather than padding.

3 / 3

Actionability

It provides complete, copy-paste-ready Swift examples (ViewModel, view, environment injection, NavigationStack router, lazy containers, Equatable view) plus a concrete property-wrapper selection table and explicit do/don't anti-patterns — fully executable guidance.

3 / 3

Workflow Clarity

Sections are well-organized and the '何时激活' list plus selection tables guide pattern choice, but as a 255-line multi-topic patterns catalog it has no multi-step procedure with explicit validation checkpoints or feedback loops, so it sits at the 'sequence present but checkpoints missing' level rather than the checklist/validate anchor.

2 / 3

Progressive Disclosure

Content is well-sectioned and the 参考资料 references to sibling skills are clearly signaled and one level deep, but the entire 255-line catalog lives inline in a single SKILL.md with no bundle files to split detailed material into — content that could be separated (e.g., navigation or performance deep-dives) is inline.

2 / 3

Total

10

/

12

Passed

Description

72%

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 clearly identifies a specific SwiftUI niche with natural trigger terms, but it reads as a topic catalog rather than an action list and omits an explicit 'Use when...' trigger clause, which caps completeness and specificity.

Suggestions

Lead with concrete verbs (e.g., 'Compose SwiftUI views, manage state with @Observable, build type-safe NavigationStack routing, and optimize list rendering') to lift specificity from topic-listing to action-listing.

Append an explicit trigger clause such as 'Use when building or refactoring SwiftUI views, designing navigation, or optimizing iOS/macOS UI performance' to satisfy the 'when' half of completeness.

Add common user phrasings (e.g., 'SwiftUI views', 'view models', 'UI performance') to broaden trigger-term coverage.

DimensionReasoningScore

Specificity

Names the SwiftUI domain and several concrete techniques ("使用 @Observable 进行状态管理") but largely enumerates topic areas ("视图组合、导航、性能优化") rather than a comprehensive list of concrete actions, matching the 'names domain and some actions, but not comprehensive' anchor.

2 / 3

Completeness

It clearly states what the skill covers but provides no "Use when..." clause or equivalent explicit trigger guidance; per the judging guidelines a missing trigger clause caps completeness at 2, so it does not reach the explicit 'what AND when' level.

2 / 3

Trigger Term Quality

Uses natural terms users would actually say — "SwiftUI", "状态管理", "导航", "性能", "视图组合", "iOS/macOS UI" — giving good coverage of natural trigger language.

3 / 3

Distinctiveness Conflict Risk

It targets a clear niche — SwiftUI architecture with @Observable, view composition, navigation, performance on iOS/macOS — which is distinct from sibling Swift skills and unlikely to trigger for the wrong skill.

3 / 3

Total

10

/

12

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
xu-xiang/everything-claude-code-zh
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.