go-abstraction-discipline

Community

Refine Go code by eliminating low-value abstractions

Authortanghuo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill is designed to streamline Go code by removing unnecessary abstractions, improving readability, and enhancing performance.

Core Features & Use Cases

  • Abstraction Removal: Identify and remove thin wrappers, single-use helpers, and low-value constants.
  • Public API Optimization: Keep public method sets small with contract-strengthening siblings.
  • Layer Placement: Place business checks at the business layer and abstractions on the correct semantic layer.
  • Use Case: Refactor a Go codebase to improve maintainability and performance by applying the principles of semantic ownership and minimal abstraction.

Quick Start

Apply the go-abstraction-discipline skill to the code in 'main.go' to enhance its structure and remove unnecessary abstractions.

Dependency Matrix

Required Modules

None required

Components

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: go-abstraction-discipline
Download link: https://github.com/tanghuo/th-skill/archive/main.zip#go-abstraction-discipline

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.