go-script-style
CommunityGo CLI scripting conventions for reliable tools.
Authorgh-xj
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This guide helps Go developers maintain consistent conventions when writing CLI scripts and automation utilities, reducing onboarding time and code churn.
Core Features & Use Cases
- Code structure guidance: main.go, helpers.go, cmd_*.go, and a flat project layout to simplify navigation.
- Style and patterns: examples for command routing, imports, and patterns.md references to ensure repeatable patterns across projects.
- Use cases: apply to new Go CLI tools, migrate shell or Python scripts to Go, and maintain uniform command interfaces across modules.
- Reference: patterns.md provides concrete code patterns your team can adopt to keep quality consistent.
Quick Start
Start by creating a minimal Go CLI project that follows the layout described here, then implement a sample cmd_<name>.go and register it in main.go. Build your project with go build -o bin/cli .
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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-script-style Download link: https://github.com/gh-xj/claude-skills/archive/main.zip#go-script-style 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 471,000+ vetted skills library on demand.