go-reviewer

Analyze modified Go files for idioms, concurrency safety, and error handling.

Updated Nov 17, 2025
One-click install
npx skills add https://github.com/itou-daiki/easy_stat_edu --skill go-reviewer-itou-daiki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-reviewer
Source: https://github.com/itou-daiki/easy_stat_edu/tree/main/.agent/skills/go-reviewer
Command: npx skills add https://github.com/itou-daiki/easy_stat_edu --skill go-reviewer-itou-daiki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go projects often struggle with inconsistent idioms, unsafe concurrency patterns, and fragile error handling, leading to less maintainable and slower code.

Core Features & Use Cases

  • Idiomatic review: Enforces Go best practices and idioms across modules.
  • Concurrency pattern checks: Highlights safe and effective concurrency usage.
  • Error handling & performance: Improves robustness, tracing, and performance signals in code.
  • Use Case: When reviewing a PR with multiple goroutines, use this reviewer to ensure idiomatic patterns and safe synchronization.

Quick Start

Run the reviewer on the changed Go files to get an automated, opinionated code review.

Frequently Asked Questions about go-reviewer

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

FAQPage Schema
How do I automate Go code review for pull requests?

To automate Go code review for pull requests, this Skill analyzes modified .go files for idioms, concurrency safety, and error handling. It uses static analysis and vetting tools to output a structured review with actionable recommendations.

What is idiomatic Go and how does static analysis enforce it?

Idiomatic Go refers to writing code following established Go best practices and conventions. Static analysis enforces this by automatically scanning Go modules to detect unsafe patterns and non-idiomatic code, surfacing findings that improve maintainability and performance.

Do I need a Go module to run a concurrency safety check?

Yes, running a concurrency safety check requires access to the repository's Go module. The reviewer analyzes the modified .go files to highlight safe and effective concurrency usage, ensuring proper synchronization across multiple goroutines.

What's the best way to check Go error handling and performance issues?

The best way to check Go error handling and performance issues is using an automated reviewer that applies static analysis to modified files. It improves robustness and tracing by surfacing fragile patterns and performance considerations in a structured review.

Why does my Go code review fail to catch unsafe concurrency patterns?

Go code reviews may miss unsafe concurrency patterns without automated static analysis and vetting. This Skill specifically scans for safe synchronization across goroutines, enforcing idiomatic patterns to prevent data races and fragile error handling in modules.