go-quality

Validates Go projects with vetting, linting, and automated fixes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/raphi011/skills --skill go-quality-raphi011
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-quality
Source: https://github.com/raphi011/skills/tree/main/skills/go-quality
Command: npx skills add https://github.com/raphi011/skills --skill go-quality-raphi011

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of validating and improving the quality of Go code, ensuring it adheres to best practices and is free of common errors.

Core Features & Use Cases

  • Comprehensive Validation: Runs linters, tests, and static analysis tools in a single pass.
  • Automated Fixing: Automatically formats code, tidies dependencies, and attempts to fix common issues.
  • Detailed Reporting: Provides clear PASS/FAIL/WARN/SKIP counts and specific error messages.
  • Use Case: Before committing Go code, use this Skill to automatically check for formatting errors, run all unit tests, and perform static analysis to catch potential bugs.

Quick Start

Run the go-quality skill to validate and fix the Go code in the current directory.

Frequently Asked Questions about go-quality

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

FAQPage Schema
How do I run static analysis and linting on Go code before committing?

Run static analysis and linting on Go code by executing validation tools like gofmt, go vet, staticcheck, deadcode, dupl, and gocyclo in a single pass to catch formatting errors and potential bugs.

Can I automatically fix Go formatting and dependency issues?

Yes, you can automatically fix Go formatting and dependency issues by enabling automated fixing, which runs go mod tidy, gofmt, and go fix to format code and tidy dependencies.

What is the best way to validate Go code quality comprehensively?

The best way to validate Go code quality comprehensively is to run go build, go test, and multiple static analysis tools together, generating detailed PASS, FAIL, WARN, and SKIP reports with specific error messages.

Does this Go code quality validation require any external dependencies?

No external dependencies are required to run this Go code quality validation, as it leverages built-in commands like go vet and go test alongside standalone static analysis tools.

What static analysis tools are used for detecting code duplication and complexity in Go?

The static analysis tools used for detecting code duplication and complexity in Go are dupl and gocyclo, alongside deadcode for unused code detection and staticcheck for comprehensive code review.