Lightlines
Catalogue
Sign in
By samber

golang-refactoring

samber

Refactor Go safely through staged, verified changes.

code refactoring

What it does

Restructures existing Go code safely at scale with coverage-adaptive, behavior-preserving refactoring.

When to use it

Use when Go code needs structural refactoring, large-scale renaming, extraction, package moves, or a multi-step refactoring plan.

How to use it

Give it an existing Go project and a refactoring goal; it plans with the user, obtains approval, and applies staged changes.

What you provide

  • An existing project

Uses


Access · 2

This skill

pull requests

Write

Opens staged pull requests (irreversible)

GitHub

Write

Opens gopls issues on GitHub (irreversible)

Good to know

  • starts one helper agent per item, so the count depends on the work
  • cannot be undone: pull requests; GitHub

What you need · 5

Requires the Go toolchain.

Requires gopls as the primary refactoring actuator.

Optionally supports benchmark comparison when refactoring hot paths.

Routes security review to this skill whenever a step changes code behavior.


About this skill

Visibility
Public
Repository
samber/cc-skills-golang
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
6