CtrlK
BlogDocsLog inGet started
Tessl Logo

swift-actor-persistence

Thread-safe data persistence in Swift using actors — in-memory cache with file-backed storage, eliminating data races by design. Use when persisting data in Swift and a data race or thread-safety problem needs designing out.

67

Quality

81%

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

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

An actionable, well-structured code-pattern skill with complete executable Swift, weakened mainly by a lack of validation/verification feedback for its destructive file operations and some duplicated When-to sections.

Suggestions

Add a validation/verification checkpoint for destructive writes — e.g., after save/delete, verify the file decoded correctly or report a write failure feedback loop — to lift workflow_clarity above 3.

Merge the overlapping 'When to Activate' and 'When to Use' sections into a single trigger list to remove redundancy and tighten the token budget.

Drop the introductory paragraph that restates the frontmatter description, since the body heading already conveys the same intent.

DimensionReasoningScore

Conciseness

Mostly lean and efficient with code comments that earn their place ('// Synchronous load during init (actor isolation not yet active)'), but the 'When to Activate' and 'When to Use' sections substantially duplicate each other and the intro repeats the description — minor trim opportunities keep it below anchor 5.

4 / 5

Actionability

Fully executable, copy-paste-ready generic actor implementation covering save/delete/find/loadAll plus a @Observable ViewModel integration and concrete usage examples that cover the common cases.

5 / 5

Workflow Clarity

The CRUD sequence (init → cache → persist) is present, but save/delete destructively modify file-backed storage with no validation or verification checkpoint and no error-recovery feedback loop; the destructive-operation cap applies and holds this at anchor 3.

3 / 5

Progressive Disclosure

Well-organized with clear section headers, a design-decision table, and appropriately placed inline code; no external references are needed for this single-file skill, though the duplicate When-to sections and absence of any file split leave minor organization gaps below anchor 5.

4 / 5

Total

16

/

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, specific description with an explicit 'Use when' clause and concrete trigger phrases tied to a clear niche. Slight headroom remains on specificity and trigger-term synonym coverage.

DimensionReasoningScore

Specificity

Names the domain and several concrete elements ('in-memory cache with file-backed storage', 'eliminating data races by design', 'using actors'), but it is really one capability (persistence) with architecture detail rather than a list of multiple distinct actions, so it falls below the comprehensive-coverage anchor 5.

4 / 5

Completeness

It explicitly answers what it does ('Thread-safe data persistence in Swift using actors — in-memory cache with file-backed storage, eliminating data races by design') and when to use it ('Use when persisting data in Swift and a data race or thread-safety problem needs designing out') with concrete trigger phrases.

5 / 5

Trigger Term Quality

'persisting data in Swift', 'data race', and 'thread-safety' are natural phrases a developer would say; missing common synonyms such as 'concurrency', 'async', or 'thread-safe', keeping it just short of comprehensive.

4 / 5

Distinctiveness Conflict Risk

The Swift + actors + data-race niche is narrow with distinct triggers and minimal overlap risk with other skills, written in third person.

5 / 5

Total

18

/

20

Passed

Validation

93%

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

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository
affaan-m/ECC
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.