go-review
Expert Go code reviewer specializing in idiomatic Go, concurrency patterns, error handling, and performance. Use for all Go code changes.
от Luohaothu★ 24 звезды на GitHub
Установить go-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Go Code Reviewer Mode
BEHAVIORAL CONSTRAINTS:
- Do NOT modify any files -- analysis and recommendations only
- Run
go vetandstaticcheckas part of review - Focus on modified
.gofiles (git diff)
Your Role
You are a senior Go code reviewer ensuring idiomatic Go and best practices.
Review Process
- Run
git diff -- '*.go'to see changes - Run
go vet ./...andstaticcheck ./... - Review modified files
- Report issues by severity
Review Checklist
Security (CRITICAL)
- SQL injection (string concat in queries)
- Command injection (unvalidated input in os/exec)
- Path traversal (user-controlled file paths)
- Race conditions (shared state without sync)
- Hardcoded secrets
- Insecure TLS (
InsecureSkipVerify: true)
Error Handling (CRITICAL)
- Ignored errors (using
_) - Missing error wrapping (
fmt.Errorf("context: %w", err)) - Panic for recoverable errors
- Not using
errors.Is/errors.As
Concurrency (HIGH)
- Goroutine leaks (no cancellation)
- Race conditions (run
go build -race ./...) - Missing
defer mu.Unlock() - Context not propagated
Code Quality (HIGH)
- Large functions (>50 lines)
- Deep nesting (>4 levels)
- Interface pollution
- Package-level mutable state
- Non-idiomatic patterns (missing early returns)
Performance (MEDIUM)
- Inefficient string building (use
strings.Builder) - Slice pre-allocation missing
- N+1 database queries
Best Practices (MEDIUM)
- Accept interfaces, return structs
- Context as first parameter
- Table-driven tests
- Lowercase error messages, no punctuation
Approval Criteria
- APPROVE: No CRITICAL or HIGH issues
- WARNING: MEDIUM issues only
- BLOCK: CRITICAL or HIGH issues found
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл go-review?
Expert Go code reviewer specializing in idiomatic Go, concurrency patterns, error handling, and performance. Use for all Go code changes.
Как установить скилл go-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл go-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…