100-go-mistakes

Audit Go code for 100 common mistakes from the book.

Updated Dec 3, 2023
One-click install
npx skills add https://github.com/ealvar3z/dotfiles --skill 100-go-mistakes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 100-go-mistakes
Source: https://github.com/ealvar3z/dotfiles/tree/main/prompts/skills/100-go-mistakes
Command: npx skills add https://github.com/ealvar3z/dotfiles --skill 100-go-mistakes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify and fix the 100 most common mistakes in Go code, improving code quality and maintainability.

Core Features & Use Cases

  • Comprehensive Audit: Covers mistakes in code organization, data types, control structures, strings, functions, error handling, concurrency, standard library usage, testing, and optimization.
  • Reference-Based: Each mistake links to detailed explanations and source code examples for understanding and remediation.
  • Use Case: When reviewing a new Go project, use this Skill to proactively identify potential issues related to common anti-patterns, ensuring a more robust and idiomatic codebase.

Quick Start

Run the 100 Go mistakes audit on the current Go project.

Frequently Asked Questions about 100-go-mistakes

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

FAQPage Schema
How do I audit Go code for common mistakes and anti-patterns?

To audit Go code for common mistakes, this Skill checks your project against 100 known pitfalls in error handling, concurrency, and optimization, providing reference links for remediation.

What are the most frequent Go pitfalls in concurrency and error handling?

Frequent Go pitfalls in concurrency and error handling include specific anti-patterns identified during a code audit, which are explained through detailed source code examples and references.

Can I use this to check an existing Go project for code quality issues?

Yes, you can use this to check an existing Go project for code quality issues by running an audit that proactively identifies anti-patterns across data types, control structures, and project organization.

What is the best way to find Go refactoring opportunities during a code review?

The best way to find Go refactoring opportunities during a code review is to scan the codebase against a comprehensive list of 100 common mistakes covering standard library usage and testing.

Does this audit cover Go testing and optimization mistakes?

Yes, this audit covers Go testing and optimization mistakes, evaluating your codebase for common pitfalls in standard library usage, testing practices, and performance optimization techniques.