accept-interfaces-return-structs
CommunityAccept interfaces, return structs for API flexibility.
AuthorJamesPrial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The core pattern of accepting interfaces and returning concrete structs to maximize flexibility and testability.
Core Features & Use Cases
- Concrete Returns: Avoid returning interfaces unnecessarily to keep method sets explicit.
- Testability: Easier to mock concrete types in tests.
Quick Start
Write a constructor that accepts an interface and returns a concrete type.
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: accept-interfaces-return-structs Download link: https://github.com/JamesPrial/claudefiles/archive/main.zip#accept-interfaces-return-structs 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.