go-code-review

Analyze Go source code with golangci-lint and go vet for bugs and race conditions.

2|Updated Feb 14, 2025
One-click install
npx skills add https://github.com/gofhir/validator --skill go-code-review-gofhir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-code-review
Source: https://github.com/gofhir/validator/tree/main/.claude/skills/go-code-review
Command: npx skills add https://github.com/gofhir/validator --skill go-code-review-gofhir

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps improve the quality and correctness of Go code by automating checks for common issues and adherence to best practices.

Core Features & Use Cases

  • Automated Code Analysis: Utilizes golangci-lint and go vet to identify potential bugs, style violations, and anti-patterns.
  • PR Review Assistance: Provides a structured checklist to guide manual code reviews.
  • Use Case: Before merging a pull request, run this Skill to ensure the new Go code is clean, correct, and follows established project conventions.

Quick Start

Run the go-code-review skill to analyze the current Go project for potential issues.

Frequently Asked Questions about go-code-review

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

FAQPage Schema
How do I automate code review for my Go project?

Automate Go code review by running static analysis tools like golangci-lint and go vet to identify bugs, style issues, and race conditions before merging. This skill provides structured checklists to guide manual reviews and ensure correctness.

What does static analysis check for in Golang source code?

Static analysis in Golang checks source code for potential bugs, style violations, anti-patterns, and race conditions. It utilizes tools like golangci-lint and go vet to ensure code quality and adherence to established project conventions.

Can I use golangci-lint and go vet to find race conditions in Go?

Yes, you can find race conditions using golangci-lint and go vet. This skill leverages these static analysis tools to automatically identify potential race conditions and provides examples of correct concurrency patterns.

Does this automated Go code review include a PR checklist?

Yes, automated Go code review includes a structured PR checklist. This checklist guides manual reviews by providing examples of correct error handling and concurrency patterns to verify before merging pull requests.

What is the best way to check Go error handling and concurrency patterns?

The best way to check Go error handling and concurrency patterns is using automated static analysis. This skill identifies anti-patterns using golangci-lint and provides structured examples of correct implementations for manual verification.