bootstrap-go

Initialize Go projects with module, linting, and Makefile scaffolding.

1|Updated Apr 22, 2014
One-click install
npx skills add https://github.com/simonnordberg/dotfiles --skill bootstrap-go
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bootstrap-go
Source: https://github.com/simonnordberg/dotfiles/tree/main/services/claude-code/skills/bootstrap-go
Command: npx skills add https://github.com/simonnordberg/dotfiles --skill bootstrap-go

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates baseline Go project setup to ensure consistent tooling, modules, and minimal configuration for new or reset Go projects.

Core Features & Use Cases

  • Module setup: initializes go.mod with the appropriate module path.
  • Lint/Tooling baseline: creates .golangci.yml enabling key linters like govet, errcheck, staticcheck.
  • Minimal Makefile: provides basic targets build, test, lint, fmt.
  • .gitignore: excludes binaries, env files, and vendor directory when not vendoring.
  • Use Case: onboarding a new Go project quickly with a solid, repeatable starting point.

Quick Start

Run the bootstrap-go skill at the root of your Go project to initialize the baseline configuration.

Frequently Asked Questions about bootstrap-go

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bootstrap a new Go project with standard tooling and linting?

To bootstrap a Go project, this Skill initializes go.mod, creates a .golangci.yml enabling linters like govet and staticcheck, and generates a Makefile with build, test, lint, and fmt targets for a consistent baseline.

What is included in a minimal Go project scaffolding setup?

A minimal Go project setup includes an initialized go.mod file, a .golangci.yml for linting, a .gitignore excluding binaries and vendor directories, and a Makefile providing basic build and test commands.

Can I use this to add golangci-lint to an existing Go project lacking standard tooling?

Yes, you can apply this to existing Go projects lacking standard tooling. It configures golangci-lint by creating a .golangci.yml file that enforces key linters including govet, errcheck, and staticcheck.

What's the best way to automate go mod init and Makefile generation for consistent team configuration?

The best way to automate go mod init and Makefile generation is using this bootstrap Skill, which performs go mod init with your module path and provides a compact Makefile to enforce consistent configuration across teams.

What Makefile targets are provided for a bootstrapped Go project?

The Makefile provided for a bootstrapped Go project includes four compact targets: build, test, lint, and fmt. These targets cover the essential commands for compiling, testing, linting, and formatting your codebase.