swift-dependencies
CommunityDeterministic, testable Swift dependency control.
Authornonameplum
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Swift projects often suffer from brittle dependencies, hard-to-test behavior, and unpredictable runtimes. This skill provides a deterministic mechanism to register, override, and propagate dependencies across tests, previews, and runtime contexts.
Core Features & Use Cases
- Deterministic dependency values: live, preview, and test values for DependencyKey.
- Scoped overrides with withDependencies and withEscapedDependencies for safe testing and previews.
- Easy propagation to child models and components via withDependencies(from:).
Quick Start
- Install and reference the Dependencies library in your project.
- Create a DependencyKey conforming type and implement liveValue, testValue, and optional previewValue.
- Use withDependencies to override dependencies for a single test or feature start, then construct your model.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: swift-dependencies Download link: https://github.com/nonameplum/agent-skills/archive/main.zip#swift-dependencies Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.