go-split-file

Community

Split Go files into cohesive, maintainable units.

Authorlestrrat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Split large Go files into cohesive, smaller files grouped by logical units to improve readability and maintainability of Go codebases.

Core Features & Use Cases

  • Automatic grouping of related declarations: types, functions, interfaces, and their constructors and methods.
  • Preserves package structure and comments to maintain build correctness and readability.
  • Generates new files named after primary types in snake_case and places related declarations together to minimize cross-file dependencies, suitable for refactoring and module maintenance.

Quick Start

Provide the path to the Go source file to split and the tool will generate grouped .go files.

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-split-file
Download link: https://github.com/lestrrat/claude-code/archive/main.zip#go-split-file

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 471,000+ vetted skills library on demand.