go Best Practices Audit

    by Timoranjes

    1

    Professional Go code auditor for performance optimization, concurrency safety, and modern 1.21+ idioms.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Audit this Go function for performance and safety: func Process(urls []string) { for _, u := range urls { go http.Get(u) } }

    Your agent does

    CRITICAL: Goroutine leak detected. http.Get is called without a timeout or way to track completion. PREFERENCE: Use http.Client with a defined Timeout. FIX: Use a sync.WaitGroup to wait for goroutines and pass a context.Context to handle cancellation properly.

    What you get

    Detect and fix goroutine leaks and race conditions in concurrent codeOptimize memory allocations by identifying slice and map growth issuesModernize legacy Go code to use new 1.21+ built-ins and packagesEnforce idiomatic error handling and proper error wrapping patterns

    About this skill

    What it does

    This skill provides a comprehensive audit system for Go codebases, focusing on idiomatic style, high-performance patterns, and concurrency safety. It moves beyond basic linting to identify structural flaws, memory leaks, and race conditions that automated tools often miss.

    Why use this skill

    Modern Go development (1.21+) has introduced significant changes to the standard library and language built-ins. Prompting an AI directly often results in outdated "legacy" Go patterns. This skill ensures your agent uses the latest features like slog, min/max, and clear(), while strictly adhering to Go's unique philosophy of simplicity and efficiency.

    Key Features

    • Concurrency Safety: Detects goroutine leaks, unprotected shared state, and improper WaitGroup usage.
    • Performance Tuning: Identifies slice/map growth anti-patterns and inefficient string building.
    • Modern Idioms: Enforces proper error wrapping (%w), context propagation, and standard library best practices.
    • Structural Audit: Validates package organization, naming conventions, and interface design.

    Expected Output

    The skill generates structured feedback highlighting specific lines of code, the underlying anti-pattern, and a refactored "After" snippet implementing the corrected Go idiom.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    Listed1 month ago
    Updated8 days ago

    Creator

    Frequently Asked Questions

    Popular in Code Review