CtrlK
BlogDocsLog inGet started
Tessl Logo

swift-protocol-di-testing

Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing. Use when Swift code needs testing and file system, network, or external APIs must be mocked.

68

Quality

82%

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

77%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 well-structured, actionable skill body that walks through a clear five-step pattern with executable Swift examples and reinforces it with best practices and anti-patterns. Tests reference a couple of undefined symbols (MockFileSystemProvider, loadData), slightly limiting copy-paste readiness, and there are no explicit validation checkpoints in the workflow.

Suggestions

Define MockFileSystemProvider and the SyncManager.loadData method referenced in the test examples so all code is copy-paste ready.

Add a short validation checkpoint after the test-writing step (e.g., 'run the test suite and confirm mocks return expected results') to satisfy the feedback-loop expectation for testing workflows.

Trim restatement lines like 'Each protocol handles exactly one external concern' and 'Production code uses defaults; tests inject mocks' since the surrounding code already conveys this.

DimensionReasoningScore

Conciseness

Mostly efficient with focused sections and code that earns its place, but a few explanatory lines (e.g., 'Each protocol handles exactly one external concern', 'Production code uses defaults; tests inject mocks') restate what the code already shows and could be trimmed.

4 / 5

Actionability

Provides mostly executable Swift code for protocols, default implementations, mocks, injection, and tests, with only minor gaps (e.g., MockFileSystemProvider and SyncManager.loadData are referenced in tests but not defined).

4 / 5

Workflow Clarity

The five-step Core Pattern is a clear, well-sequenced progression, and Best Practices/Anti-Patterns reinforce it; however, there are no explicit validation checkpoints or feedback loops for the test-writing workflow.

4 / 5

Progressive Disclosure

A well-organized single-file skill (under ~185 lines) with clear section headers and no external bundle files, so content is appropriately self-contained and easy to navigate.

5 / 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, specific description that concretely states what the skill does and includes an explicit 'Use when' trigger clause with natural keywords. Minor keyword coverage gaps prevent a perfect specificity/trigger score, but completeness and distinctiveness are excellent.

DimensionReasoningScore

Specificity

Names the domain (protocol-based DI for testable Swift) and several concrete actions ('mock file system, network, and external APIs', 'Swift Testing'), with only minor gaps in coverage (e.g., iCloud mentioned in body but not description).

4 / 5

Completeness

Clearly answers 'what' (protocol-based DI for mocking file system, network, external APIs) and 'when' with an explicit 'Use when Swift code needs testing and file system, network, or external APIs must be mocked' trigger phrase.

5 / 5

Trigger Term Quality

Includes natural terms users would say ('Swift', 'testing', 'mock', 'file system', 'network', 'external APIs') but misses common synonyms/variants like 'unit tests' or 'test doubles'.

4 / 5

Distinctiveness Conflict Risk

Targets a clear niche (Swift protocol-based DI for testing) with distinct triggers (mocking external dependencies), so overlap risk with other skills is minimal.

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.