go-test-seam-discipline
CommunityPrevent tests from dictating production code structure in Go.
Software Engineering#test-driven development#code refactoring#Go#production code#abstraction removal
Authortanghuo
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps maintain clean, production-focused code in Go by identifying and removing test-driven abstractions that don't belong in the runtime codebase.
Core Features & Use Cases
- Identify Test-Only Abstractions: Detects and removes abstractions like function fields, local interfaces, nil guards, and convenience constructors that exist only to support tests.
- Refactoring Guidance: Provides a structured approach to refactor code, ensuring that seams and abstractions are only introduced for production reasons.
- Use Case: When refactoring Go code, use this Skill to ensure that your tests adapt to the production design, not the other way around.
Quick Start
Use the go-test-seam-discipline skill to review the 'main.go' file and remove unnecessary test-driven abstractions.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: go-test-seam-discipline Download link: https://github.com/tanghuo/th-skill/archive/main.zip#go-test-seam-discipline 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 620,000+ vetted skills library on demand.