go-control-structures

Community

Enforce safe, idiomatic Go control flow.

Authorv0lka
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Guides Go developers to avoid common control-flow mistakes in loops, ensuring idiomatic and reliable code when iterating with range, using break inside nested constructs, or placing defer in loops.

Core Features & Use Cases

  • Enforces correct range loop mutations by using index access when mutating elements.
  • Flags incorrect break semantics inside switches/selections nested in loops and promotes labeled breaks.
  • Warns against defer statements inside loops and advocates extracting per-iteration cleanup into helper functions or closures.

Quick Start

Run a Go code review to ensure range loops mutate elements via index, avoid defer inside loops, and apply labeled breaks where appropriate.

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-control-structures
Download link: https://github.com/v0lka/skills/archive/main.zip#go-control-structures

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