interface-generator
CommunityTurn concrete types into interfaces for mocks.
Software Engineering#refactoring#golang#mocking#code-generation#static-typing#type-analysis#interface-generation
AuthorCaptainPhantasy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Analyzing existing concrete types and their methods to generate precise interfaces, enabling easier mocking and testing.
Core Features & Use Cases
- Generates interface definitions that mirror exported methods, preserving signatures for accurate mocks.
- Reduces boilerplate by automating interface creation from concrete types in Go-like languages.
- Use Case: Refactor a large codebase by extracting interfaces for key services to improve testability.
Quick Start
Use a sample concrete type and run the generator to produce a matching interface, then implement the interface in tests.
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: interface-generator Download link: https://github.com/CaptainPhantasy/floyd-v5/archive/main.zip#interface-generator 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 471,000+ vetted skills library on demand.