golang-fmt-lint

Format and lint Go code with go fmt and golangci-lint.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/EpicBlackWolfZ/Gildedrose-kata --skill golang-fmt-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-fmt-lint
Source: https://github.com/EpicBlackWolfZ/Gildedrose-kata/tree/main/.claude/skills/golang-fmt-lint
Command: npx skills add https://github.com/EpicBlackWolfZ/Gildedrose-kata --skill golang-fmt-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires go, golangci-lint, goimports, curl, git, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill teaches you how to format and lint Go code effectively using go fmt and golangci-lint to improve readability and maintainability.

Core Features & Use Cases

  • Formatting: Use go fmt to format code according to Go standards.
  • Linting: Run golangci-lint to catch style issues and potential bugs.
  • Automation & CI: Provide templates for pre-commit hooks and CI integration to enforce code quality.
  • Use Case: Imagine a Go project in CI where every commit runs fmt and lint to ensure clean code before merging.

Quick Start

Run the workflow to format Go code with go fmt and lint with golangci-lint.

Frequently Asked Questions about golang-fmt-lint

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

FAQPage Schema
How do I format and lint Go code using go fmt and golangci-lint?

You can format and lint Go code by running go fmt for standard formatting and golangci-lint to catch style issues and bugs. This skill provides automation scripts and configuration templates to simplify the process for any project size.

Can I integrate golangci-lint and go fmt into a CI pipeline?

Yes, you can integrate golangci-lint and go fmt into a CI pipeline. This skill provides templates for CI integration and pre-commit hooks to enforce Go code quality automatically before merging commits.

Does this Go linting workflow support pre-commit hooks?

Yes, this Go linting workflow supports pre-commit hooks. It provides configuration templates and automation scripts to set up hooks that run go fmt and golangci-lint locally before code is committed.

What do I need to install to run golangci-lint and goimports?

You need to install go, golangci-lint, goimports, curl, and git to run the formatting and linting workflows. These dependencies are required to execute the automation scripts and configuration templates provided.

Why use golangci-lint instead of just go fmt for Go code?

You should use golangci-lint alongside go fmt because go fmt only standardizes formatting, while golangci-lint analyzes code to catch deeper style issues and potential bugs, ensuring comprehensive maintainability for Go projects.